How to pass role information of entity in buttons

I could sent intent and entity in button payload using this format - ‘/intent_name{{“entity_type_1”:“entity_value_1”, “entity_type_2”: “entity_value_2”}}’

but if I have to send role information of entity as well, then how to do it?

1 Like

Hello @ankur2210 and welcome to the forum Ankur :bouquet:

That’s a really great question, did your tried add the role and its values like this in button payload "entity_role":"entity_role_value" ?

But, if you have training example with entities and role; I guess you can only mention entity?

1 Like

Hi @nik202 Thanks for the prompt reply. I didn’t tried this in button payload "entity_role":"entity_role_value".

I will try.

My training looks like this - intent - product_search

  • Show TV under [2k]{“entity”: “amount-of-money”, “role”: “to”}

so how can I send this information in button payload?

@RasaDiscover any update ?

@ChrisRahme