We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Retrive URL of site in Virtual agent script

Akshay37
Giga Guru

I have embedded VA on external websites using engagement messenger. Is there any way to retrieve URL of that website in Virtual Agent topic script ? 

2 REPLIES 2

Abhishek Sangem
ServiceNow Employee

Hi Akshay,

Firstly you need to add the parent window's URL to the iframe URL as a query parameter with "sysparm_" as the prefix (sysparm_url).

 

Then you can get this value within the VA topic script using vaContext.url

Hi Abhsihek,

 

Thank you for your response

We have achieved same with "sysparm_" only but this is applicable only to "chat" feature of engagement messenger not for "home" feature.

Thanks,

Akshay