Analyse sentiment in emails - Sentiment Analysis
Overview
Our sentiment analysis pattern, available in Marketplace in Builder enables the analysis of the content of incoming emails and determine if, for example, they are positive or negative. This assessment can be passed back into Enate Work Manager so that Agents can tell at a glance what the tone of the mail is as headline information as they start to deal with it.
This pattern is available via the following providers:
EnateAI Setup
EnateAI is a zero configuration option supplied by Enate which uses our own Azure hosted OpenAI Instance for the GPT3 Engine.
This instance is shared with anyone that enables EnateAI so if you have high volume/high demand then you may be better off configuring your own Azure Open AI instance and using an Azure Open AI Adapter Version.
The setup of EnateAI for all patterns is super simple - simply click to activate.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252F2220nGe9ppQ6FdA7hhgZ%252FEmail%2520Sentiment%2520Analysis%2520Activate.png%3Falt%3Dmedia%26token%3Defbdea1f-0298-4f6d-b473-947ae669756e&width=768&dpr=4&quality=100&sign=cd5aae9b&sv=1)
OpenAI GPT3 Setup
OpenAI Adapters allow you to talk to the OpenAI API directly via your own OpenAi account and API keys, this will be using the OpenAI API which is open to everyone. You can also monitor usage of API requests sent via this API in the OpenAI interface.
To setup OpenAI for sentiment analysis, follow these steps:
Click on 'Activate' on the 'OpenAI GPT3 - Sentiment Analysis' option in Enate Marketplace.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252F1bUiQ1fwGxBHtQNN92G7%252Fimage.png%3Falt%3Dmedia%26token%3D5ef27252-25aa-4b88-969a-cfba13973576&width=768&dpr=4&quality=100&sign=d0272b77&sv=1)
In the resulting pop-up, enter the following information:
the URL of the instance - this is the base URL for OpenAI, i.e. https://api.openai.com/
the API key - this you can create from the OpenAI API keys page https://platform.openai.com/account/api-keys
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252Fmk0r9yjO7LIpvlwybMsm%252Fimage.png%3Falt%3Dmedia%26token%3D7921915c-9e0e-4ef0-8c77-feaf324295af&width=768&dpr=4&quality=100&sign=929b886d&sv=1)
Click to test the connection
Once the connection has been successfully tested, click to activate. Your Sentiment Analysis pattern provided by OpenAI is ready to be used.
Further notes of interest
The OpenAI API keys page is where you can create further API keys and manage your existing ones.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252FNLTQmjQLAlTwEUAX1dsg%252Fimage.png%3Falt%3Dmedia%26token%3D997ca7c5-8c7a-408e-91ad-2a6a1e1799b1&width=768&dpr=4&quality=100&sign=3468f990&sv=1)
You can monitor the usage and breakdown of requests of the OpenAI account on the OpenAI Usage page:
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252FHGd66I3W51BfEu5oLC1P%252Fimage.png%3Falt%3Dmedia%26token%3Da80f50c5-f3d3-4d9a-8bf0-d511b50d3000&width=768&dpr=4&quality=100&sign=cbef6294&sv=1)
Azure OpenAI GPT3 Setup
AzureAI allows you to use your own Azure instance of OpenAI which you can manage and control, giving you a great deal of control and detail of the information going through the API.
To setup Azure OpenAI for sentiment analysis, follow these steps:
Click on 'Activate' on the 'Azure OpenAI GPT3 - Sentiment Analysis' option in Enate Marketplace.
Enter the following information, all of which can be gathered from your Azure OpenAI instance, in the resulting pop-up:
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252Fcj3ilztUYuJFBcexnAn6%252Fimage.png%3Falt%3Dmedia%26token%3D743dbb27-239d-4aca-8d4d-d71c4b610fba&width=768&dpr=4&quality=100&sign=c0fad39f&sv=1)
Resource Name - this is the Azure Resource Name which can be found by navigating to your OpenAI Cognitive Services in Azure, accessing your Azure OpenAI Resource and opening the resource. The resource name can be found in the overview page, next to 'Resource group'
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252FWzMIOHWTcZoYUXpa8Ztk%252Fimage.png%3Falt%3Dmedia%26token%3Dcfe99c0b-a3ba-4b46-8680-99c79bc88c8a&width=768&dpr=4&quality=100&sign=f7a7afde&sv=1)
Deployment Name - to find this, go to the 'Model deployments' section in Azure OpenAI studio and then click on 'Manage Deployments'.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252FBUln83gZVx2D8gTagjC7%252Fimage.png%3Falt%3Dmedia%26token%3Db55735fd-4c66-4f77-9ab1-db223dd062ec&width=768&dpr=4&quality=100&sign=d27359a5&sv=1)
Then click on the 'Deployments' section on the left and the deployment name will appear on the right - this is the value you need.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252F7uSToz19ihEIGmIF2Uqa%252Fimage.png%3Falt%3Dmedia%26token%3D4ae1be46-04d7-4a8d-9e9f-d6aca4c2a371&width=768&dpr=4&quality=100&sign=bc607ae5&sv=1)
API Key - this is configured back in the OpenAI Portal, from the 'Keys and Endpoints' section on the left. This is where you can generate new keys and manage existing ones. Enter one of these keys.
![](https://docs.enate.net/~gitbook/image?url=https%3A%2F%2F3859925423-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MWYnDNwe3Cuo4zlGbs5-887967055%252Fuploads%252FHqp4Pgv5qZjr5ATTLYOm%252Fimage.png%3Falt%3Dmedia%26token%3Da2fa6730-71e6-4f0f-9780-46f5ce58b8b6&width=768&dpr=4&quality=100&sign=29ce30ef&sv=1)
Click to test the connection
Once the connection has been successfully tested, click to activate. Your Sentiment Analysis pattern provided by Azure OpenAI is ready to be used.
UiPath Communications Mining Setup
UiPath Communications Mining provides communication analysis and to help automate your processes.
Note that the Sentiment Analysis pattern works slightly differently when using UiPath Communications Mining as your provider. Communications in incoming emails are still analysed, but the assessment is not passed back into Enate Work Manager. Instead, the assessment remains in you UiPath Communications Mining system, allowing you to auto-tag and categorise emails in a certain way according to how you've set UiPath Communications Mining up.
The following video takes you through how to setup UiPath Communications Mining for sentiment analysis.
Last updated