Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Get Logged in User / get metadata - Virtual Agent Embedded (Engagement Messenger)

Vinicius Luz
Tera Expert

Hi everyone, 

 

Has anyone here implemented the Engagement Messenger (the embedded Virtual Agent / Agent Chat interface) on an external website?

 

I’m trying to understand the best way to pass metadata from the external site into the chat session — for example:

 

  • Logged-in user ID
  • Email address
  • Account or context information

 

 

Basically, I’d like the chat session in ServiceNow to automatically know who the user is, without asking them to re-enter their details.

 

If you’ve done something similar, how did you approach it?

 

 

 Through the Web Client SDK configuration?

 

 

 By passing parameters to the Messenger initialization?

 

 

 Or maybe through a custom integration layer (like a Service Portal proxy)?

 

Any guidance, examples, or best practices would be greatly appreciated! 

 

 

 

1 REPLY 1

RaghavSh
Mega Patron

There is a plugin for this named virtual agent API, pls explore that:

 

https://www.servicenow.com/docs/bundle/washingtondc-servicenow-platform/page/administer/virtual-agen... 


Please mark the answer correct/helpful accordingly.

 

 


Raghav
MVP 2023
LinkedIn