How to pass context using HTTP webhook

Hello,

I would like to provide hints to the bot using HTTP webhook, mainly informations regarding the user.

For example, an object representing the current user with username, firstName, lastName and an authentication token (that can be used in actions to call external services).

Is it something possible? If yes, how to implement this? Otherwise it there some workaround?

Thanks for your help! Thierry

Hi @templth

Since Rasa 1.7, we have a new trigger_intent endpoint that lets you create an external event that inserts a user intent with entities into the conversation. With this, you can, e.g., create an intent external_user_info and all the entities for names, authentication tokens, etc., and then trigger this intent with a POST message to the endpoint. See HTTP API