Hi, I’m wondering wether it is possible to override an already set Slot via the Button-Payload.
I can successfully set a Slot by clicking a button IF it isn’t set before with:
button generation:
def create_buttons(intent: str, entity_type: str, entities: List[Dict[str, Any]]) -> str:
buttons = []
for entity in entities:
payload = {entity_type: [entity["value"]]}
buttons.append(
{
"title": f"{entity['value']}",
"payload": f"/{intent}" + json.dumps(payload, ensure_ascii=False)
# "payload": f'/{intent}{{"{entity_type}":"{json.dumps(entity)}"}}'
}
)
return buttons
action:
...
dispatcher.utter_message(buttons=buttons)
return events
domain:
store_entities_as_slots: false
...
slots:
time:
type: any
customer:
type: any
worker:
type: any
Is this intended behaviour or am I a missing a possible configuration option?