How to choose response based on flow

I would like to choose from the default utter_responses in the domain file, based on the current active flow. The use case is that I have a common slot between multiple flows, and I want to change the utter_ask_slot response based on the current active flow. If possible, I would like to do it without setting another slot as a sort of flag.

If I understand your question correctly, you have a couple of options:

  • You can specify the utterance used in the collect step with the utter parameter, see more information here.
  • You can specify a custom action to generate the collect step utterance. This allows fully dynamic prompting in collect steps. More on this option here.
1 Like

Thank you. I somehow overlooked this in the documentation. This answers my question perfectly.

You can handle that by mapping responses to each flow directly. Just pull the right utterance based on the active flow instead of using a flag.

Can you share the link for the appropriate section of the documentation, or an example?