> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user/automations-builder/create-a-weekly-reminder-workflow-using-time-delay.md).

# Create a Weekly Reminder Workflow Using Time Delay

#### Step 1: Add a Custom Webhook

* Add a **Custom Webhook** block.
* Receive the following data:
  * Name
  * Phone Number
* Save the block.

#### Step 2: Get the Current Day and Time

* Add the **Get Current Date & Time** block.
* Configure the output to return:
  * Current Day
  * Current Time (12-hour format)
* Save the block.

#### Step 3: Calculate Time Until the First Reminder

* Add a **Get Duration Difference** block.
* Set:
  * **Start Time:** Current Date & Time
  * **End Time:** Friday 10:00 AM
* This calculates the remaining time until the first reminder.

#### Step 4: Check if Friday Reminder is Pending

* Add a **Basic Router** block.
* Configure the condition:
  * **Duration Difference ≥ 0**
* If true, continue with the Friday reminder flow.

#### Step 5: Delay Until Friday 10:00 AM

* Add a **Time Delay** block.
* Use the calculated duration from the previous step.
* Once the delay is completed, send the **Friday Reminder Template**.

#### Step 6: Send the Remaining Weekly Reminders

After sending the Friday reminder:

1. Add a **Time Delay** of **1 Day**
   * Send the **Saturday 10:00 AM Reminder**.
2. Add a **Time Delay** of **6 Hours**
   * Send the **Saturday 4:00 PM Reminder**.
3. Add a **Time Delay** of **18 Hours**
   * Send the **Sunday 10:00 AM Reminder**.

#### Step 7: Handle Users Who Register After Friday 10:00 AM

If the first duration difference is **less than 0**:

* Calculate the duration until **Saturday 10:00 AM**.
* Use a **Basic Router**:
  * If the value is **≥ 0**
    * Use a **Time Delay** block.
    * Connect to the **Saturday 10:00 AM Reminder** using a **Go To** block.

#### Step 8: Handle Users Who Register After Saturday 10:00 AM

If the Saturday 10:00 AM duration is also negative:

* Calculate the duration until **Saturday 4:00 PM**.
* Add a **Basic Router**.
* If the value is **≥ 0**:
  * Use a **Time Delay** block.
  * Connect to the **Saturday 4:00 PM Reminder** using a **Go To** block.

#### Step 9: Handle Users Who Register After Saturday 4:00 PM

If the Saturday 4:00 PM duration is also negative:

* Calculate the duration until **Saturday 12:00 AM**.
* This determines the remaining time until the current week ends.

#### Step 10: Calculate the Next Friday Reminder

* Add an **Addition** block.
* Add:
  * Duration from **Current Time → Saturday 12:00 AM**
  * Duration from **Saturday 12:00 AM → Next Friday 10:00 AM**
* This gives the total delay until the next week's first reminder.

#### Step 11: Remove Decimal Values

* Add a **Split Text** block.
* Input the calculated duration.
* Use **"." (dot)** as the separator.
* Use the first value before the decimal as the final delay value.

#### Step 12: Delay Until Next Friday

* Add a **Time Delay** block.
* Set:
  * **Delay Unit:** Seconds
  * **Delay Value:** Split Text Output
* Save the block.

#### Step 13: Restart the Weekly Reminder Cycle

* Add a **Go To** block.
* Connect it back to the **Friday Reminder Template**.
* This ensures the reminder workflow continues automatically every week.<br>

**Flow Template :**  /products/automation/flow/94cce62150eb8a996a571a3a24770ec3

{% embed url="<https://youtu.be/T9retrT1XOw>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://helpdocumentation.gitbook.io/user/automations-builder/create-a-weekly-reminder-workflow-using-time-delay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
