Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Hide a node within a topic based on user's country, virtual agent?

Dario Idrovo1
Tera Contributor

We have a requirements for employment verification letter, we have a topic within the virtual agent that presents two nods, one for US employees and one for Canada Employees, how can I restrict this so that US employees do not see the Canada option, and vice versa? 

More so from a script perspective, I know there is a "hide this node" at the bottom, but it does not allow us to do it based on condition, it must be scripted. 

 

Below, you can see, I want only USA Employees to view the [KBA US] and only Canadian Employees to view the [Request Catalog Item Canada] option. 

 

DarioIdrovo1_0-1710347555157.png

 

2 REPLIES 2

Mark Roethof
Tera Patron

Hi there,

 

Should be possible. Perhaps no code, definitely with code. Question, how to define who is a US employee / who is Canada employee? Is that just based on user record country? Something else?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@Mark Roethof it would be based on the country field in the user record.