How to Call a ServiceNow AI Agent Using REST API
ServiceNow Dev Program
·
Jul 10, 2026
·
video
In this episode, Sujan Dutta and Amit Verma walk us through how AI agents can communicate and collaborate using ServiceNow A2A APIs. We break down configuration, API mechanics, and see it in action with a real-world incident creation example. Watch as we cover: • Discoverability Setup: How to enable agents to be discovered by external systems and agents using ServiceNow's built-in toggles • Agent Card API: Understanding what agent capabilities are exposed and how other agents discover them • Agent Invocation API: The actual mechanics of triggering an agent with a POST request, JSON Structures, and the role of IDs in tracking requests • Hands-On Demo: A live walkthrough using Postman, showing a monitoring agent triggering incident creation in ServiceNow along with the best practices. Whether you're building AI agents, integrating external systems, or wondering how agents can collaborate, this session pulls back the curtain on a critical ServiceNow capability. For those who want to dig deeper, check out few of the Warren Chan's blogs which have been referred by Amit: https://www.servicenow.com/community/now-assist-articles/external-agents-in-servicenow-via-google-a2a-servicenow-as/ta-p/3467587 https://www.servicenow.com/community/now-assist-articles/asynchronous-external-agents-over-google-a2a-servicenow-as/ta-p/3500118 https://www.servicenow.com/community/now-assist-articles/authentication-for-google-a2a-servicenow-as-secondary-agent/ta-p/3446091 https://www.servicenow.com/community/now-assist-articles/sample-payloads-for-google-a2a-servicenow-as-secondary-agent/ta-p/3451904 0:00 - Introduction & Agent-to-Agent Communication Overview 1:33 - Configuration Step 1: Making Agents Discoverable 2:19 - Configuration Step 2: Enabling Third-Party Access in Agent Studio 2:44 - The Two Critical APIs: Agent Card & Invocation APIs 3:11 - Understanding Agent Capabilities & Skills 3:36 - Setting Up Your REST APIs: Postman Walkthrough 4:18 - Agent Discovery API: Fetching the Agent Card 4:57 - Reading Agent Capabilities from the Response 6:08 - Understanding the Request URL & Agent ID 6:45 - JSON RPC 7:46 - Understanding Output Format & History Length 10:38 - Reading the Response: ID Matching & Backtracking 11:34 - Understanding Response Structure & State 14:13 - The Provider Field & External Agent Indicators 15:31 - Closing Remarks
https://www.youtube.com/watch?v=HsbRIQrx1jk
Amit Verma
Warren Chan
Sujan Dutta