Key Tables Used in ServiceNow Agentic AI (Development, Migration, and Troubleshooting)

Mdsaqib826
Tera Expert

When working with ServiceNow Agentic AI, understanding the underlying system tables is essential for configuring agents, validating deployments, and troubleshooting issues.

The following tables are the core components for Agentic AI orchestration, execution, and Generative AI tracking.

 

1. Core Agent Tables

These tables are used to define the agents, their settings, and the tools they can utilize.

CategoryTable NamePurposeCritical Usage Context
Configurationsn_aia_agentStores the core definitions of AI Agents.Migration: specific table to check when validating if an agent exists across environments.
Configurationsn_aia_agent_configStores configuration details, including activation states.Dev & Validation: Use this to verify if an agent is currently active and properly configured.
Toolssn_aia_agent_tool_m2mManages the many-to-many relationship between Agents and Tools.Migration: Essential to verify that agents haven't lost their tool associations during transfer.
Use Casessn_aia_usecaseDefines the specific use cases supported by Agentic AI.Deployment: Validates that use cases are correctly mapped to the right agents.



2. Orchestration & Teams

These tables control how agents work together and how flows are triggered.

CategoryTable NamePurposeCritical Usage Context
Teamssn_aia_teamDefines Agentic AI teams (groups of agents).Migration: Validates that team-level structures are intact.
Teamssn_aia_team_memberStores individual agent membership within a team.Troubleshooting: Confirms which agents are participating in a specific team's workflow.
Flow Logicsn_aia_trigger_configurationStores the trigger configurations for Agentic Flows.Troubleshooting: Critical for checking why an agent execution did (or did not) start.

 

3. Runtime & Execution Tracking

These tables are your primary sources for debugging live interactions.

CategoryTable NamePurposeCritical Usage Context
Executionsn_aia_execution_planStores the high-level plan generated for a request.Troubleshooting: The first place to look to see if the system acknowledged the request and formed a plan.
Executionsn_aia_execution_taskStores the specific tasks/steps inside a plan.Debugging: Use this to find exactly which step failed or stalled within a conversation.
GenAI Logssys_gen_ai_usage_logCaptures high-level GenAI usage events platform-wide.Monitoring: Confirms that the LLM was actually invoked during the agent's execution.
GenAI Logssys_gen_ai_log_metadataStores detailed metadata (token counts, response headers).Auditing: Used for deep-dive analysis of AI costs and response latency.

 

Quick Reference: Tables by Lifecycle Phase

Use this checklist to know which tables to query during different stages of your project.

 Phase 1: Development

  • Focus: Configuration & Connections.

  • Check: sn_aia_agent_config, sn_aia_agent_tool_m2m, sn_aia_usecase.

 Phase 2: Migration & Deployment

  • Focus: Integrity & Completeness.

  • Check: sn_aia_agent (existence), sn_aia_team (structure), sn_aia_trigger_configuration (triggers).

 Phase 3: Troubleshooting

  • Focus: Runtime Errors & Logs.

  • Check: sn_aia_execution_plan (did it start?), sn_aia_execution_task (where did it stop?), sys_gen_ai_usage_log (did the AI respond?).

 

If you found this post helpful, please mark it as helpful!

0 REPLIES 0