I have been working with Forms in this week. But I have a bug to retrieve the text for feeback field.
rules.yml
- rule: active request for help to customer service
steps:
- intent: request_for_help_to_customer_service
- action: help_to_customer_service_form
- active_loop: help_to_customer_service_form
- rule: Submit form
condition:
- active_loop: help_to_customer_service_form
steps:
- action: help_to_customer_service_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_submit_request_help_customer_service_form
stories.yml
- story: ask for customer service for help
steps:
- intent: request_for_help_to_customer_service
- action: help_to_customer_service_form
- active_loop: help_to_customer_service
- slot_was_set:
- requested_slot: customer_service_comments
- slot_was_set:
- customer_service_comments
- slot_was_set:
- requested_slot: null
- intent: explain
- action: action_explain_help_to_customer_service_form_customer_service_comments
- action: help_to_customer_service_form
- active_loop: null
- action: action_submit_request_for_help_customer_service_form
domain.yml
slots:
...
customer_service_comments:
type: text
mappings:
- type: from_entity
entity: customer_service_comments
intent: explain
influence_conversation: false
conditions:
- active_loop: help_to_customer_service_form
requested_slot: customer_service_comments
forms:
help_to_customer_service_form:
required_slots:
- customer_service_comments
...
actions:
...
- validate_help_to_customer_service_form
- action_ask_help_to_customer_service_form_customer_service_comments
- action_explain_help_to_customer_service_form_customer_service_comments
- action_submit_request_help_customer_service_form
...
After I chatbot display utter from action_ask_help_to_customer_service_form_customer_service_comments
I type in the action_listen
my sentence to be submited in the form. But the interactive
applies parse entities to be assigned to an intent(see fig,1) to run the actions from a story from this intent and finishes starting again with the form doing a loop
How can I fix this problem with Forms to avoid conflict if the content of the message is part of an intent of my project.
Thanks