Dialogue scenarios best practices
(1) We recommend limiting Dialogue Scenarios to perform 1-4 tasks. Read more about limitations here
(2) A few basic rules to follow with creating dialogue scenarios:
- Each bot-message can only be followed by a user message
- Likewise, each user message should be followed by either bot-message or an action.
- Each action should be followed by a bot message.
(3) Make sure to finish the dialogue scenarios.
The AI model will only use the dialogues with the "finished" status to avoid using unfinished ones.
(4) Not every dialogue scenario has to start from the welcome message. To keep them short, we recommend starting them from their logical beginning. For example, you have a dialogue scenario that looks like this:
- Bot: Hi, how may I help you?
- customer: I want to buy a MacBook
- Bot: Ok, Air or Pro?
- customer: Air
- Bot: <answer for Air>
Now, let's say we want to build the same chain, but with a different scenario where the customer chooses Pro instead of Air. For this case, the next dialogue scenario may look like the following:
- Bot: Ok, Air or Pro?
- customer: Pro
- Bot: <answer for Pro>
(5) Model different scenarios by adding dialogue samples. What can go differently, what if the user does not respond as you would normally expect? Add, change and improve your dialogue scenarios by testing the logic of the bot. Test your hypotheses by the trial and error method.
Intro to Dialogue Scenarios (DS)
Integrating DS with APIs