Create Configuration
| Field | Type | Required | Description |
|---|---|---|---|
assistant_id | UUID | Yes | Linked assistant |
trigger_status_ids | UUID[] | Yes | Statuses that trigger follow-up |
steps | array | Conditional | AI steps (required if no official_steps) |
steps[].interval | string | Yes | ISO 8601 interval (min 30 min) |
steps[].prompt | string | Conditional | Prompt for AI message generation |
steps[].template_name | string | Conditional | Required if interval >= 24h |
steps[].template_language | string | No | Template language (default: pt_BR) |
steps[].template_params | string[] | No | Template parameters |
official_steps | array | No | Steps per official channel (Meta/Gupshup) |
official_steps[].channel_id | string | Yes | Channel ID |
official_steps[].app_id | string | Yes | Gupshup app ID |
official_steps[].steps | array | Yes | Channel steps (min 1) |
Validations
- At least one step (in
stepsorofficial_steps) - Maximum 3 steps per configuration
- Minimum interval: 30 minutes
- If interval >= 24h:
template_namerequired - No duplicate
channel_idinofficial_steps - One config per assistant
Get Configuration
Get by Assistant
List by Tenant
Update Configuration
Delete Configuration
Already scheduled follow-up jobs will continue running until processed. Deletion does not cancel in-progress jobs.