# State

The State section in the Journey module comprises various components that dictate the flow and timing of user interactions within a journey. Below are the components available under the State section, detailed for user comprehension and guidance.&#x20;

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2F5Y14xaoz1SrhqIwExNaO%2FScreenshot%202024-10-01%20at%2014.19.30.png?alt=media&#x26;token=b617ee8f-2715-4873-a2bf-414a5bc82c5e" alt="" width="563"><figcaption></figcaption></figure>

### On Event

In this step of the Journey, you define the event that must occur before the Journey progresses. For example, consider a scenario where users apply for a credit. You would select the **Credit Application** event as the trigger. This means the Journey will proceed once the user submits a credit application.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2F2FvUybhV1xTqY2SI0LzL%2FScreenshot%202024-09-20%20at%2013.53.54.png?alt=media&#x26;token=1313dbd3-7289-4c61-9cab-d5140756f201" alt="" width="563"><figcaption></figcaption></figure>

#### **Step Name**

This is where you name the specific step in the Journey. In this case, the step is labeled **Event**, which helps identify and organize the stages within the Journey.

#### **Select Event**

Here, you select the event that will trigger the Journey to proceed to the next step. The example shows **Credit Application** as the event. Once the Journey starts, this event cannot be changed. This ensures consistency throughout the Journey.

#### **Add Trigger Filters**

Trigger filters allow you to refine the event by adding conditions. In this example, the **Amount** property is chosen, and the filter is set to trigger only when the **Amount** is **Greater Than 10,000**. This allows you to focus only on events that meet specific criteria, such as credit applications above a certain amount.

#### **Add Journey Value**

You can save specific data from this step as a **Journey Value**. For instance, you may want to store the amount requested by the user during their credit application to personalize future communications. Simply select the property (e.g., **Amount**) and save it as a Journey Value for later use.

#### **Add Correlation**

If there is a need to correlate events with other attributes, such as matching multiple data points (e.g., amount requested and approved), you can use the **Add Correlation** option. In this case, you would correlate the **Amount** property to further refine how this Journey step interacts with other data.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FTWWZ0nME9wVI1ScIi278%2FScreenshot%202024-09-19%20at%2017.22.45.png?alt=media&#x26;token=b6c4474b-7046-4bbe-98b6-b046fa9efe80" alt="" width="375"><figcaption></figcaption></figure>

**Time-out**

You also have the option to set a **Time-out** for the events. The **Time-out** specifies the maximum time allowed for the event to occur before the Journey takes an alternate path or ends. For example, if the credit application doesn’t happen within a set time (e.g., 48 hours), the Journey can proceed with a different action, such as sending a reminder to the user.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2F6Y2jZst8e3hRDfTdzjht%2FScreenshot%202024-10-01%20at%2014.54.51.png?alt=media&#x26;token=6199aaa7-5818-4351-bb2b-de7f3ac9be68" alt="" width="199"><figcaption></figcaption></figure>

### Delay

The **Delay** component pauses the journey for a set amount of time before proceeding to the next step. You might want to wait for a few days before sending a follow-up email after a user has made a purchase to ask for feedback or suggest related products. You can set the duration of the delay in minutes, hours, days, or even weeks, depending on your specific requirements.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2Fj7HN2KXeEaPjAAgYW5z8%2FScreenshot%202024-09-19%20at%2018.14.40.png?alt=media&#x26;token=57d9abc3-b993-45f2-98fc-9d6488c64d49" alt="" width="375"><figcaption></figcaption></figure>

#### **Step Name**

This is where you define the name of the delay step. In the example, it's named **Delay**. Naming steps clearly is essential for organizing and tracking the flow of the Journey.

#### **Select Type of Delay**

Here, you choose how the delay will be implemented.&#x20;

1. **Fixed Duration**

The example shows **Fixed Duration**, which means that the delay will last for a set amount of time. You can delay users by seconds, minutes, hours, days, weeks, or years. Fixed Duration is useful for defining specific time gaps between two Journey actions.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FqzMf9ffuJBZtdQntVBlQ%2FScreenshot%202024-09-19%20at%2017.30.54.png?alt=media&#x26;token=da6be901-623f-4ae3-a79f-bcc9f41c927f" alt="" width="375"><figcaption></figcaption></figure>

2. **Until Date**

This option delays users until a specific calendar date. When selected, you can define an exact date, and users will wait in the journey until that date arrives before moving forward. It is useful for time-sensitive campaigns or actions that should be aligned with specific events, such as holidays, end-of-month promotions, or any other date-centric activity.

* **Example**: If a user enters a journey on September 15th, and you set the delay **Until Date** to September 23rd, that user will remain in the delay step until the 23rd before proceeding, no matter when they started the journey.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FNSOMTx5PlWxF6hMqXrAR%2FScreenshot%202024-09-19%20at%2017.32.27.png?alt=media&#x26;token=c8064a49-6885-43f5-a2a9-72c9288bfbcf" alt="" width="375"><figcaption></figcaption></figure>

3. **Until Day of Week**

This option delays users until a specific day of the week and hour. It is useful for workflows where actions need to happen on a consistent weekday. You select the day of the week (e.g., Monday, Wednesday), and the system holds users at this step until that day and hour arrives.

* **Example**: If you set a delay for **Until Day of Week: Tuesday 00:00**, any user entering this step on, say, a Sunday will remain delayed until the following Tuesday. This is useful for weekly campaigns or timed messages.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FVqMyoRSJQeR6VNu5VZF2%2FScreenshot%202024-09-19%20at%2017.33.53.png?alt=media&#x26;token=eaa45b6e-0287-413f-95f2-1cc0809e3940" alt="" width="375"><figcaption></figcaption></figure>
