I will take the agent we created for the previous tutorial and make suitable modifications so that it can be used for this example.
Modify the welcome intent with the following information.
Note the following:
- It includes the Welcome event, so this intent will fire when chat window loads
- There are two text responses followed by a custom payload
- And it includes a bunch of suggestion chips inside the custom payload JSON
- All the suggestion chip text corresponds to the user messages I had used for the different rich responses from my previous tutorial
Now modify the show.description.type intent to add a single suggestion chip as the custom payload. The suggestion chip should simply say “Start Over”. Notice that we have already included “Start Over” as a training phrase in the df-messenger-welcome intent.
Modify the show.info.type intent with a similar custom payload at the end.
Now do the same for the other intents which display rich responses in the previous agent.
Default Fallback Intent
Finally, add the suggestion chip to Start Over to the Default Fallback intent also.
(Question for the reader: Can you explain why we are adding it?)
That’s it. Now you should be able to see the bot in action.