> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# What Steps a Flow Can Run

A flow starts on a [trigger event](https://help.maestra.io/flows/what-events-can-trigger-a-flow.md) or on a [schedule](https://help.maestra.io/flows/how-to-schedule-a-flow-to-run-periodically.md), then does something for every customer who qualifies. That "something" lives in a **step group**. Here's what each step can do, plus how relevance periods decide whether a step still makes sense to run.

## Step types

### Send campaign

* Works in the email, mobile push, SMS, Viber, and web push channels, and in messengers.
* You can only pick automated campaigns from the flow's own [folder](https://help.maestra.io/customers-orders-and-products/actions/what-is-a-folder-and-how-to-create-one.md), its child folders, or its parent folder.
  * Need a campaign from another folder? Click **Copy campaign** to make a copy and use it in the flow right away.
* To get a non-transactional campaign, the customer must be subscribed to its channel and topic (if the campaign uses one) and have a valid contact. Otherwise nothing is sent.
* In order-based events, you can send the campaign to the [contact from the order](https://help.maestra.io/flows/how-the-send-campaign-to-order-contact-step-works.md) instead of the customer's own contact.

### Issue action

* You can only pick action templates from the flow's own folder, its child folders, or its parent folder.
  * Need a template from another folder? Click **Copy template** to make a copy and use it in the flow right away.
* You can only issue templates in the *Customer's personal actions — any* [category](https://help.maestra.io/customers-orders-and-products/actions/action-template/examples/action-template-for-issuing-an-action-in-an-operation-or-flow.md).

### Issue promo code

* Works with single-use and referral [promo codes](https://help.maestra.io/loyalty/how-to-import-promo-codes-into-a-project.md) only.
* No folder restrictions.

You can also issue promo codes that come back [in a webhook response](https://help.maestra.io/campaigns/webhooks/how-to-use-webhook-responses-in-flows.md). For that, the flow needs two things before the step group you're setting up:

* a step group that calls a webhook with a variable,
* a condition that checks the webhook call succeeded.

In the step, choose:

* **From webhook response** as the promo code source,
* the webhook variable to take the promo code from,
* the pool where incoming promo codes are stored.

Only pools that are topped up from a file or manually are available.

### Change points balance

* Increase, decrease, reset, or set a fixed balance on the points account you pick.
* When you increase the balance, you can set how long the points stay valid: N hours, days, months, or calendar days, or until a specific date.

### Add customer to segment / Remove customer from segmentation

Works only with [static customer segments](https://help.maestra.io/segments/how-to-create-a-static-customer-segment.md).

### Edit customer data

You can change:

* **Area.**
* **[Subscriptions](https://help.maestra.io/customers-orders-and-products/customers/subscriptions/how-customer-subscriptions-work.md)** — move any subscription in any channel to any status. You can't subscribe a customer to the email channel and overwrite their data.
* **Email confirmation** — confirms the email contact itself, not the subscription to the channel.
* **[Custom fields](https://help.maestra.io/api-integrations/how-to-create-a-custom-field.md)** — set a value or clear the field. This doesn't work for fields of the *Unique identifier* and *Identifier* types. To write the date the step ran into a *Date* or *Date and time* field, tick **Set the step execution date**.

For example, a customer enters the flow on October 1, 2025, spends two days in a **Wait** block, and reaches the step group on October 3, 2025. The custom field you picked gets October 3, 2025.

### Remove product from list

Available only with these [events](https://help.maestra.io/flows/what-events-can-trigger-a-flow.md): *Product in list changed*, *Product list changed*, *Product-related action issued*, *Product in order delivered*, *Product in order paid*, *Preferred product changed*, and *Viewed product changed*. In the step, pick the specific list — you can choose more than one.

### Clear product list

Removes every product from the customer's list that you pick.

### Call webhook

* Calls a [webhook](https://help.maestra.io/campaigns/webhooks/what-is-a-webhook-and-how-to-create-one.md).
* You can build follow-up chains based on the [webhook response](https://help.maestra.io/campaigns/webhooks/how-to-use-webhook-responses-in-flows.md).

### Generate authorization code

* Creates a code valid for 5 minutes, 1 hour, 1 day, or 30 days.
* To insert the code into a campaign, use the [template engine](https://help.maestra.io/campaigns/message-template-engine/what-is-the-message-template-engine.md) parameter `${Recipient.AuthentificationCode}`.

### Link discount card

Links a card of the [type](https://help.maestra.io/loyalty/discount-cards/how-to-manage-discount-card-types.md) you pick, with the status *Activated*, *Not activated*, or *Blocked*.

### Issue action to invited customer

Use this step to issue actions to customers who were linked earlier.

Say a customer signs up with a referral code. When their profile is created, it's linked to their friend's account, and each of them gets the matching action. Later, when the new customer does something that counts — for example, spends their welcome points — you need to reflect that on the referrer's account too, so they get the bonus they were promised.

Set up the step like this:

| Setting | What it means |
| - | - |
| **Action issued to the invited customer on linking** | The template the **new** customer got when the profiles were linked. Maestra Platform uses it to find the referrer. |
| **Issue action to referrer** | The template the flow issues to the referrer. |
| **Action issued to the invited customer** | The template the flow issues to the new customer. It's filled in automatically with the template linked to the one above. |

Keep in mind:

* You can only pick templates from the flow's own folder or its parent folder.
* The templates must:
  * be of the *User-to-user actions* type,
  * be in the *Customer's personal actions — Interactive — Referral program participation* category,
  * have a linked template to issue to the second customer.

## Relevance period

The relevance period is how long it still makes sense to run a step group.

For example, a flow reminds customers about a webinar one day and one hour before it starts. Each step group has a 1-hour relevance period. A customer signs up on December 2 at 10:00 AM for a lecture that starts at 12:00 PM the same day.

The first wait sets the date context for the run to December 1 at 12:00 PM — one day before the webinar. With a 1-hour relevance period, the first reminder only makes sense before December 1 at 1:00 PM. That time has already passed, so the step doesn't run and the customer doesn't get an out-of-date reminder.

### Where the relevance period starts

It starts when the customer enters the flow (the event or schedule block) or when they leave the previous step group.

### When data reaches your account late

Flows run on the event date, not the time the data was loaded.

For example, a flow sends a campaign right after an order, and the step group's relevance period is one day. The order lands in your account on June 10 at 10:00 AM with an order date of June 6 at 8:00 PM.

The step could have run until June 7 at 8:00 PM. That time has passed, so the flow drops the event and doesn't run.

If there were a 3-day wait between the event and the step group, the run would be paused, the step would stay relevant until June 10 at 8:00 PM, and the flow would run on the event.

### How waits affect the relevance period

Fixed and dynamic waits pause the run, and the relevance countdown pauses with it. An exit-hours restriction only postpones the next block. It doesn't affect the run, so the relevance period can run out in the meantime.

For example, in a welcome series the step with the second email runs with an exit-time restriction, and each step group's relevance period is one day. A customer signs up on August 1 at 10:00 PM, gets the first campaign right away, and gets the next one on the morning of August 5. Here's what happens:

* The run is paused from August 1, 10:01 PM, to August 4, 10:01 PM.
* The next block is postponed until morning, but the run and the relevance countdown resume.
* Before running the step group, the flow checks whether more time has passed since the previous steps than the relevance period allows. 12 hours have passed (August 4, 10:01 PM, to August 5, 10:01 AM), so the campaign is sent.

For more on how waits affect a run, see [How the Wait block works in a flow](https://help.maestra.io/flows/how-the-wait-block-works-in-a-flow.md).

### Relevance in the flow vs. in the campaign

Campaigns have their own relevance period too. It's counted **from the moment the step group that sends the campaign runs**.

For example, a flow tells customers about a price drop on an item in their cart and checks the time before sending. The price drops at 10:00 PM. The step that sends the campaign runs at 8:00 AM the next day, so the campaign's relevance period starts then.

The step's own relevance period, meanwhile, still counts from when the customer entered the flow, because an exit-hours restriction doesn't affect the run.

## Can only some steps in a group run?

No. A step group either runs in full or stops.

For example, a group issues a promo code, sends a campaign, and adds the customer to a segment. If the promo code pool runs out, the step stops: the campaign isn't sent and the customer isn't added to the segment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.