# Slot filling with from\_text

**URL:** <https://forum.rasa.com/t/slot-filling-with-from-text/46512>\
**Category:** Rasa Open Source\
**Created:** [August 4, 2021, 7:55am UTC](https://forum.rasa.com/t/slot-filling-with-from-text/46512 "2021-08-04T07:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapilkathuria](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kapilkathuria/32/766_2.png) [@kapilkathuria](https://forum.rasa.com/u/kapilkathuria)\
**Post date:** [August 4, 2021, 7:55am UTC](https://forum.rasa.com/t/slot-filling-with-from-text/46512/1 "2021-08-04T07:55:46Z")

</div>

I am using rasa form and trying to fill slot with text entered by user.

Slot filling works fine for 1st slot user\_type. For 2nd slot user\_name, i want slot to be filled with any text entered by user & hence using from\_text. But this is not working for me.

am i missing anything here?

**here is form detail in domain.yml**

```
forms:
  user_info_form:
    required_slots:
      user_type:
      - type: from_entity
        entity: user_type
        intent:
          - user_type 
      user_name:
      - type: from_text
        intent: None

```

**here is responses section**

```
# user_info_form
  utter_ask_user_info_form_user_type:
  - text: As you are here for first time, it will be good to know about you. Who are you? 
      Parent / Student?
    channel: twilio
  - text: As you are here for first time, it will be good to know about you. Who are you?
    buttons:
    - payload: /user_type{{"user_type":"Parent"}}
      title: Parent
    - payload: /user_type{{"user_type":"Student"}}
      title: Student
  utter_ask_user_info_form_user_name:
  - text: May I have your First name please

```

**here is log of rasa interactive.**

Chat History

Bot You ────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 action\_listen ────────────────────────────────────────────────────────────────────────────────────────────────────────────── 2 hi intent: greet 1.00 ────────────────────────────────────────────────────────────────────────────────────────────────────────────── 3 action\_greet 1.00

```
  Image: https://imgur.com/UBwV51r
  Attachment: https://imgur.com/UBwV51r
  Hello! This is me, SARA, your virtual conversation chatbot
  Hello, so nice to see you again
  slot{"user_existing": false}
  user_info_form 0.53
  active_loop{"name": "user_info_form"}
  slot{"requested_slot": "user_type"}
  As you are here for first time, it will be good to know about you. Who are you?
  Buttons:
  1: Parent (/user_type{"user_type":"Parent"})
  2: Student
  (/user_type{"user_type":"Student"})
  Type out your own message...
  slot{"user_type": "Parent"}
  slot{"user_type": "Parent"}
  slot{"requested_slot": "user_name"}
  May I have your First name please
  action_listen 1.00
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────
  4 sakshi
                                                                                            intent: greet 0.89
 
 
Current slots:
         user_type: Parent, email: None, user_existing: False, user_name: None, user_first_name: None, user_pin: None, confirm: None, education_level: None, education_stream: None, newsletter_last_sent: None, newsletter_subscribed: None, test_user: None, requested_slot: user_name, session_started_metadata: None

```

**Rasa version**

```
Rasa Version : 2.6.0
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.6.0
Rasa X Version : 0.39.3
Python Version : 3.6.9
Operating System : Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-Ubuntu-18.04-bionic
```

---

<div class="post-metadata">

**Author:** ![kapilkathuria](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kapilkathuria/32/766_2.png) [@kapilkathuria](https://forum.rasa.com/u/kapilkathuria)\
**Post date:** [August 5, 2021, 1:36pm UTC](https://forum.rasa.com/t/slot-filling-with-from-text/46512/4 "2021-08-05T13:36:16Z")

</div>

this is solved.

need to use

```
user_name:
      - type: from_text

```

rather than

```
user_name:
      - type: from_text
        intent: None
```
