Overview of triggers
A trigger is a resource within Genesys Cloud that allows customers to configure a reaction to specific events that happen within Genesys Cloud. The actions are workflows that you can create via Architect. For more information about how to create workflows, see About Architect in the Genesys Cloud Resource Center.
A trigger includes three main components:
- Topic name: The topic or the event for which you want to invoke an action.
- Workflow target: The action to take on the matching events.
- Conditions: The criteria that must be met for an event to be acted on.
The following list is an example of some of the notification topics that are available when you create triggers in Genesys Cloud. New topics update regularly and the topics can vary, depending on your organization.
When you select the topic in the trigger view, the event schema of the topic displays for reference. You can obtain a list of topics available to your organization by fetching with a GET request. For more information, see API Central in the Developer Center.
Triggers support the Architect workflow flow type. Administrators create workflows in Architect. In the trigger view, you can only select active and published workflows as the workflow target. The data format in which the input parameters are sent to the workflow can be top-level primitive fields or JSON.
- The top-level primitives such as, strings, enums, numbers, and Boolean are sent to the workflow.
- For JSON data format, the entire event is sent to the workflow as a JSON object. The workflow must be configured to have an input variable named
jsonDataof type JSON.
For more information about workflows, see Work with workflows.
Conditions are the list of criteria under which the trigger invokes the workflow target. The condition expression includes three parts:
- JSON Path: Defines the part of the event to compare. Express the condition using JSONPath, the language used to traverse and parse JSON documents to find specific elements. You can also use the Jayway JsonPath Evaluator or the JSONPath test utility tool to check the response for your JSON payload and JSONPath statements.
- Operator: Defines the comparison type to use to compare the JSON Path output with the value. String comparisons are case-sensitive. In the trigger view, to see a description on the operator list, click View help on filter operators.
- Value: User-defined value or values for the operations that take a single value or list of values. The input value can be string, number, or Boolean values. Depending on the selection of the operator, the input type of the value changes accordingly. The input type of the value ensures the accuracy of the comparison.
Operator Input type GreaterThanOrEqual Number LessThanOrEqual Number Equal
Array of objects
Array of objects
Array of Object
When a trigger invokes a workflow, the workflow begins instantly or according to a configured time delay. You can also configure Time to Live (TTL) for a trigger such that the workflow will not execute after the configured time. For example, if there is a delay in trigger processing for a status change workflow, then it is not relevant to execute the workflow after the set time.
Next, learn how to create a trigger.