Virtual Agent - Live Chat ContextVariables

louissicko
Tera Contributor

Hello,

 

im currently implementing the Virtual Agent Live Chat with a Standalone Bot (Bot to Bot Integration).

We initiate a new Chat session via the REST API (/api/sn_va_as_service/bot/integration).

In the ContextVariables in the REST Call we define following contextVariables:

- live_agent_only = true

- short_description = Test

They both work. I get a chat session in the Service Operations Workspace with the defined Short description.

 

Now we created some new fields on the Interaction Table which also should be predefined by the context variables.

In the Conversational Interfaces Settings under Context Variables Section I created a new Record like following:

Name: u_ai_chat_history (The Fieldname of the Interaction-Table Field)

Script Variable Name: LiveAgent_u_ai_chat_history (Automatically generated)

Table: Interaction

Record: true (Automatically set) 

Value: <Empty>

 

When I start a new chat session with the contextVariables:

- live_agent_only = true

- short_description = Test

- u_ai_chat_history = Hello World

Only the Short Description gets prefilled.

I also tried 'LiveAgent_u_ai_chat_history' instead of 'u_ai_chat_history' in the REST Call with the same outcome.

 

Does anyone know what I have to change to get this working?

 

Thanks a lot!

 

With kind regards

Louis

1 REPLY 1

Arjun11
Tera Contributor

Hey @louissicko ,

 

Did you find the solution for this? Facing similar issue

 

Thanks,