Slot filling

Can I use intent to fill the value of slots? for example,

  • complain
    • slot{“my_slot”: “complain”}

How to do it?

Yes, the intent carries an entity. Give the entitiy and slot the same name, then it will be filled. E.g.

# story1
* ask_weather{"location": "Caracas"}
   - action_weather_api

Where ask_weather is the intent, localtion is the entity. If you define a slot witht he name location then the slot text value will be set to “Caracas”.

story1

  • ask_weather
    • slot{“slot1”:“ask_weather”}
    • action_weather_api I want get this result