Configuring Now Assist AI agents
Summarize
Summary of Configuring Now Assist AI agents
Configuring Now Assist AI agents enables ServiceNow customers to create AI-driven agentic workflows that perform tasks autonomously by leveraging AI agents and their mapped tools. These AI agents use context from your records and searchable content combined with instructions sent to large language models (LLMs) to plan, analyze, and determine the next best actions to achieve specific business goals.
Show less
Accurate and up-to-date record data and knowledge bases are critical for optimal AI agent performance.
Prerequisites
- Clearly define the types of tasks your agentic workflows should handle.
- Understand the general flow and logic of your agentic workflows and AI agents.
- Use agentic tools that have well-crafted, clear descriptions.
Having a clear plan before configuring helps avoid redundant AI agents and maximizes workflow efficiency.
Configurable Elements
- Base plan: The initial instructions for AI Agent Orchestrator to plan actions, set at the agentic workflow level.
- Role: Defines the AI agent’s identity, including:
- Agent reasoning: Adds identity context to content generated by the LLM.
- Agent proficiency: An auto-generated LLM description of the agent’s capabilities based on assigned roles, instructions, and tools.
- Instructions: Step-by-step operational directives written clearly to guide AI agents through their tasks.
Configuring Tools for Agentic Workflows
Tools are essential functional components to enable AI agents to fulfill their roles effectively. When configuring tools, focus on:
- Functionality: Each tool should serve a single, clear purpose to avoid confusion and ensure efficient AI agent reasoning and runtime performance.
- Tool description: Provide comprehensive natural language descriptions covering:
- What the tool does.
- Scenarios and workflows where the tool is applicable.
- Cases where the tool should not be used, preventing misuse by AI agents.
- Clarification of terms used in the context of the tool’s function (e.g., defining roles precisely).
- Do not use multipurpose or multi-mode tools, as they complicate AI agent decision-making and reduce performance.
Error Handling
Error messages play a critical role in the iterative learning of AI agents. They:
- Help agents understand when incorrect tools are used.
- Allow reflection and adjustment toward valid conclusions in subsequent executions.
- Improve overall task execution by identifying scenarios where tool usage may fail or be inappropriate.
Configure the Now Assist AI agents to execute agentic workflows with AI agents and mapped tools.
Configuring AI agents
- Prerequisites
- By making a plan, you can improve your AI agent performance and result quality. When you have a solid foundation of what you want to build, you can minimize creating redundant agents and maximizing the efficiency
of your existing ones. Before you send instructions to your AI agents, make sure that you follow these prerequisites:
- Have a good idea of the different kinds of tasks that your agentic workflow should be able to handle.
- Understand the general flow for your agentic workflow and agents.
- Use agentic tools with well-written descriptions.
- Configurable elements
- Instruct the agentic workflows and AI agents through the following elements within the framework:
- Base plan: Instructions to the AI Agent Orchestrator for the initial planning procedure that is configured at the agentic workflow level.
- Role: Clear identity of the AI agent that includes these elements:
- Agent reasoning: When a role is added to each reasoning prompt, it provides a sense of identity to the content that is generated by the LLM.
- Agent proficiency: An LLM-generated description of what an agent is capable of, including the content from the role, instructions, and the descriptions from the tools that
are assigned to the AI agent.Note:The agent proficiency is auto-generated.
- Instructions: Clear directives for the AI agent. Write instructions as a step-by-step algorithm that describes the operational flow for the AI agent.
Configuring the tools for the agentic workflows
- Functionality
- What an AI agent contributes to the agentic workflow. Configure the tools with a single purpose. Multipurpose tools can cause a problem for the agents for the following reasons:
- Multipurpose tools are harder for the AI agent to reason through and determine when to use the tool. If a tool can be used for more than one purpose, the AI Agent Orchestrator has to determine which purpose is most applicable, which can decrease your AI agent's performance by increasing the runtime.
- The tool description must be comprehensive enough to account for all the scenarios for the usage of the tool that is being defined.
Note:Don't use tools that can operate in different modes. Instead, configure your tools as the solution to a singular problem for a scenario. - Tool description
- Natural language descriptions that describe the utility provided by the tool. Make sure that you define the scope and limits of the tools clearly to help ensure that the tools are picked for the appropriate
scenarios in the following ways:
- Provide a description of what the tool is supposed to do.
- Describe the scenarios where the tool can be called. Include the specific agentic workflows and tasks where the tool and its functionality can be used.
- Explore the scenarios where the tool is explicitly not useful but an AI agent can confuse the tool as being useful.
- Explain the terms that are being used in the preceding cases. For example, if you have a tool for assigning a role to a user, you must explain what the role is in the agentic system of the given instance.
- Error messages
- An AI agent operates through trial and error. For example, an error message about an execution that accidentally ran incorrect tools can help the AI agent reach more valid conclusions in the future. Error
messages offer an AI agent a chance to reflect and explore other options.
Understanding the scenarios where the tool can go wrong can help the AI agent with keeping the execution on track.