How to inject mesage from Genesys Open Messaging into a Live Virtua Agent Window using Scripted REST

Josel
Tera Contributor

Is there a way to inject messages coming from the Genesys Open Messaging into a Live Virtual Agent Window? 

We use Scripted REST to receive payloads coming from the Genesys Open Messaging and want's to display that message to the virtual agent window. We're trying to create a custom live chat using custom virtual agent topic and Genesys Open Messaging. 

Screenshot 2026-02-24 160524.png

1 REPLY 1

sanjaygupta
Tera Guru
 

I'd approach this by using the ServiceNow Virtual Agent Bot Integration API to pass incoming messages from Genesys into the active conversation.

You can check the following:

  • Use the /api/sn_va_as_service/bot/integration endpoint to send messages from Genesys to ServiceNow.

  • Pass the existing clientSessionId so the message is associated with the correct conversation.

  • Include the required user and session details along with the incoming message in the request payload.

  • Configure the response handling to send ServiceNow replies back to Genesys.

  • If the conversation has already moved to a live agent, check the UPDATE_MESSAGES action for updating messages in the agent chat panel.

You can refer to the Virtual Agent Bot Integration API documentation for the request structure and supported actions.

I'd avoid inserting messages directly into chat history tables. Use the supported API flow to keep the conversation history and chat interface in sync.

Also, verify whether the Genesys integration is using the Bot Integration API or a separate Live Agent messaging flow, as the implementation will differ.

 
Hope you find this helpful.