# Block / Steps

## Add a Step to your Workflow

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2Freb2tQT8tmZhhGe0i6xx%2Fimage.png?alt=media&#x26;token=6f386f22-fbf3-46c6-9fc8-16f6f089ff85" alt="" width="375"><figcaption><p>Block / Steps</p></figcaption></figure>

Inserting additional Blocks or Steps into your automation workflow, such as sending an email, applying filters, or setting delays to customize how the automation operates

## Wait

The customer should wait for a specific amount of time to receive emails.

{% hint style="warning" %}
The Wait Block has three options: \
\
**HOURS**\
**MINUTES**\
**DAYS**
{% endhint %}

**Day** - Option to send emails on Specific Days&#x20;

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2F2dG91KgGsRmBrV7rErHv%2Fimage.png?alt=media&#x26;token=286983b5-8b5d-43e3-9a3c-49a0ad2c6eab" alt="" width="375"><figcaption><p>Options for Wait Block</p></figcaption></figure>

**Hours** - Option to send emails in Specific hour

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfwWsbuoUJKYQXAVTOwW0AqSAFI5lYMH8UHuabWz2uROWI7HzqErVwQCb3Q7htgSwUrdyIdv_G3nsT9kG4LWKoiJJPgYS4_wDLr5-_mMm2Cr_vzYVbRbHZh_sZLXIzn02YD0C4bSz_tKY14XViPrgk6-h8a?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Hours</p></figcaption></figure>

**Minutes** - Option to send emails in Specific Minutes

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd0oyQJSAb7cQ48oY-gSDh62ZgfTjlmnt4pf-pmyqD3s-Y7l1tqRunAST8lQw0oxvPRXutxlamtutOilxwDTTp-ADVcatFP67nu90l6Za6Tv0U72wStcSR_WbHbNsaxutSJIc5QqhI4GTW2JF-97DaMOM1N?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Minutes</p></figcaption></figure>

#### Setting a delay until a specific time of day

The automation will wait until that chosen time to send the next email

{% hint style="warning" %}
**Example**: If you set it for 3 PM, the email will be sent at that exact time, regardless of when the trigger happened. This ensures emails are delivered at the best time for the customer.
{% endhint %}

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FWva8Ecgk0LXTRxpoo4Ku%2Fimage.png?alt=media&#x26;token=a18f3b91-2b53-4b4f-b720-5ada4a587551" alt="" width="375"><figcaption><p>Set a delay until a specific time of day</p></figcaption></figure>

#### Setting a delay until the chosen days of the week

The automation will wait until specific days to send the next email.

{% hint style="warning" %}
**EXAMPLE**\
\
if you select only Mondays and Thursdays, the email will be sent only on those days, regardless of when the trigger occurred. This helps target customers on days when they are more likely to engage.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdc0Q8bQbXwas3P8O4WgnwEvvLz2w37f8sfYK9eiXgvd4rgvUU6vZ-e5eSudpPW7Vxhf7JH364iXgRY_OjOnc6Oe-nVk5WHhZgp7ZiUQ_xaNhx__MPWkjuCHdGHG68SPs4Rn_WVnY2n2pIPUpD7g4ZeWjpe?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Setting a delay until the choosen days of the week </p></figcaption></figure>

## Coupon Generation

Allow you to create and manage discount codes for your customers. Here’s what you can typically set:

> * **Discount amount**: Choose how much discount the coupon offers (e.g., percentage off or a fixed amount).
> * **Free Shipping**: Option to offer free shipping.
> * **Set Validity**: The coupon is valid for 3 days.
> * **Apply if the Order Value is at Least**: The coupon applies when the minimum order value is at least specified.
> * **Exclude Sale Items**: Option to exclude sale items from the coupon use.

{% hint style="warning" %}
**NOTE**\
\
A unique coupon code will be generated using the above settings when a customer enters this step of the workflow. Please configure the above values carefully.
{% endhint %}

These settings help you control how and when customers can use the coupons.

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FRwzbcBugmvuzagMojvl1%2Fimage.png?alt=media&#x26;token=11037f0e-ce70-418c-bb32-c3c9e9ee39c7" alt="" width="375"><figcaption><p>Coupon Generation </p></figcaption></figure>

#### Configuring Coupon Codes in the Email Template

To configure coupon codes in an email template, start by adding a coupon block element within the automation workflow.

This setup ensures that customers will automatically receive dynamic, personalized coupon codes through the workflow.

By doing this, each customer can receive a unique coupon code, enhancing the personalized experience and encouraging engagement.

* Choose the Automation Workflow > Edit > Choos the Email Block >&#x20;
* Go to Email Block > Edit Email content

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FWxmRr89KCd3BueIsUJr2%2Fimage.png?alt=media&#x26;token=77bb09ea-5d37-4ba4-941e-a445e4017d40" alt=""><figcaption><p>Configure the email template with a coupon block.</p></figcaption></figure>

* Edit Email content&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdv4h2tczFEkxMevga4EatTkcEgkaKblj2_QZYajRdTvWr9Lz5M2XCMugMLLh_Xyede0YCAXaDG63BoG_LLzfgtxA7nUDtSqtRq7VSuS23QDREDQ63Pa1_b-MgTh_EwvzqxdKek?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt=""><figcaption><p>Select the Edit Email Content</p></figcaption></figure>

* Select **Retainful Dynamic Coupon** > **Configure** >&#x20;
* Use the coupon code from the **Coupon Step** > Save the template after making changes.

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FtZZaLofkrpoVThrdQtoW%2Fimage.png?alt=media&#x26;token=070dee61-2883-4ba3-b151-668765cfcd99" alt=""><figcaption><p>Configure Dynamic Coupon</p></figcaption></figure>

## If else conditions

If/Else is a condition in automation is a simple decision-making tool. It checks if a condition is true or false and then takes action based on the result.

> If/Else is a condition in automation is a simple decision-making tool. It checks if a condition is true or false and then takes action based on the result.

## Types of Split conditions

* Trigger Events&#x20;
* Contact Property

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeRqNvqTxIjabX29oS7ndHUn8Kr-UlYym6QdJCT3hRwBw_oK__tveBQImJ1IhAZlwmQ0luc8FcxAAADYSEUrVo-o7VHG7kZyQUFScWO5ysAgTVJWQR2RKzN_OA5wR34z9USm3z6z-3GENb0E0O0QGGPepJ9?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt=""><figcaption><p>Types of split conditions</p></figcaption></figure>

## **Trigger Events**

These provide various options for determining whether a customer should remain in the automation workflow or exit it, based on different categories.

> <mark style="color:orange;">**Order total:**</mark> The complete cost of a customer's order, including items and applicable fees.
>
> <mark style="color:orange;">**Language:**</mark> The preferred language of the customer for communication.
>
> <mark style="color:orange;">**Currency:**</mark> The type of currency used for the transaction.
>
> <mark style="color:orange;">**User**</mark> <mark style="color:orange;">**Notes:**</mark> Additional comments or instructions provided by the customer.
>
> <mark style="color:orange;">**Category Name:**</mark> The name of the product category purchased.
>
> <mark style="color:orange;">**Category IDs:**</mark> Unique identifiers for the product categories.
>
> <mark style="color:orange;">**Product names:**</mark> The names of the products included in the order.
>
> <mark style="color:orange;">**Product IDs:**</mark> Unique identifiers for each product in the order.
>
> <mark style="color:orange;">**Buyer Accept marketing:**</mark> Indicates whether the customer has opted to receive marketing communications.
>
> <mark style="color:orange;">**Variant ID's:**</mark> Unique identifiers for each variable in the Product in the order.
>
> <mark style="color:orange;">**Geolocation**</mark><mark style="color:orange;">:</mark> The geographic location of the customer, based on their device or IP address.
>
> <mark style="color:orange;">**Placed order**</mark><mark style="color:orange;">:</mark> Confirmation that an order has been completed by the customer.

## Contact Property

These allow you to set conditions based on specific details about the contact, such as their preferences or profile information, to decide whether they should continue in or exit the automation workflow.

> <mark style="color:orange;">**Email**</mark><mark style="color:orange;">:</mark> The customer's email address is used for communication.
>
> <mark style="color:orange;">**Name**</mark><mark style="color:orange;">:</mark> The customer's full name.
>
> <mark style="color:orange;">**Country**</mark><mark style="color:orange;">:</mark> The country where the customer is located.
>
> <mark style="color:orange;">**Signed Up**</mark><mark style="color:orange;">:</mark> The date or time when the customer registered or subscribed.

## Add to list

This feature in automation helps you organize your contacts into specific groups or lists. You can use this to sort customers based on their interests or behaviors.

> **EXAMPLE**\
> \
> If you have a list of customers who are interested in sports products, you can add customers who have purchased or shown interest in those products. This way, when you have a new sports product launch, you can send targeted messages only to that group. By using lists, you ensure that customers receive relevant information that matters to them, making your communication more effective.

This segmentation helps ensure that the right messages reach the right people. It allows for targeted communication about different campaigns, such as product launches, promotions, or events.&#x20;

{% hint style="warning" %}
By using lists, you can customize your outreach efforts and improve engagement by sending content that is relevant to each group’s interests and behaviors.
{% endhint %}

## Remove from list

This feature allows you to take a contact out of a specific group or list. By removing contacts, you can manage your audience more effectively and ensure that they no longer receive communications that may not be relevant to them.

{% hint style="success" %}
**Need More Help?**&#x20;

We’re here to make things easier for you!

* Email Us: Reach out anytime at <support@retainful.com>.
* Schedule a Call: Still stuck or need a hands-on walkthrough? Book a quick session with our support team, and we’ll guide you step-by-step.

[**Schedule a call with us**](https://zcal.co/retainful/onboarding)**.**
{% endhint %}
