How to set slots in the initial request

ok. Do you send the message by /set_data{‘name’:‘user1’, ‘language’:‘de_DE’} and add the rule:

rule: set data
steps:
  - intent: set_data
  - action: action_set_data

when you send message by /set_data{‘name’:‘user1’, ‘language’:‘de_DE’}, set_data will be recogize as a intent, and the json after set_data will be extracted as entities. I have use these in my project and works ok. You should use /set_data before you use the slot.

1 Like