Configure Now Assist AI agents
Summarize
Summary of Configure Now Assist AI agents
Configuring Now Assist AI agents enables you to create agentic workflows where AI agents autonomously execute tasks by using configured tools and business logic. These agents utilize contextual data from your records and knowledge base combined with large language model (LLM) instructions to plan and determine the next best actions toward specific goals. Ensuring your records and knowledge base contain the latest information is crucial for optimal AI agent performance.
Show less
Preparing for AI Agent Configuration
To maximize AI agent efficiency and avoid redundancy, plan your workflows carefully by defining the tasks your agents should handle and understanding the overall workflow. Use agentic tools with clear, well-written descriptions to enhance agent reasoning and performance.
Configurable Elements
- Base Plan: Sets initial instructions for the AI Agent Orchestrator at the workflow level.
- Role: Defines the AI agent’s identity and reasoning context, including an auto-generated proficiency description based on roles, instructions, and assigned tools.
- Instructions: Provide clear, step-by-step directives for the AI agent’s operational flow.
Tools for Agentic Workflows
Tools should be configured with a singular, well-defined purpose to avoid confusion and improve execution speed and accuracy. Each tool requires a comprehensive natural language description covering:
- Its functionality and scope
- Appropriate usage scenarios
- Situations where the tool should not be used
- Clear explanation of terms relevant to the tool’s context
Error messages generated during execution help AI agents learn from mistakes and refine their decision-making process.
Invoking AI Agent Conversations
The AI Agent Background Channel facilitates initiating AI agent workflows from the Workspace using the AI Agent Background Provider, which leverages the Virtual Agent Custom Adapter Framework. Conversations can be triggered programmatically using the snaia.AiAgentRunttimeUtil().startAiAgentConversation(request) API. Execution details and logs are accessible in the Execution Plans table and AI Agent Studio Testing page for monitoring and troubleshooting.
Interactive vs. Non-interactive AI Agents
- Interactive agents request user input during fallback scenarios to continue execution.
- Non-interactive agents operate without user interaction, using dynamic prompts to handle fallbacks internally, while still providing output messages in the Now Assist panel or Virtual Agent.
The execution mode is configurable in the Execution Plans table and supports concurrent operation with chat panels.
Multilingual Support
Now Assist AI agents support multiple languages by enabling native prompt translations and dynamic translation strategies, ensuring quality communication and extensive testing capabilities across languages.
AI Agent Studio Skills Migration
You can automate migration of AI Agent Studio skills from on-glide to off-glide execution paths (Mosaic) by enabling the "Off-Glide Enabled" setting in the Now Assist AI Agents application within the OneExtend Capabilities table, streamlining skill updates and deployment.
Configure the Now Assist AI agents to execute agentic workflows with AI agents and mapped tools.
Preparing for AI agents configuration
- 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.
Understanding the tools for agentic workflows configuration
- 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 verify 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.
Invoke Conversations with AI Agent Background Channel
The AI Agent Background Channel helps you to invoke AI Agent or agentic workflow execution from the Workspace. Use the AI Agent Background Channel associated with the AI Agent Background Provider to invoke conversations. The AI Agent Background Provider is based on the Custom Adapter Framework from Virtual Agent. For more information, see Configure a provider for your custom chat integration.
Create a channel identifier in the Provider Channel Identities table [sys_cs_provider_application] to add any additional conversational capabilities to your own provider application and get a new inbound ID that allows for customization. For more information, see Create a channel identifier for your custom chat integration.
To start a conversation, trigger the flow using the sn_aia.AiAgentRunttimeUtil().startAiAgentConversation(request) API in the Script Include (sys_script_include) of the AIAgentBackgroundProvider and select Run Script. When the Script execution status indicates Success, the conversation begins in the order of utterances defined in the Script.
Conversations that are invoked for executing an AI agent are logged in the Execution Plans [sn_aia_execution_plan] table. Open the conversation record to confirm the device type as AI Agent Background. Open the execution record to see the Execution Tasks, Messages, and the Tools Executions used to execute the AI agent.
You can also see the entire execution steps on the AI Agent Studio Testing page by copying the execution plan record's [sys_Id] and testing it. On the Chat responses tab, in the AI agent decision logs, you can see the AI agent details and the tools it used to resolve the issue.
Interactive and Non-interactive AI agents
The Interactive AI agents reach out to users for information when there is a fallback in the execution process, and the AI agent re-triggers the flow.
The Non-interactive AI agents don't reach out to the user at any fallback stage in the execution process. When the AI agent needs user information, it takes the dynamic prompt approach using the ReAct layer, where the prompt of the ReAct will change based on the execution mode of the AI agent or agentic workflow. Therefore, in the Non-interactive execution, the reach fallback options don't have to collect input from a user as a fallback option. However, the output of the AI agent or agentic workflow will still need to be presented to the user, and in any execution failure scenario, a message in the Now Assist panel or Virtual Agent is shown.
To implement the Non-interactive execution, the Execution Mode field is added in the Execution Plans [sn_aia_execution_plan] table, where the execution mode can be Interactive or Non Interactive based on the given runtime parameter.
You can run the AI agents and agentic workflows concurrently in the AI Agent Background Channel and in Non-interactive mode where the background execution allows AI agents to operate with any chat panel like Now Assist panel or Virtual Agent.
Multilingual support
- Tune system prompts for native translations.
- Implement dynamic translation strategies when native support is unavailable.
- Provide extensive testing via automated and manual evaluations.
AI Agent Studio Skills migration
- Navigate to the OneExtend Capabilities [sys_one_extend_capability.list] table.
- Find the Now Assist AI Agents application.
- Set the Off-Glide Enabled to true
- Select Save.