How to call a URL in Virtual Agent

Ramon Marquevi1
Tera Contributor

Hi Guys,

 

I'm with a problem with Virtual Agent, i need to call a URL in new tab of some catalog item after some action in Virtual Agent, i used action script, which is server side, but with gs.setRedirect(url) don't get success, also i try using a html action to do somethig with tag <script> but i think that i can't manipulate DOM in Virtual Agent, or use something like window.open or location.href, someone can help me if this is possible or know how to do this?

 

Best Regards,

Ramon Marqueviski

2 REPLIES 2

Chris D
Kilo Sage
Kilo Sage

I think you should reconsider what you're trying to do from a user experience perspective. If somebody submits input to VA and you want VA to open something in a new tab automatically, that's going to be very jarring to the user completely changing the UI with no warning. And if there's going to be warning - let's say "this will open something in a new tab in 5 seconds" - then why even bother with the customization?

Hyperlinks in VA open in a new tab by default without any code to do that - and that way you can allow the user to control their own experience, i.e. explicitly saying "click here to submit this request form" instead of suddenly switching screens for them.

Maybe, I'm not so clear in my doubt, but i will open a page after some action the user, like, i click in the button called "Support" and this button call a URL to some catalog item. I don't want a button that send a message with the link and the user need to click in the link, i think that's explaination was better