Pass context or customer details #228
-
How customer information like Name, email, Address or Customer order history can be passed to call. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What you can do here is store the context in some persistent database and retrieve it back in the websocket connection once the call connects. You can pass it while initiating the
Once the websocket connection happens, you can retrieve this payload and pass it in the It will then automatically inject and set the context_data. |
Beta Was this translation helpful? Give feedback.
What you can do here is store the context in some persistent database and retrieve it back in the websocket connection once the call connects.
You can pass it while initiating the
/call
assuming the said variables are defined within curly bracets{}
in the prompt and store it.Once the websocket connection happens, you can retrieve this payload and pass it in the
AssistantManager
instance.https://github.com/bolna-ai/bolna/blob/9842c50241c5bc0be5a5f9fb4bf43f49b365f1fe/local_setup/quickstart_server.py#L86-L88
It will then automatically inject and set the context_data.
https://github.com/bolna-ai/bolna/blob/9842c50241c5…