Best practice to merge two ServiceNow Virtual Agent bots into one Teams bot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Community,
We currently have two separate ServiceNow Virtual Agent chatbot experiences integrated with Microsoft Teams, one for IT and another for HR.
The requirement is to provide users with one unified bot in Microsoft Teams that can handle both IT and HR requests.
Both existing bots already have their respective Virtual Agent topics, configurations, and functionality implemented.
We are looking for guidance on the recommended ServiceNow architecture and best practice for consolidating these two chatbot experiences.
Also, how should topic visibility, user criteria, HR security, authentication, AI Search, and Teams integration be handled when combining the two experiences?
Our primary goal is to provide a seamless single-bot experience in Teams while minimizing redevelopment of the existing IT and HR functionality.
Any recommended architecture, best practices, or experience with a similar implementation would be greatly appreciated.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Pradip,
The key architectural point: you do not merge anything on the Teams side. A Teams bot (one app registration / messaging endpoint) points at ONE ServiceNow instance's Virtual Agent. So the merge happens inside a single instance - one VA configuration, one Teams channel, with both the IT and HR topic sets published to that same bot. The topics themselves are reused as-is, which is why this approach needs very little redevelopment.
Recommended approach:
1. Pick the surviving bot configuration. Keep one Teams integration and one set of Setup topics (Greeting, Anything Else, Feedback, Closing) - a bot can only have one active set, so choose one Greeting and extend it to offer the IT / HR split, rather than trying to keep both. The second Teams app is retired at the end, not merged.
2. Publish both topic sets to that bot's Teams channel. IT and HR topics coexist in the same bot; topic discovery (NLU / keyword) routes the user. Add a simple domain choice in the Greeting ("IT help" / "HR help") as a fallback for ambiguous requests.
3. If the two experiences live on DIFFERENT instances, this does not work directly - a single Teams bot cannot front two instances. In that case consolidate on the instance that owns identity/SSO: move the other domain's topics across (update sets / republishing the topic flows), and where records must still be created on the other instance, do it from the topic with IntegrationHub / REST rather than keeping a second bot.
4. Topic visibility: control it per topic with User Criteria (and on individual topic blocks where only part of a flow is restricted). That decides who SEES and can start an HR topic.
5. HR security: treat topic visibility as presentation, not as security. VA runs in the context of the authenticated user, so the real enforcement stays where it already is - HR case ACLs and HR user criteria on the underlying sn_hr_core records. Test the merged bot with a user who has no HR access and confirm they cannot reach HR case data through search results or topic outputs even if a topic is visible to them.
6. Authentication: one bot means one SSO / Azure AD configuration and one account-linking flow mapping the Teams user to a sys_user. That actually simplifies things - retire the second app registration and its separate auth setup.
7. AI Search: use one AI Search profile for the bot, with both IT and HR knowledge/search sources included. Results are security-trimmed per user, so a single profile is correct as long as the underlying KB/article user criteria are right - validate HR content is not returned to non-HR users here, because this is the most common leak point in merged bots.
8. NLU: watch for intent collisions when the two models meet - the same utterance ("reset my password", "I need leave") must land in one topic. Consolidate duplicate intents, retrain, and test the top overlapping utterances from both domains before go-live.
Cutover: build the merged bot alongside the existing ones, publish IT + HR topics to it, pilot with a small group, then remove the second Teams app and redirect its users. Do not delete the old topics/configurations until the merged bot has run in production - keep them as your rollback.
Regards,
Karimuddin