Exposing AI Agents via Virtual Agent API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi all,
We’ve successfully created a ServiceNow AI Agent, and it’s working well through the Now Assist chat window. However, we’re running into issues trying to access the same AI Agent through the Virtual Agent API, specifically via the /api/sn_va_as_service/bot/integration endpoint.
We’d really appreciate some guidance on a couple of points:
Can an AI Agent be exposed via the Virtual Agent API?
If so, what is the correct way to configure either the AI Agent itself, or the Virtual Agent API, to enable this?
Has anyone else set this up successfully or found documentation that clarifies the process?
Thanks in advance for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago - last edited 2 weeks ago
Hi @timwu ,
AI Agents are not designed to be directly invoked via the Virtual Agent API (/api/sn_va_as_service/bot/integration). That endpoint is strictly for Virtual Agent-driven experiences.
How to properly invoke an AI Agent
Use Virtual Agent integration with AI Agents
From Yokohama Patch 3 onwards, AI Agents can be triggered within the Virtual Agent conversational interface—provided the AI Agents skill is activated and configured.
👉How to properly integrate and invoke AI Agent within Virtual AgentUnderstand API limitations
While there isn’t a direct standalone REST API to call AI Agents, you can route through Virtual Agent topics or Now Assist contexts.
👉Trigger AI Agents with API (discussion)Reference FAQs and troubleshooting
ServiceNow provides guidance on supported methods and best practices for AI Agents.
👉AI Agents FAQ and Troubleshooting
Summary
Yes, AI Agents can run via Virtual Agent, but only with proper configuration of the AI Agents skill.
No, there is no direct API to invoke AI Agents outside of supported channels.
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.