Get Engagement Messenger Module ID in Virtual Agent

srashtis
Tera Contributor

Hi All,

I need assistance with the following:

  1. How can I retrieve the module ID of the Engagement Messenger from a Virtual Agent topic that is running inside the Engagement Messenger?
  2. How can I set a default topic so that when I open the Virtual Agent from Engagement Messenger, it launches a predefined topic instead of the default greeting?

Thank you for your help!



1 REPLY 1

kaustubhdub
Giga Guru

hey @srashtis 

I did go through your issue please refer to the below if this is helpful for you.

1) Retrieving the Engagement Messenger module ID from a Virtual Agent topic

When a Virtual Agent topic runs inside Engagement Messenger, the module (or entry point) context is not exposed to the topic.
Virtual Agent topics do not have access to the Engagement Messenger module ID by default.

The only contextual data available inside a VA topic is what is explicitly passed using:

  • VA system variables

  • Topic inputs

  • Conversation context (vaVars, inputs, or payload)

So, there is no supported way to directly retrieve the Engagement Messenger module ID from within a VA topic unless you explicitly pass it when launching the topic.

 

2. For the second doubt you just mentioned i would like to ask you to:

To open a predefined Virtual Agent topic instead of the default greeting, configure Engagement Messenger to launch a specific VA topic:

  • Use Engagement Messenger configuration to launch Virtual Agent with a Topic Sys ID

  • This bypasses the greeting topic and starts the specified topic directly

This is the supported and recommended approach. No changes are required inside the VA greeting topic itself.

 

you can also refer to these two article for help Article 1 Article 2 

Please do mark my answer helpful if the info was helpful to you

 

Warm Regards

Kaustubh Dubey