Sequences let you define the order in which notification channels fire and the conditions that stop the sequence early. Instead of broadcasting the same message across all channels simultaneously, you deliver in a prioritised chain where each step waits for a result before deciding whether to proceed.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-campaigns-service-rest-api.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Why use sequences
- Reduce cost. Start with low-cost channels (in-app feed) and only escalate to higher-cost channels (push) when the user has not engaged.
- Improve deliverability. Target the channel most likely to reach the user based on their prior engagement pattern.
- Avoid notification fatigue. Stop the chain as soon as the user has seen or acted on the message, rather than hitting them on every channel.
How it works
Sequences are configured at the template level. When you create or edit a template in the Dashboard:- Add two or more channels to the template.
- Enable the Sequence toggle in the template settings (
config.sequenceEnabled = true). - Arrange the channels in the desired delivery order. The first channel fires immediately at send time.
- For each subsequent step, configure:
- Stop condition. The engagement signal that halts the sequence:
delivered,viewed, orclicked. - Wait window. How long to wait for the stop condition before moving to the next step: 5, 10, 30, 60, 240, or 1440 minutes.
- Stop condition. The engagement signal that halts the sequence:
Example
A template with two channels configured as a sequence:| Step | Channel | Stop condition | Wait |
|---|---|---|---|
| 1 | In-app | delivered | 30 min |
| 2 | Push | (terminal) | n/a |
Metrics
When a template uses sequencing, per-step delivery metrics are available through the Dashboard and the analytics API. Which metrics are reported depends on the channel:| Channel | Requested | Delivered | Viewed | Clicked |
|---|---|---|---|---|
| In-app | ✓ | ✓ | ✓ | ✓ |
| Push | ✓ | ✓ | n/a | ✓ |
Viewed is in-app only. Push notifications do not emit a viewed signal because there is no in-feed render to scroll into view; use Clicked to gauge engagement on the push step.
These metrics help you evaluate whether your sequence order and wait windows are tuned correctly, and where users are dropping off.
Limitations
- Sequences require at least two channels on the template.
- The stop condition applies per step, not globally. A
clickedon step 1 stops the chain, but adeliveredon step 1 only stops ifdeliveredis the configured condition for that step. - Wait windows are fixed increments (5, 10, 30, 60, 240, 1440 minutes). Custom durations are not supported.
- Sequences are not available for CSV-batch campaigns in the current release. They apply to transactional sends and scheduled campaigns.