Skip to main content
About the Resource Center

Use a digital rule to evaluate information from a data action

You can use a data action as a digital rule condition. When you use a data action as a rule condition, a pre-contact rule can evaluate response data from the Genesys Cloud Public API, Salesforce, Zendesk, or REST API endpoints. This procedure explains how to set up a rule that runs a data action, and then evaluates the information it returns.

  1. For all evaluation rules, see the following instructions that follow in Setup and configure an evaluation rule.
  2. Perform one of the following tasks:
    • To use a data action as a condition, see the following instructions in Use a data action as a condition.
    • To use any other condition, follow the instructions in Add a call rule.
  3. To use an action, follow the instructions in Configure rule actions.

Limitations on data types in contracts

When administrators create a custom action for integrations, they define input and output contracts. Some limitations on the data actions that you use with outbound rules include these parameters:

  • For both input and output contracts, the top-level type must be an object. An input contract cannot pass an array to a remote endpoint. An outbound contract cannot consume an array of response data unless the data action’s output contract uses a translation map to convert the array to an object.
  • Output contracts can allow complex objects or arrays, but outbound messaging does not permit use of those data types in a rule condition. The rule condition can only operate on Boolean, integer, number, and string data types.
  • If the endpoint returns a non-JSON response, you must provide a middleware service that transforms the response to JSON. The response to a data action must be a valid JSON. Otherwise, the data action fails.
  • Never try to flatten fields in a data action’s output schema. See Guidelines for actions used with outbound dialing rules.
  • The maximum number of data action rule conditions that you can have on a single campaign is two.

Limitations of data actions as conditions 

When you use data actions as conditions, be aware that there are several limits that affect the speed of sending messages. Data actions that are configured for the campaign can impact (slow down) the message sending speed. The data action service limits how many concurrent data actions can run, in addition to how many can run over a course of a minute and hour.

When outbound messaging operations detect a data action in use on the interaction to be messaged, the system performs a check to see how many concurrent data actions are occurring and slows those respective operations to make sure not to meet the limits on the data action side. Contacts do not message as quickly as those without data actions. 

When using data actions as conditions in an evaluation rule, keep in mind this limitation:

  • The maximum number of data actions used as conditions is two per rule, rule set, and running campaign.
    Note: If you try to add more data actions to a rule, rule set, or campaign than are allowed, the save fails. You see a message that an error has occurred.