Training the Bot with Custom Q&A
In this chapter, you will learn how to use Q&A in bots to automatically answer user questions using predefined answers or knowledge-based content. By using Q&A, your bot can respond instantly to common questions without building complex conversation flows.
With Q&A, Haba can respond instantly when users ask common questions about HabitTracker. For example, we will create Q&A entries about:
- "What does avg streak mean??"
- "Can I undo my action when I accidentally click "Mark Today as Complete"?"
We can set it up this way:
- Go to Knowledge Base > Q&A in
Haba's Bot Detail.

-
Click the Add New Q&A button.
-
For the first Q&A, fill in the following fields:
Question: What does avg streak mean? Answer: Avg streak means the average number of consecutive days you successfully complete your habits. It helps you understand how consistent you are over time, even if you occasionally miss a day. -
To add more Q&A, simply click the Add New Q&A button again.
-
For the second Q&A, fill in the following fields:
Question: Can I undo my action when I accidentally click "Mark Today as Complete"? Answer: Yes, you can undo your action by clicking the "Completed Today" button again. This will unmark your habit as completed for today. -
You can add more Q&A entries if needed, depending on the questions users frequently ask.
-
After you have finished adding Q&A entries, don't forget to click the Save button.

-
After you click the Save button, you can see whether the bot is processing your Q&A as its knowledge.You can click the refresh icon to check if the process has finished.
Note:
-
If you see a red icon, it means the bot failed to process your Q&A. Don't worry — you can click the Retry button to retry the process.
-
If you see a green icon, it means the bot has successfully processed your Q&A.
Wrapping Up
In this chapter, you learned how to use Q&A to help your bot answer common user questions automatically.
You've learned how to:
- Create Q&A entries for frequently asked questions
- Add multiple question variations to improve accuracy
- Save and process Q&A as the bot's knowledge
- Monitor the processing status and retry if needed
With Q&A in place, Haba can now respond instantly to common questions about HabitTracker, reducing repetitive questions and improving the user experience.
