How to influence the dialogue through the entity in rules?

We want to add a rating at the end of the dialogue: the client gives a rating from 1 to 5. Depending on the rating, you need to go to different paths (action). How to implement through the rules?

  • intent: rating examples: |

if there are five entities, then choose action 1. if there are four entities, then choose action 2

Use a slot to hold the rating and put the example utterances in an inform intent.

You’ll find an example in the docs of the stories here. Here’s an example in the helpdesk-assistant demo bot of a typical inform intent.