I want to pass values from the webpage to the Agent.
I can't find any reliable documentation or examples of how to do this and I have tried both Chatgpt and Claude without any luck.
I thought it was just a case of:
1. Creating a Global variable that can be set by external sources
2. Adding this to the widget script:
contextVariables: {
Name: "Monty",
}
Does anyone have an example or point me in the right direction for doing this?
It seems straightforward, but appears not to be.