How to make VA bot response link as dynamic (ie. instance dependent links, a link clicked on test in

Rushikesh Surya
Tera Contributor

Hi,

I need to add links for catalog items in the bot response of VA. I need to make them as dynamic so that when link is clicked on dev environment it redirects to a item in dev and when same thing is accessed using test instance VA it redirects to item in test.

One thing to keep in mind is that I have to do MS teams integration with VA and the links should work dynamic there also.

Any suggestion would help.

Thanks

2 REPLIES 2

Jonathan Ting
Tera Guru

Hi Rushikesh, 

 

Have you tried removing the instance from the link?
For example if you had https://instance.service-now.com/hrportal?id=sc_cat_item&sys_id=bf31f959db61b3000766be37f49619ee 

 

Try using hrportal?id=sc_cat_item&sys_id=bf31f959db61b3000766be37f49619ee 

 

 

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello @Rushikesh Surya ,

If the hyperlink font and text is changing when accessing a ServiceNow Virtual Agent (VA) topic from Microsoft Teams, it could be due to the formatting of the hyperlink in the VA script. When creating a hyperlink in the VA script, it is important to ensure that the correct HTML syntax is used to define the hyperlink and its associated attributes.

One possible solution is to use an HTML link tag in your VA script instead of plain text. Here's an example:

```
<a href="https://www.example.com">Click here</a>
```

In this example, "https://www.example.com" is the URL you want to link to, and "Click here" is the text that will be displayed as the link.

By using an HTML link tag in your VA script, you can ensure that the hyperlink appears correctly with consistent font and text formatting across different channels such as Microsoft Teams.
Please mark helpful and correct if this helped you.

 

Thanks,

Amarjeet Pal