Virtual Agent Context (vaContext) variable

Sushant13
Tera Contributor

Hi there,

In Virtual Agent I can introduce new virtual agent context (vaContext object) variables adding query string parameters (sysparm_variable1, sysparm_variable2) to the Virtual agent web URL.

Is there a way to add new context variables via a script. My requirement is to introduce vaContext variables when the user start a new chat session.

I cannot use chat context variables (vaVars object) as this fails for certain types of scenarios (NLU discovery).

Let me know your thoughts.

Thanks,
Sushant

1 REPLY 1

Muralidharan BS
Mega Sage
Mega Sage

Hi Sushant,

Yes, you can create a new variable there are quite a few ways to do it,

1. Create a variable by going to conversational interfaces > settings > general > context variable

find_real_file.png

 

2. Go to the topic itself and create a variable,

find_real_file.png

You can access the variable using - vaContext.variablename

Thanks