Hi,
I have noticed in the new DF CX Messenger you can set context (used for Generative Personalization) - https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger#setcontext
Can I access these values directly within the agent too programatically? I would like to use it for other reasons within the chatbot conversation (as I can't send standard query parameters with this or the previous Messenger widget, this may be a neat workaround).
Thanks!
Hi!
I do not think so. You can get the Agent Gen AI information: https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/GenerativeSettings
And you can specify the context in the webhook too: https://cloud.google.com/dialogflow/cx/docs/concept/generative-personalization
What you can do is to set the context as a session variable as well or store it in an external DB so you can retrieve it!
Best,
Xavi
yeah, so you can set session parameters (variables) that you can retrieve it from the webhook and from the conversation:
https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session
yeah, agree. At this time I would just suggest to have a separate service that stores the context so you can get it from there at anytime