# Multiple question in One action

**URL:** <https://forum.rasa.com/t/multiple-question-in-one-action/31608>\
**Category:** Rasa Open Source\
**Created:** [July 21, 2020, 8:23am UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608 "2020-07-21T08:23:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaiful019](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shaiful019/32/8543_2.png) [@shaiful019](https://forum.rasa.com/u/shaiful019)\
**Post date:** [July 21, 2020, 8:23am UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/1 "2020-07-21T08:23:47Z")

</div>

Is there any way to implement multiple questions from a single action without using the Form, Slot, or Entities? Also, I just want to store the user response in a local variable of my action for further logical implementation.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [July 21, 2020, 3:05pm UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/2 "2020-07-21T15:05:21Z")

</div>

If you want user input, you will need to have two actions, one asking the user for input and one processing that input. You can’t ask for and receive user input from inside one action. Forms make this easy by giving you actions that do just that; but if you want to do it without a form, and just take the users’ text input, via `tracker.latest_message`, you could. You’d still need two actions though.

May I ask why you have these restrictions?

---

<div class="post-metadata">

**Author:** ![shaiful019](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shaiful019/32/8543_2.png) [@shaiful019](https://forum.rasa.com/u/shaiful019)\
**Post date:** [July 21, 2020, 8:19pm UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/3 "2020-07-21T20:19:33Z")

</div>

@mloubser Thanks for you feedback. Suppose I’ve 4 classifications. Bus, Train, Plane and Ship. User have to choose one of them. I already store the value in a slot. I’ve separate list of questions for each categories. For example If user choose bus then I’ve a list BusQus = [Qus1, Qus2, Qus3] for this section and similar for other categories. And this list is not static. It’s generated through API. So far I implemented this. Now I want to throw this sort of qus to user serially and want to store the ans to another list so that I can make a dictionary of qus and ans. Also I don’t want any intent classification for users ans. whatever user reply it will just store the reply in a list and instead to any intent classification. Is there any suggestion except Form Action?

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [July 28, 2020, 7:46am UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/4 "2020-07-28T07:46:24Z")

</div>

Based on what you’re describing, a form is definitely going to be the easiest way because you can just fill the slots `from_text` and accept all intents, so it won’t matter what the intent is. You can overwrite some of the form methods (probably `request_next_slot` for one) if you need to dynamically generate the required slots & their accompanying questions. I’m still not sure why you specifically wouldn’t want to use a form action (feel free to clarify), but what you need to think about is what your stories would look like with the dynamic set up you’re describing without a form. I don’t really see a way of doing this using typical stories & actions because you don’t know ahead of time what they’ll be.

---

<div class="post-metadata">

**Author:** ![tomimartin01](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomimartin01/32/12712_2.png) [@tomimartin01](https://forum.rasa.com/u/tomimartin01)\
**Post date:** [June 4, 2021, 12:35pm UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/5 "2021-06-04T12:35:16Z")

</div>

> [@mloubser](#):
>
> a form is definitely going to be the easiest way because yo

Hi! How did you solve it ? I have de same problem but in Rasa version 2.6 and there is no request\_next\_slot method in this rasa\_sdk.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [June 7, 2021, 11:22am UTC](https://forum.rasa.com/t/multiple-question-in-one-action/31608/6 "2021-06-07T11:22:51Z")

</div>

In 2.x you can customize how a slot is asked for with a [custom action](https://rasa.com/docs/rasa/forms#using-a-custom-action-to-ask-for-the-next-slot); you can customize the required slots with a [form validation action that includes the `required_slots` method](https://rasa.com/docs/rasa/forms#dynamic-form-behavior).

See the [Migration Guide](https://rasa.com/docs/rasa/migration-guide#forms-1) from 1.x to 2.x.

`request_next_slot` does [still exist](https://github.com/RasaHQ/rasa-sdk/blob/2.6.x/rasa_sdk/forms.py#L459) in rasa\_sdk==2.6.0, but it `FormAction` as a whole is deprecated and will be removed in the future.
