How to write utter_ask_Aslot if Aslot is in categorical type?

slots: triptype: type: categorical influence_conversation: false values: - meeting - training - other

responses: utter_ask_triptype:?

I’m not sure what you’re asking. Categorical or not, even slot or not, the format of utterances is always the same.

utter_ask_triptype:
  - text: "What's your favorite color?"

Or you can use buttons to set one of your slots more directly:

utter_ask_triptype:
  - text: "What's your favorite color?"
    buttons:
    - title: "Red"
      payload: '/inform{{"color":"red"}}'
    - title: "Green"
      payload: '/inform{{"color":"green"}}'
    - title: "Blue"
      payload: '/inform{{"color":"blue"}}'

thanks a lot! it helps :)

1 Like