A simple Hungarian chatbot for booking an appointment using the Rasa framework.
- Install dependencies
- Rasa will try to use NLP models linked to 'hu' in Spacy
- Link Hungarian models to Spacy:
python3 -m spacy link hu_core_ud_lg hu
- Link Hungarian models to Spacy:
rasa train
should work now
Before using the bot, you'll have to specify a list of dates that the bot'll accept or suggest as free dates. You can do this by adding new roes to the test_data.json file. Each row should correspond to an interval, like this:
[
{"start_date": "2021-01-18T12:00", "end_date": "2021-01-18T18:00"},
{"start_date": "2021-01-20T12:00", "end_date": "2021-01-20T18:00"}
]
The chatbot will ignore all past intervals or the past part of any relevant intervals.
You can test the chatbot on CLI running rasa run actions & rasa shell
, where the first command starts the action server in the background, and the second will start the conversation in the terminal.
The program might take a few seconds to load, after which you can initiate a conversation with the chatbot.
The following is an example conversation, that shows the chatbot's capabilities.
USER: szia
BOT: Szia! Miben segíthetek?
USER: időpontot szertenék foglalni
BOT: Okés. Mikor lenne jó?
USER: holnap esetleg?
BOT: Ráérek holnap. Mikor lenne jó aznap?
USER: ráérsz délután?
BOT: 12 óra és délután 6 óra között ráérek. Mikor legyen pontosan?
USER: legyen 14:30-kor
BOT: Rendben, akkor holnap délután fél 3-kor találkozunk.
USER: köszi, viszlát!
BOT: Viszlát!
This project is licensed under Apache-2.0 license. Feel free to use it in your own projects.
Any help or feedback in further developing the library is welcome!