/
AI Workmate

AI Workmate

This article refers to features currently in Beta-release - please get in touch if you’d like more information.

Quick links in this article:

In this article, we’ll explore the use of AI Workmate and some example use cases for a contact centre.

This article is explicitly about AI Workmate - for information about AI Ask (the personal AI assistant available to your agents), check this article first: Using AI Ask

What is AI Workmate?

AI Workmate is a Bolt-On to your Gnatta subscription, providing a suite of extra AI actions in Gnatta Workflow in addition to those available to the agent via AI Ask.

With these actions, you can carry out key functions and present AI-generated content to the agent as soon as an interaction is assigned i.e. before they’ve even ‘Asked’! No button clicks required.

 

 

About AI Briefs

With AI Workmate, you can improve the contextual awareness of your AI actions in workflow. Configure actions with critical information about your processes and brand by attaching briefs that are relevant to the interaction type.

Example AI briefs might include:

  • Delivery Timescales

  • Opening Hours

  • Tone of voice

  • GDPR & DPA concerns

  • and more!

AI Workmate is an upgrade Bolt-On, and must be used in conjunction with AI Ask.

Action types

The following AI functions are currently available in AI Workmate:

  • Language Detect This action will use AI to detect the given language of the content provided, returning the name and two-letter ISO code of the language, i.e. Name English and IsoCode en.

  • Translate This action, often paired with the previous one, will translate a body of text into the given language

    image-20241126-134021.png
    The output of an AI Detect and Translate flow
  • Sentiment Detect This action will use AI to evaluate the sentiment of the interaction, analysing the last 20 messages of the current conversation. The sentiment will be summarised as one of Positive/Neutral/Negative/Mixed.

  • Suggest Response This action will evaluate the interaction so far and suggest a possible response

  • Summarise This action will provide a succinct summary of the interaction so far based on the last 20 messages of the current conversation, and any non-numerical data available in custom fields.

Use Case: Detect and Translate

In this use case, we’ll put together a Workflow that will:

  • Be triggered on a New Message Received or Response Received event

  • Detect the language of the incoming message

  • If that language is not English, generate a translation and add it to a note

  • Update a language detected field with the language name

To get started, you’ll need to create (or identify) a New Message Received or Response Received event. To do that, navigate to Configuration > Workflow > Events > Add event and select the relevant event from the options. If none are available, that means you’ve already created the event!

In our example, we’re going to be adding our flow to the New Message Received event for our Testing Email account, so the flow will be triggered whenever a new email thread is sent to our Testing Email account.

Next, you’ll need to create a new data field in which to store the language the AI detects - do this by navigating to Configuration > Advanced > Dynamic Data. We’d recommend setting it up as a String Editor, with the Reportable toggle switched on.

With these precursor steps complete, it’s time to enter the flow builder at last! Navigate to Configuration > Workflow > Builder and start out by giving your flow a name (so you can save your progress as you go).

The first action we’ll be adding is Detect Language. You’ll need to select a body of text for the AI to detect the language from - we’re going to use the Message (Echo.Body). We’re going to leave the output label as the default, to keep things simple.

Next, we’ll need to split the flow with a Decision action. We’re going to be checking if the output of that Detect Language action identified the language as English. To do that, we’ll set the condition to check if DetectedLanguage.Output.IsoCode is equal to en.

When your Decision action is complete, it should look a little like this:

Next, we’ll be adding a super quick JavaScript action right below the Not English branch to set a custom context variable for the language we want to translate into. We’ll then be able to insert that variable as the output language in the Translate action after it. To do that, insert a new JavaScript action and copy and paste the following code snippet:

// Setting the variable Var.Translate to "en" context.Set("Var.Translate", "en"); // Log the action for debugging purposes context.Log("Set Var.Translate to 'en'");

The next step is to add a Translate action to translate the identified text into English. That means our source text for this action is still the Message (Echo.Body) that we’ve identified as Not English in our Decision and the language code we want to translate into is Var.Translate (the ‘en’ variable we set in the JS action).

Now that we’ve translated it, we can add that translation text to a note on the interaction so the agent can read it. We’re going to add the following to our note:

Language Detected: {{DetectedLanguage.Output.Name}}

AI Translation: {{Translate.Output.Translation}}

It’s important to include .translation on the end of your Translate action output!

Next, we’re going to update our AI Language Detected custom field with the detected language using an Update Interaction action. Simply select your custom field and insert your Detect Language output, with .Name appended to capture the language name in that field. In our case, that means adding DetectedLanguage.Output.Name to the field.

Finally, it’s best practice to drag that hanging ‘English’ branch right down to join up with your Update Interaction action - whilst you didn’t carry out a translation, it’s still useful to jot down the language detected in your custom field to make sure the data is surfaced in your reports.

Then you’re ready to hit File>Save and File>Publish, and attach your flow to your event. If all is working as expected, inbound messages the AI determines to be Not English will be automatically translated and added as a note!

 

 

 

 

Related content

Queue Radar
Queue Radar
Read with this
Actions
Actions
More like this
Using AI Ask
Using AI Ask
More like this
AI Usage Policy (November 2024)
AI Usage Policy (November 2024)
More like this
AI Usage Policy (July 2023)
AI Usage Policy (July 2023)
More like this
Learn About Workflow
Learn About Workflow
More like this