Skip to main content
About the Resource Center

Use a rule to evaluate information from a data action

You can use a data action as a call rule condition or action or both. Using a data action as a rule condition or action, a pre-call or wrap-up 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 instructions below in Setup and configure an evaluation rule.
  2. Do one of the following:
    • To use a data action as a condition, see the instructions below in Use a data action as a condition.
    • To use any other condition, follow the instructions in Add a call rule.
  3. Do one of the following:
    • To use a data action as an action, see the instructions below in Use a data action as an action.
    • To use any other action, follow the instructions in Configure rule actions.
Note: You can use data actions as both a condition and an action in the same rule. If you use a data action only as an action, you must still configure a condition for the rule.

Limitations on data types in contracts

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

  • 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 dialer 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 you can have on a single campaign is two.

Limitations of data actions as conditions or actions

When you use data actions as conditions or actions, be aware there are several limits that affect the speed of dialer operations. The data action service limits how many concurrent data actions can be run, as well as how many can be run over a course of a minute and hour.

When dialer operations detect a data action in use on the interaction to be dialed or the wrap-up to be processed, we check to see how many concurrent data actions are occurring and slow those respective operations to make sure not to hit the limits on the data action side.  Contacts may not be dialed as quickly as those without data actions. On the wrap-up side, we might delay processing the wrap-up for a short while (a few milliseconds to several seconds).

When using data actions as conditions or actions in an evaluation rule, keep in mind these limitations:

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