> ## Documentation Index
> Fetch the complete documentation index at: https://docs.operata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow

Operata Workflows automate actions when MOS levels or network conditions have met a defined threshold, when a Heartbeat test finds an issue, when a call ends or even when Agents report an issue.

Send an email, push a WebHook, data to EventBridge data (including CCP logs) or even send a Slack message natively, whenever the threshold you have configured is reached or event happens.

## Workflow status

The first page lists the Workflows that have been created and gives options to change their **STATUS** to  on/off, **Delete** or **Edit** them

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/8f166391-workflow-list.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=d7036e8971bbba8b952f45e17024de8e" alt="" width="3360" height="2100" data-path="images/intercom/8f166391-workflow-list.png" />

## Creating Workflows

Selecting the **+CREATE WORKFLOW** starts the Workflow creation wizard.

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/0ee63e7d-screen-shot-2023-01-09-at-5-00-10-pm-2.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=d2b6501bbb7495db02022ac72a3b7172" alt="" width="3840" height="2160" data-path="images/intercom/0ee63e7d-screen-shot-2023-01-09-at-5-00-10-pm-2.png" />

## 1. Workflow Application

The first option is to choose what application will trigger the Workflow.

* The **CCaaS Platform** option takes events from the data network performance elements, the overall network performance MOS score, Agent Reported Issue or Heartbeat assurance test result.

* If you have **EventBridge** enabled then select **Contact Ended** to send data at the end of a call (where enabled)

* The **Jabra** option takes Jabra headsets performance statistics (where enabled)

Selecting **CCaaS Platform** and **NEXT** gives options on what event to trigger on.

## 2. Workflow Triggers

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/3399767f-image.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=67aaed2ef19da5ad8157c0f8c9da4174" alt="" width="1920" height="1080" data-path="images/intercom/3399767f-image.png" />

Choose what you want to trigger an event:

* MOS score

* Packet Loss

* Jitter

* RTT (Latency)

* If you have **Agent Issue** notification enabled, you can trigger events when agents report issues (see below for details)

* If you have **Heartbeat** enabled then you can trigger events if the tests find issues (see below for details)

* If you have **EventBridge** enabled then select **Contact Ended** to send data at the end of a call (see below for details)

* If you have **EventBridge** enabled then select **Agent Readiness Test** to send test data at the end of the call.

* If you have **EventBridge** enabled then select **CCP Logs** to send all collected CCP log data as it is collected by Operata.

then next to choose the **Action**

## 3. Workflow actions

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/1f8c07b9-image.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=dd0d49645eae2476046f294d12eb3728" alt="" width="1920" height="1080" data-path="images/intercom/1f8c07b9-image.png" />

This screen defines the action to take in the context of the **Trigger** selected.

* **Send Email**: does just that (see below for more details on the content of the email you can send.

* **Invoke WebHook:** used to event into a third party application, Operata uses uses basic authentication in Headers to secure WebHook messages.

* **Agent Notification:** Sends an alert to Agent Copilot (not currently used)

* **Operata Test:** Launches the Agent Test sequence (not currently used)

* **Slack:** notifies to a nominated Slack channel

* **Agent Alert:** Sends an alert to Agent Copilot

* **App Specific:** (not currently used)

* **Amazon EventBridge:** Send data to the EventBridge that has been created.

  ## 4. Configure

Now configure the Workflow thresholds and events that will trigger the Workflow

### Send Email

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/05a05bf7-image.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=0722a812ad27690eeb1de7a5c21a4ea3" alt="" width="1920" height="1080" data-path="images/intercom/05a05bf7-image.png" />

When you select **Send Email** as a notification a standard templated email is sent.

Simply set the threshold to generate the email and the email address.

The email sent contains summary details of the call that triggered the email event, with the Call ContactID to use within Operata to discover more.

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/54167cde-screen-shot-2021-11-09-at-7-28-43-am.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=bbb0994310f89b4cdfdce25fa224275e" alt="" width="629" height="649" data-path="images/intercom/54167cde-screen-shot-2021-11-09-at-7-28-43-am.png" />

### Invoke WebHook

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/1f6df463-screen-shot-2021-11-09-at-1-09-26-pm.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=6ae1d8aa44a04252157d7970c3b36c4d" alt="" width="1920" height="1080" data-path="images/intercom/1f6df463-screen-shot-2021-11-09-at-1-09-26-pm.png" />

This screen lets you set the level at which the event will trigger, the WebHook URL, Method, Headers and Body.

***Note:*** enter **#`{{.Records}}`** into the Body to see all the details for the call that triggered the event.

Add the details to match where the WebHook event will be sent.

### Slack Notification

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/8b498a92-screenshot-2023-04-19-at-15-57-39.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=01881bfc608d651271f4e935cb589e30" alt="" width="3360" height="2100" data-path="images/intercom/8b498a92-screenshot-2023-04-19-at-15-57-39.png" />

When you select the Slack option, you will be prompted the enter the URL of your Slack workspace and channel.

## Agent Reported Issue

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/c260b2b4-image.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=9f7c475eba90d1a85a7ec429f6fd1693" alt="" width="1920" height="1080" data-path="images/intercom/c260b2b4-image.png" />

Three elements can be configured to trigger an Agent Reported issue workflow:

1. ***Category (this is optional, leave blank and any Cause will trigger the workflow)***

* Softphone would not work

* Poor sound quality

* Delay in the conversation

* Call disconnected

* Customer could not hear me

* Could not hear the customer

* Missed call, the Softphone did not ring

* Something else

**2. Severity (this is mandatory)**

* Terrible

* Difficult

* Minor

***3. Agent Comments*** *(this is optional, leave blank and any Scenario will trigger the workflow)*

Use this if you have instructed agents to 'Include an additional comment' specifically designed to create a ticket.

**Email Address** or **WebHook** details also need to be entered.

***Note:*** for WebHook notifications enter **#`{{.Records}}`** into the Body to see all the details for the call that triggered the event.

## Heartbeat Telephony

Three elements are needed to configure an Agent Reported issue workflow:

Status

* **Agent Error** - The target agent for the Heartbeat could not be found.

* **Call Failed** - The Virtual Customer call failed to be answered.

* **Call Not Accepted by Agent** - The Heartbeat test call could not be answered by the agent.

* **Poor Call Quality** - the Heartbeat test call was successful, but was of poor quality

**Email Address** or **WebHook** details also need to be entered.

***Note:*** enter **#`{{.Records}}`** into the Body to see all the details for the call that triggered the event.

### EventBridge

Details of how to configure and use EventBridge are here.

[EventBridge](/docs/concepts-eventbridge)

Events from Operata Workflows can push events to the configured EventBridge service:

* When a Contact ends.

* When a Heartbeat test is completed.

* When CCP logs are captured.

Typical Heartbeat test payload to EventBridge

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/90bfc4d3-screenshot-2025-12-01-at-10-35-27.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=de4820131ee7d7c643c5e4d2d1bfba7d" alt="" width="1920" height="1080" data-path="images/intercom/90bfc4d3-screenshot-2025-12-01-at-10-35-27.png" />

```
        {            "createdOn": "2022-01-24T22:17:31.417287Z",            "heartbeatId": "2e4f8a78-1234-4a52-5678-c0fff3ced44d",            "jobId": "1643062651416852388",            "agentId": "andy",            "agentType": "HUMAN_AGENT",            "status": "Complete",            "cxScore": 9,            "axScore": 8,            "networkScore": 10,            "toNumber": "+61870712345",            "description": "Toll Free test 1"        }
```

## 5. Saving the workflow

Finally update the **Workflow Name** and **Tag** - then **NEXT** to move forward.

Your new Workflow appears in the **Workflow List**.

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/d5712432-select-5.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=ffffd879ebebba0132dba704fa10e289" alt="" width="3360" height="2100" data-path="images/intercom/d5712432-select-5.png" />

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/b2b4c682-final.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=a039651a0f3cb638004a0d421e6b8aee" alt="" width="3360" height="2100" data-path="images/intercom/b2b4c682-final.png" />

The example Workflow will send a WebHook whenever a call has an average MOS of less than 3.5.

## Event History

Selecting History then WORKFLOW ACTIONS brings up the list of workflow events that have been triggered.

<img src="https://mintcdn.com/operata/TOAME2aBXGCHop3M/images/intercom/c3226a05-screen-shot-2021-11-09-at-1-21-02-pm.png?fit=max&auto=format&n=TOAME2aBXGCHop3M&q=85&s=eeac81b3bffd5db1dbc5fee5a4d6885a" alt="" width="1920" height="1080" data-path="images/intercom/c3226a05-screen-shot-2021-11-09-at-1-21-02-pm.png" />

​
