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!



2 REPLIES 2

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

Hi   @kaustubhdub 

 

Thank you for your response.

 

The reason I want to retrieve the Engagement Messenger module ID from a Virtual Agent topic is to open a catalog item form inside the Virtual Agent window within Engagement Messenger, rather than redirecting to a new window. Is there any other way to open the catalog item form directly in the Virtual Agent window?

 

Regarding your suggestion for the second question, I understand that passing the topic sys_id in the Engagement Messenger configuration will load EM with that Virtual Agent topic. However, I don’t want EM to load only with Virtual Agent. I have both a catalog item and Virtual Agent embedded in EM. My requirement is that when I click on the Virtual Agent card, the topic I specify should open immediately instead of starting with the default greeting topic and then navigating to “Show me everything” to open my topic.