Virtual Agent API variables and Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 10:07 AM
Dear all,
I am exploring the Virtual Agent API.
Everything works fine, but I have a question regarding the Designer.
When I send REST API command to trigger a topic, I pass variables.(clientSessiondId in the screenshot below).
But I don't know how to read/use this variable on the VA Designer.
Could you please help me about this ?
Best regards
David
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 02:15 PM
In the components section, scroll down a little to the Utilities section.
There is a Script Action (the black icon)
I discovered it is easier if you create a script variable on the variables tab especially if using VaVars
Just have the VaVars that is created in the variables tab get populated with the above mentioned variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 04:58 PM
Hello Lynda,
Thanks for your quick answer. I have created a Script variable that I can use in my flow. That's great.
I just stuck on reading the variables that I am sending through Postman.
On the Script Action node, should I refer to something like vaContext.clientSessionId ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 08:29 AM
I had to see what a Spoke does in a conversation.
In the properties of the Spoke, there are output variables. Those are the variables available for the Virtual Agent to use. The output variables are created in the flow designer of that spoke. I hope this makes sense.