# Free-Text or Random-Text or skip Intent classification in forms

**URL:** <https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794>\
**Category:** Rasa Open Source\
**Created:** [April 21, 2020, 8:54am UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794 "2020-04-21T08:54:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranay\_raj](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pranay\_raj](https://forum.rasa.com/u/pranay_raj)\
**Post date:** [April 21, 2020, 8:54am UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/1 "2020-04-21T08:54:56Z")

</div>

Hello all…!! I have a form in which i have slots like password and subject which cant have an intent with fixed set of example, as they can be anything. How should I set the slots after taking any random user input without classifying Intent?

Please help me on this.

---

<div class="post-metadata">

**Author:** ![lindig](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lindig](https://forum.rasa.com/u/lindig)\
**Post date:** [April 21, 2020, 1:08pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/3 "2020-04-21T13:08:42Z")

</div>

Hi @pranay_raj

If I understand you correctly you are searching for [this](https://rasa.com/docs/rasa/core/forms/#custom-slot-mappings).

```
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict[Text, Any]]]]:
    return {
        "password":self.from_text(),
        "subject":self.from_text()}

```

> `self.from_text(intent=intent_name)` will use the next user utterance to fill the text slot `slot_name` regardless of user intent if `intent_name` is `None` else only if user intent is `intent_name` .

Check out the [Rasa Formbot Action](https://github.com/RasaHQ/rasa/blob/master/examples/formbot/actions.py) on GitHub or the [Form Blog](https://blog.rasa.com/building-contextual-assistants-with-rasa-formaction/) from Justina for further information.

---

<div class="post-metadata">

**Author:** ![pranay\_raj](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pranay\_raj](https://forum.rasa.com/u/pranay_raj)\
**Post date:** [April 21, 2020, 1:35pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/4 "2020-04-21T13:35:53Z")

</div>

@lindig Thank you so much for the prompt response.! Could you also help me out on how to initiate the conversation from the bot? I am using [GitHub - JiteshGaikwad/Rasa\_CustomUI-v\_2.0: Custom UI for Rasa](https://github.com/JiteshGaikwad/Rasa_CustomUI-v_2.0) for bot UI. Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![lindig](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lindig](https://forum.rasa.com/u/lindig)\
**Post date:** [April 21, 2020, 1:43pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/5 "2020-04-21T13:43:33Z")

</div>

@pranay_raj I never used this UI, so I don´t know how the interface communicates with the bot. Do you already have a working bot? Can you do a `rasa shell` CLI for example?

---

<div class="post-metadata">

**Author:** ![pranay\_raj](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pranay\_raj](https://forum.rasa.com/u/pranay_raj)\
**Post date:** [April 21, 2020, 1:55pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/6 "2020-04-21T13:55:08Z")

</div>

@lindig Yes, I do have a working bot. You want me to send you screenshot of rasa shell??

---

<div class="post-metadata">

**Author:** ![lindig](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lindig](https://forum.rasa.com/u/lindig)\
**Post date:** [April 21, 2020, 2:03pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/7 "2020-04-21T14:03:27Z")

</div>

I just saw that this UI is outdated. Did you switched to the [new](https://github.com/JiteshGaikwad/Chatbot-Widget) UI?

As far as I see you have to start the bot and the action server

```auto
rasa run -m models --enable-api --cors "*" --debug

```

```auto
rasa run actions

```

after that open the `index.html` from the repo and it should work.

---

<div class="post-metadata">

**Author:** ![pranay\_raj](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pranay\_raj](https://forum.rasa.com/u/pranay_raj)\
**Post date:** [April 21, 2020, 2:14pm UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/8 "2020-04-21T14:14:53Z")

</div>

@lindig You didnt get my query. I am asking about ,how could i get the bot to start the conversation first without users first message. I want to initiate the conversation from the bot’s end

---

<div class="post-metadata">

**Author:** ![lindig](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lindig](https://forum.rasa.com/u/lindig)\
**Post date:** [April 22, 2020, 5:59am UTC](https://forum.rasa.com/t/free-text-or-random-text-or-skip-intent-classification-in-forms/27794/9 "2020-04-22T05:59:03Z")

</div>

@pranay_raj ah now I understand, sorry. I am not sure if this UI can do it. Some can like mentioned [here](http://forum.rasa.com/t/rasa-auto-greeting/4154).
