Forms slot filling via from_text is taken as intent

my form looks something like this

  take_order_form:
    required_slots:
      finalorder:
        - type: from_text
          intent: None

when I get into the form to enter text xyz it is being considered as intent and my bot is going to fallback action. Am I missing something ion type: from_text ?

The bot will always try to map a message to an intent.

from_text and from_intent show only how the slot should be filled:

  • from_text will take the whole message as intent (unless it was classified as an intent inside the not_intent key, or only if it was classified as the intent inside the intent key).
  • from_intent will fill slot with value given in the value key if the intent is classified as the intent inside the intent key.

Example:

finalorder:
 - type: from_text
   intent: order

This will take the whole message and put it inside the slot finalorder only if the detected intent was order.

finalorder:
 - type: from_text
   not_intent: stop

This will take the whole message and put it inside the slot finalorder unless the detected intent was stop.

finalorder:
- type: from_intent
  intent: affirm
  value: true
- type: from_intent
  intent: deny
  value: false

The finalorder slot will take the value true if the intent is affirm and the value false if the intent is deny.

1 Like