I have some information about a user that needs to be passed to the chatbot, filled in to a slot, used by the chatbot throughout the course of the conversation.
Is there a way to pass arbitrary metadata to a chatbot that can then be used to fill a slot value when a conversation begins?
Something like this would be ideal:
street_address = "123 Rasa St"
response = await client.post(f"http://rasa-host:5005/webhooks/rest/webhook", json={
"sender": "sender-id",
"message": message,
"metadata": {"street_address": street_address}
})
domain.yml
slots:
street_address:
type: any
mappings:
- type: from_post