faq-chat-bot
Simple chat bot serving answers for frequently asked questions
Quick start:
- Download application repo.
- Build an image with app by running
docker build -t faq-chat-bot .
from the repo dir.
- Start app by
docker-compose up
- The chat runs on
localhost:8083
after containers with MySQL and Elastic start properly.
Create FAQ object:
POST /faq
{
"question":"What is your name?",
"answer": "My name is Bot. Chat Bot :)"
}
Create multiple FAQ objects at once:
POST /faqs
[
{
"question":"What is your name?",
"answer": "My name is Bot. Chat Bot :)"
},
{
"question":"What is your favourite color?",
"answer": "My favourite color is blue"
}
]
Update FAQ object by ID:
PATCH /faq/:id
{
"question":"How are you, mr Bot?",
"answer": "I'm fine."
}
Get FAQ object by ID:
GET /faq/:id
Delete FAQ object by ID:
DELETE /faq/:id