Email Intent to Action Agentic Workflow
Summarize
Summary of Email Intent to Action Agentic Workflow
The Email Intent to Action Agentic Workflow in ServiceNow automates inbound email processing by intelligently recognizing requests, extracting necessary data, executing relevant actions, and generating appropriate responses. It supports two primary types of email requests: workflow executions triggered by identified intents, and information queries answered via AI-powered search profiles. This workflow enhances efficiency by automating diverse email interactions and ensuring no email goes unaddressed.
Show less
Key Features
- Intent Recognition and Mapping: The system uses large language models (LLMs) to identify one or multiple intents within an email, such as leave approvals or information requests, then maps these intents to predefined actions configured by administrators.
- Action Execution: For each detected intent, the system triggers associated actions including executing subflows (automated workflows) or sending reply emails. Multiple intents in one email are processed independently.
- Default Intent Action: Emails without matching intents are handled by a configurable fallback action, ensuring every inbound email receives an appropriate response or acknowledgment.
- Email Agents: Specialized AI agents collaborate in this workflow:
- Intent Identification Agent: Analyzes email content using LLMs to detect and map user intents.
- Intent Executor Agent: Extracts required data from emails and executes corresponding actions or workflows. It also manages fallback actions when no intents are matched.
- Email Generator Agent: Creates contextually relevant email responses using configurable templates and can operate in supervised (draft approval) or unsupervised (automatic sending) modes.
- Handling Missing Inputs: The system offers configurable modes to manage scenarios where required data is missing from emails, enabling you to choose between requesting missing inputs, skipping incomplete intents, or proceeding with execution regardless.
- Email Template Support: Administrators can define templates to maintain consistent branding and formatting in AI-generated emails.
Practical Benefits for ServiceNow Customers
- Automates triage and response to inbound emails, reducing manual workload and accelerating resolution times.
- Enables customization of intents and actions to align with specific business processes and needs.
- Ensures comprehensive email handling through fallback mechanisms, preventing missed requests.
- Supports both simple acknowledgments and complex workflow triggers, enhancing operational agility.
- Provides flexibility in response generation with options for human review or full automation, balancing quality and efficiency.
The Email agentic workflow automates inbound email processing by intelligently interpreting requests, extracting required information, performing actions, and generating responses.
Email request types
- Workflow executions: These emails contain requests where the system identifies one or more intents that trigger predefined automated workflows. This enables execution of custom processes based on the email content.
- Information queries: For these requests, the system acts as an intelligent assistant, answering questions by using default AI search profile that can be mapped to existing information sources.
The workflow identifies and processes one or more intents from a single inbound email, evaluating each identified intent independently.
Intent to action driven email processing
The foundation of an intelligent email automation lies in accurately interpreting the purpose of an incoming email and executing the appropriate actions. This process is driven by Intent to Action mapping.
- Intent: The underlying purpose or request expressed in an incoming email. A single email can contain multiple intents, each representing a distinct request (for example, "approve my leave" or "answer my question").
- Action: The specific task or process that the system executes in response to a successfully identified intent.
Admins configure intents to enable the system to recognize and process different types of requests. The system identifies all relevant intents in an inbound email, matches them to preconfigured intents, and maps each intent to its corresponding actions.
Once an intent is identified, a corresponding action is triggered. Each intent can have one or more configured actions, such as executing workflows or sending reply emails. For inbound emails containing multiple intents, the system executes the configured actions for each identified intent independently. Actions include:
- Subflows: These are predefined workflows that execute a series of steps relevant to the matched intent. For example, a "leave approval" intent might trigger a subflow to initiate an approval process.
- Reply Emails: In some cases, the action involves sending an automated email response back to the sender. For example, an acknowledgment or a direct answer containing extracted information.
The system's framework continuously analyzes incoming emails, identifies their intents, and performs the associated actions, providing a structured and automated approach to managing diverse email requests.
Email Agents
Email agents automate the triage and processing of inbound email requests by identifying intents, executing actions, and generating appropriate email responses.
- Intent Identification Agent
This agent acts as the initial brain of the workflow and identifies one or more intents in the inbound email request using LLMs. It uses these advanced LLMs to analyze the content of an inbound email, deciphering its underlying intents. Once identified, these intents are then mapped to their corresponding preconfigured and customized intents within the system.
The Intent Identification Agent functions include:- Intelligent Intent Recognition: Using LLMs to understand natural language and identify one or more user requests.
- Custom Intent Mapping: Linking recognized intents to specific, user-defined categories or actions. This enables flexibility and tailors it to the unique business needs.
- Action Association: Identifying intents with a variety of subsequent actions.
- Intent Executor Agent
Once the Intent Identification Agent has determined the email's purpose, the Intent Executor Agent takes over. Its role is to carry out the instructions associated with each identified intent. This involves extracting any crucial data points from the email (for example order numbers, customer IDs, specific requests) and then executing the corresponding actions or workflows.
The Intent Executor Agent functions include:- Input Extraction: Identifying and extracting critical information from the email content needed for subsequent actions.
- Action Execution: Triggering and managing the execution of the predefined workflows or actions configured for each identified intent.
- Default Action Handling: Providing a fallback mechanism by executing a default action if an email's intents can’t be matched to any specific custom intent, confirming no request goes unaddressed.
When required inputs can't be extracted from an inbound email, the system handles missing inputs using configurable execution modes. The behavior is controlled by the system property sn_notif_agents.missing_inputs_execution_mode.- Type: Choice list
- Default: request_missing_inputs
The following execution modes are supported for handling missing inputs:- request_missing_inputs: Stops execution of all intent actions and sends a reply email to the sender requesting missing inputs.
- skip_intents_with_missing_inputs: Skips intent actions that are missing mandatory inputs and executes the remaining intent actions. If all identified intents are skipped, the system automatically falls back to the default behavior.
- execute_all_intents: Executes all intent actions regardless of missing inputs. Missing inputs are passed as empty strings, and downstream workflows determine how to handle them. No reply email is generated.
Note:Once the intent is finalized, this information will be used to retrieve any relevant actions. - Email Generator Agent
The Email Generator Agent is responsible for generating clear, concise, and relevant email responses. It takes inputs from the inbound email, including the identified intents, and extracted information to generate a suitable reply. The context, tone, and goals for drafting emails can be configured by administrators. The responses generated by the Email Generator Agent are based on the reply email actions configured for one or more intents. As a result, one or more responses can be generated for a single email.
The Email Generator Agent functions include:
- Contextual Response Generation: Using all available information and context to create highly relevant and personalized email responses.
- Draft Creation (Supervised): Generating email drafts that can be reviewed and approved by a human agent before sending, enabling oversight and quality control.
- Automated Sending (Unsupervised): For routine or low-risk requests, the agent can be configured to automatically send emails without human intervention, significantly boosting efficiency.
The Email Generator Agent supports a configurable Email template field that enables responses to be generated using predefined email templates. These templates help maintain consistency in branding, layout, and formatting of AI-generated emails.