Tenant Automations
Introduction
Tenant Automations allow you to create automated communication workflows that trigger based on specific conditions and segments. These automations enable you to send targeted communications to users through various channels (currently email, with SMS planned for future releases). Please see the API Reference here for more information.Structure
A tenant automation consists of:- Name: A descriptive name for the automation
- Status: The current state of the automation. Can be:
draft: Automation is in draft mode and not activeactive: Automation is enabled and will be processedrunning: Currently being processedscheduled: Has been scheduled and cannot be cancelledcompleted: Has finished runningfailed: Failed to rundeactivated: Manually disabled by user
- Business ID: Links the automation to a specific tenant
- Trigger Type: Defines when the automation should run. See Trigger Types for more information.
- Trigger Metadata: Configuration for the trigger. See Trigger Metadata for more information.
- Action Data: Array of actions to perform when triggered. See Action Data for more information.
- Segments: Include and exclude segments to target specific users. See Segments for more information.
Segments
Automations use a combination of include and exclude segments to determine which users should receive communications:- Include Segments: Users must be in this segment to receive communications
- Exclude Segments: Users in this segment will not receive communications, even if they’re in the include segment
Trigger Metadata
Currently supported trigger types:One-Time Trigger
- Scheduled to run at a specific date and time
- Evaluates all users in the target segments
- Creates communication jobs for eligible users
- Example use case: Promotional campaign or announcement
Action Data
Action Data defines what operations the automation will perform when triggered. Each action in the array contains:- action_type: The type of action to perform (currently supports
send_communication) - action_metadata: Configuration specific to the action type
Send Communication Action
For actions of typesend_communication, the action_metadata includes:
- communication_group_id: Reference to the communication group containing the message configuration