Now Assist with AI Agent performance issue in use Issue ProblemBest Practices to enhance the AI Agent's speed, consistency, scalability, and long-running task execution capabilities without compromising response quality. Release Any Cause Root Cause1. Excessive tools assigned to an AI agent, leading to increased LLM token processing overhead and response latency.2. Conflicting triggers (e.g., overlapping conditions) causing recursive loops and performance degradation.3. Overly broad memory injection or misconfigured persistence settings impacting response times.4. Incompatibility or outdated plugins contributing to system instability. Resolution 1. Optimize Agent Scoping and Tool Density:* **Limit Tools per Agent:** Keep the number of tools assigned to an individual AI agent lean (ideally 10 or fewer per use case). Excess tools bloat the system prompt context window, which directly increases LLM token processing overhead and response latency.* **Refine Tool Descriptions:** Ensure that tool descriptions and prompt instructions are unambiguous. Vague definitions cause the LLM to waste execution cycles or loop through incorrect tool selections, hurting both speed and reliability.2. Control Execution Loops and Limits:* **Prevent Recursive Loops:** Avoid combining conflicting triggers (such as overlapping "On Record Create" and "On Record Update" conditions) on the same agent without strict conditional filters. This is a frequent root cause of performance degradation and runaway transaction processing.* **Configure Execution Limits:** Utilize instance system properties like `sn_aia.continuous_tool_execution_limit` to explicitly cap how many times a single tool can execute continuously without an interruption checkpoint.3. State Management and Memory Tuning* **Evaluate Episodic Memory Configuration:** Review parameters governing memory injection (such as `sn_aia.use_episodic_memory_for_ai_agent`). While memory persistence helps maintain multi-step context across interactions, overly broad data injection can impact response times. Balance persistence settings against the specific workflow complexity required.* **Leverage Performance Bucket Latency Analysis:** Use built-in performance telemetry (such as Latency Analysis Buckets) to break down execution time into distinct segments: system execution time, tool execution latency, and LLM response latency. This isolates whether the bottleneck originates from database/tool overhead or the underlying model response.4. General Troubleshooting & Validation* **Verify Plugin and Version Consistency:** Ensure all related Now Assist for AI Agents plugins are up to date and check compatibility for the current instance version (such as Zurich).* **Review Related Knowledge & Fixes:** Cross-reference known telemetry patterns or configuration templates using internal knowledge baseline references (e.g., matching symptom characteristics against structured troubleshooting guidelines). Community Article Reference: https://www.servicenow.com/community/servicenow-otto-articles/best-practices-in-managing-ai-agents-skills-and-assists-in/ta-p/3569710Best Practices Document Related Links https://www.servicenow.com/community/servicenow-otto-articles/best-practices-in-managing-ai-agents-skills-and-assists-in/ta-p/3569710