Slots Set By Clicking Buttons

Hello, I’ve tried this : /intent{{“entities”:“entity value”}} to specify an intent with a given entity value. I wanted to know if it is possible to add several entities values like :

/intent{{“entities1”:“entity value”},{“entities2”:“entity value”}}

Thanks

You should be able to do it like this

/intent{{“entities1”:“entity value”, “entities2”:“entity value”}}
1 Like

Sorry, why does my solution not work:

domain.yml:

slots:
  datenschutzhinweis:
    type: text

  utter_askIfCustomerHappy:
  - text: "Are you happy with the product?"
    buttons:
    - title: "Yes, happy"
      payload: /affirm{{"customer_satisfaction":"yes"}}      
    - title: "No, unhappy"
      payload: 'denny{{"customer_satisfaction":"no"}}

  utter_satisfaction:
    - text: "Thanks for your answer. You are {customer_satisfaction}!"

stories.yml

stories:

- story: happy path
  steps:
  - intent: greet
  - action: utter_greet
  - action: utter_askIfCustomerHappy
  - intent: affirm
  - action: utter_satisfaction

If I go the happy path, the response is: *Thanks for your answer. You are None!*

Is that apostrophe meant to be a “/”?

1 Like

Did you define your slot for customer_satisfaction? Is the influence_conversation = true for it? If influence_conversation is set to true, then you need to change your story to

- intent: affirm
- slot_was_set:
    - customer_satisfaction: yes
- action: utter_satisfaction

There is also the typo for

payload: 'denny{{"customer_satisfaction":"no"}}

It should probably be

 payload: /deny{{"customer_satisfaction":"no"}}
1 Like