# How to set slot of type from\_text without detecting intent

**URL:** <https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539>\
**Category:** Rasa Open Source\
**Created:** [April 12, 2022, 11:45am UTC](https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539 "2022-04-12T11:45:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nimish-tembhurne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nimish-tembhurne/32/20008_2.png) [@nimish-tembhurne](https://forum.rasa.com/u/nimish-tembhurne)\
**Post date:** [April 12, 2022, 11:45am UTC](https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539/1 "2022-04-12T11:45:12Z")

</div>

I am using a form to get user queries which can be of various types.

I cant define intent examples for such a query. I want to directly pick what the user types in and I want the bot to not detect the intent while the form is active. How do I accomplish this?

I have 15 - 16 intents in my nlu.yaml file. I want my form to not detect any of those intents and directly fill the required slot. I tried defining slot with mapping from\_text.

But it still goes into intent detection, and if the intent does not match, it goes into fallback. And since I have created a rule for the form it fills the slot with the text entered by the user.

But sometimes the user entered text is similar to some intents so the slot doesn’t get filled and the next story flow is executed for the detected intent. How do I solve this problem.

Is there a way to stop intent detection when the form is active?

---

<div class="post-metadata">

**Author:** ![anshal](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anshal](https://forum.rasa.com/u/anshal)\
**Post date:** [July 20, 2022, 1:59pm UTC](https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539/2 "2022-07-20T13:59:33Z")

</div>

@nimish-tembhurne did you get the answer , I want to do the same

---

<div class="post-metadata">

**Author:** ![nimish-tembhurne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nimish-tembhurne/32/20008_2.png) [@nimish-tembhurne](https://forum.rasa.com/u/nimish-tembhurne)\
**Post date:** [July 30, 2022, 7:22am UTC](https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539/3 "2022-07-30T07:22:34Z")

</div>

Yes…you have to give conditions for a particular slot for which you need free text in a form. for example - slots: name: type: text mappings: - type: from\_text conditions: - active\_loop: enquiry\_form requested\_slot: name

And do this while defining a form- forms: enquiry\_form: required\_slots: - name

Also, I was using ignored\_intents field while creating a form which created complications. So keep the form creation in the domain file clean as given above and you would be good to go.

Additionally, you can use multiple conditions on a single slot. ex- slots: free\_text: type: text mappings: - type: from\_text conditions: - active\_loop: first\_form requested\_slot: free\_text - active\_loop: second\_form requested\_slot: free\_text

---

<div class="post-metadata">

**Author:** ![gdut666](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gdut666/32/24231_2.png) [@gdut666](https://forum.rasa.com/u/gdut666)\
**Post date:** [May 23, 2024, 9:28am UTC](https://forum.rasa.com/t/how-to-set-slot-of-type-from-text-without-detecting-intent/52539/4 "2024-05-23T09:28:12Z")

</div>

Thanks a lot! It worked well.
