Add Sequence Step
meisa_add_sequence_stepAdd a step to a sequence. A drip is built from ordered steps; a typical flow is email -> delay -> email -> delay. Choose step_type and provide the matching fields: for 'email' pass email_template_id; for 'delay' pass delay_value and delay_unit; for 'condition' pass condition_rules and condition_logic; for 'action' pass action_type and action_config. Steps are appended unless you pass a 0-based position to insert at (later steps shift down). To build a full drip, call this once per step in order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional custom name for the step. | |
| position | No | 0-based insert position. Omit to append at the end. | |
| step_type | Yes | The kind of step. email sends a template; delay waits; condition branches; action runs an action. | |
| delay_unit | No | For a 'delay' step: the unit for delay_value. Defaults to days. | |
| action_type | No | For an 'action' step: which action to perform. | |
| delay_value | No | For a 'delay' step: how long to wait (>=1). | |
| sequence_id | Yes | UUID of the sequence to add the step to. | |
| action_config | No | For an 'action' step: action-specific configuration, e.g. {"tag": "engaged"} for add_tag. | |
| condition_logic | No | For a 'condition' step: whether all rules ('and') or any rule ('or') must match. Defaults to 'and'. | |
| condition_rules | No | For a 'condition' step: the list of rule objects to evaluate. | |
| email_template_id | No | For an 'email' step: the UUID of the template to send (use meisa_list_templates to find it). |