Virtual Agent API variables and Designer

David129
Tera Expert

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).

 

David129_0-1736445914999.png

 

 

But I don't know how to read/use this variable on the VA Designer.

David129_1-1736446025084.png

 

Could you please help me about this ?

 

Best regards

 

David

 

3 REPLIES 3

Lynda1
Kilo Sage

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.

Lynda1_0-1736460891191.png

 

 

 

David129
Tera Expert

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 ?

 

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.