- Release Notes
- Getting started
- Notifications
- Projects
- Datasets
- Data Labeling
- ML packages
- Out of the box packages
- Pipelines
- ML Skills
- ML Logs
- Document UnderstandingTM in AI Center
- AI Center API
- Licensing
- AI Solutions Templates
- Email AI
- How to
- Basic Troubleshooting Guide
Email AI
AI Solution Templates > Email AI
The Email AI Template is currently in public preview.
UiPath is committed to stability and quality of our products, but preview features are always subject to change based on feedback that we receive from our customers. Using preview features is not recommended for production deployments.
The Email AI Template solution is still supported for existing users, but for more complex use cases the Communications Mining solution is highly recommended. For more information on Communications Mining check the official documentation.
To learn more Email AI, check this video.
This template provides a recipe to build your own Email AI Solution. The template helps achieve the following goals:
- Detect intent to organize and route emails to different department.
- Discover high value and urgent emails based on business needs and sentiment.
- Extract entities to execute data entry and escalation workflows.
- Show the impact of AI enhanced automation on Insights Dashboard.
zip
file, called EmailAI.zip
, which can be downloaded from here:
- Machine Learning (ML) Models (available in UiPath® AI Center)
- Sample Datasets (inside the
classification_data
andner_data
folders) - Sample Workflows (inside the
SMA_SmartMailAutomation
andNER_Validation_Station
folders) - Standard Analytics
- Human in the loop and continuous learning of ML models
- Configuration file (
Config.xlsx
)
Machine learning models
- Multilingual Text Classification for intent classification
- Custom Named Entity Recognition for extracting relevant information
- Semantic similarity for mapping questions in email to knowledge base
- Sentiment Analysis to discover urgency
Sample datasets
Sample dataset are used to quickly test the models and create additional datasets specific to your use case.
The Email AI template bundle contains two sample datasets:
- Sample Tagged Email Dataset for Multilingual Text Classification model (
Email_Classification_data.csv
) - this sample is used to classify emails between the following classes:- Transaction issues
- Loan issues
- Misinformation or clarification issues
- Sample Tagged Email Dataset for Custom NER model (
Email_NER_data.txt
) - the following entities are labeled:- ID
- PER
- ORG
- AMOUNT
Sample workflows
Sample workflows are used to run the models in pre-built workflows to see the power of AI, curate additional dataset, and customize the workflows if needed.
Sample business scenario workflow
faq_data
folder to workflow). Low confidence predictions go to Action Center, and then to AI Center Dataset.
Depending on the prediction, there are three possible scenarios:
Loan Issue: Data entry to CSV file and prioritize emails with loan higher than $10,000
Transaction Issue: Data entry to CSV file and prioritize emails with transaction value higher than $10,000
Misinformation or Clarification Issue: Extract the response from knowledge base for the mapped question
This execution workflow is also responsible for creating logs that can be consumed by the Insights dashboard queries.
Config.xlsx
file.
Standard analytics
In case of the demo provided, the information in the Insights demo looks similar to the screenshot below:
The Insights dashboards for Email AI is comprised of the following widgets:
Widget name | Widget type | Description |
---|---|---|
Number of Emails Processed | Input | Displays a cumulative total of all emails processed to date. |
Automation Distribution | Pie Chart | Percentage of automation used, distributed by:
|
Distribution of Intents | Pie Chart | Percentage of intents used, distributed by:
|
Distribution of Entities | Pie Chart | Percentage of entities used, distributed by:
|
Distribution of Sentiments | Pie Chart | Percentage of sentiments used, distributed by:
|
Distribution of FAQ Questions | Pie Chart | Usage percentage of each FAQ question received. |
Human in the loop and continuous learning
NER_Validation_Station
workflow is provided that can be used to validate custom entities and then push the data to AI Center.
Description | |
---|---|
Step 1: Train and deploy ML Skills | The following ML Skills need to be trained and deployed: |
Step 2: Make all ML Skills public and copy the URL and API key | Copy the URL and API keys of the deployed ML Skills. |
Step 3: Use the SMA_SmartAutomationMail workflow and
configure environment variables
| The workflow is ready to run with the necessary configurations provided. |
Step 4: Go to the Insights dashboard and run the queries | Configure the following queries in the Insights dashboard:
|
Step 5: Configure human in the loop for NER | After running the execution workflow, the low confidence data from Custom NER
model is collected in the training_data sub folder in the
NER_Validation_Station folder. Run the workflow in there to
validate the data and change if needed. Now this data can be manually uploaded to AI
Center or you can configure validation station to upload the data to the AI Center
Dataset folder.
|
Step 6: Extend Email AI to your needs | Now that we have seen how Email AI can automate your inbox, it is time to look into common inboxes of your company and extend this solution template to a solution. |
- Train the Text Classification Dataset model and deploy as ML Skill.
- Train the NER Dataset model and deploy as ML Skill.
- Deploy the Semantic Similarity Model as ML Skill.
- Deploy the Sentiment Analysis Model as ML Skill.
For more information on how to make ML Skills public and generate a URL and API key, see Managing ML Skills.
- Configure the API URL and keys for the ML Skills and Dataset folder in the ML Config sheet of the Config.xlsx.
-
Configure the following parameters:
-
UnreadLocalMailFolder
to the folderdemo_emails
. -
OrchestratorFolderPath
to a folder in your Orchestrator. -
FAQDataPath
to a the folderfaq_data
.
-
-
In the workflow, set the
ConfigFilePath
argument to theConfig.xlsx
file provided. - Run the workflow, go to Action Center when the workflow pauses to validate the data.
This information will be added soon. For the moment, skip this step.
-
Open the workflow from the
NER_Validation_Station
folder. -
From Package Manager, add the
UiPathTeam.CustomNER.Activities.1.0.0.nupkg
dependency found inside theNER_Validation_Station
folder. -
Set the config environment variable to the file path of the
Config.xlsx
file provided in the outer folder. - Validate the data and edit it if necessary.
-
The data will be written back to AI Center folder configured in
Config.xlsx
.
Config.xlsx
file.
When training with your own data, be sure to configure at least the following configuration parameters:
- Overview
- Benefits
- Template contents
- Configuring Email AI
- Step 1: Train and deploy ML Skills
- Step 2: Make all ML Skills public and copy the URL and API Key
- Step 3: Configure the Email AI Demo
- Step 4. Go to the Insights Dashboard and run the Queries
- Step 5: Configure Human in Loop
- Step 6: Extend Email AI to your needs