# How to choose response based on flow

**URL:** <https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555>\
**Category:** Rasa CALM\
**Created:** [September 24, 2024, 5:06pm UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555 "2024-09-24T17:06:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elliot94](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@Elliot94](https://forum.rasa.com/u/Elliot94)\
**Post date:** [September 24, 2024, 5:06pm UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555/1 "2024-09-24T17:06:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jtrasa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jtrasa/32/23946_2.png) [@jtrasa](https://forum.rasa.com/u/jtrasa)\
**Post date:** [September 26, 2024, 4:49pm UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555/2 "2024-09-26T16:49:48Z")

</div>

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](https://rasa.com/docs/rasa-pro/concepts/flows#using-a-different-response-key-for-the-collect-step).
- 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](https://rasa.com/docs/rasa-pro/concepts/flows#using-an-action-to-ask-for-information-in-collect-step).

---

<div class="post-metadata">

**Author:** ![Elliot94](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@Elliot94](https://forum.rasa.com/u/Elliot94)\
**Post date:** [September 27, 2024, 8:42am UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555/3 "2024-09-27T08:42:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pkchoudhary1211](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pkchoudhary1211/32/5790_2.png) [@pkchoudhary1211](https://forum.rasa.com/u/pkchoudhary1211)\
**Post date:** [September 27, 2024, 3:18pm UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555/4 "2024-09-27T15:18:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Elliot94](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@Elliot94](https://forum.rasa.com/u/Elliot94)\
**Post date:** [September 27, 2024, 6:49pm UTC](https://forum.rasa.com/t/how-to-choose-response-based-on-flow/63555/5 "2024-09-27T18:49:20Z")

</div>

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