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