# Schedule

## Introduction

The **Scheduler** in Lucy allows you to create advanced, time-based attack and awareness campaigns that mimic real-world scenarios. It helps control email delivery rates, avoiding issues with recipient mail servers that may block or delay large batches of emails.

The Scheduler allows you to:

* Define specific rules for sending emails to targeted groups.
* Control delivery timing across days, hours, and even months.
* Ensure new recipients are automatically integrated into long-running campaigns

***

## Add Rule

The Scheduler is driven by **Rules**, and each Rule is defined by a **Rule Type**. The Rule Type determines how and when emails are sent, and what configuration options are available.

Select **+ Add Rule** in the top-right corner to add a new schedule rule.

<figure><img src="/files/TCvWcHXDPIzZuKkVwj3k" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If a campaign has a schedule rule of any kind attached to it, no other emails will be sent except those included in the schedule. This includes emails for recipients not attached to any schedule rule.
{% endhint %}

***

## Rule Types

{% hint style="info" %}
The Scheduler is governed by its Rules, and these Rules are governed by the Rule Type.
{% endhint %}

The rule type dictates the parameters that can be configured, determining the conditions and actions that the Scheduler can execute.

<figure><img src="/files/Dy8l3vxkIFMX3ynEsHFS" alt="" width="516"><figcaption></figcaption></figure>

{% tabs %}
{% tab title="One-Shot" %}
Sends a single batch of emails at a specified time.

**Use Cases:**

* Immediate phishing simulations.
* Policy rollouts or training reminders.
* Incident-based awareness campaigns.
  {% endtab %}

{% tab title="Repeating" %}
Sends emails at a defined interval (e.g., daily, weekly). Recipients receive one email per cycle from selected scenarios.

**Email Distribution Options:**

* **Uniform:** Each recipient gets the same email each cycle.
* **Randomized:** Recipients receive different emails each cycle.

**Additional Parameters:**

* **Repeat Interval:** Frequency (daily, weekly, monthly).
* **Repeats:** How many times to repeat.
* **Start/Stop Hour:** Time window for daily delivery.
* **Run Days:** Specific days to send emails (for weekly/monthly intervals).

**Best For:** Long-term simulations where message randomization prevents internal warnings among employees.
{% endtab %}

{% tab title="Yearly" %}
Runs a structured campaign across 12 months, ideal for onboarding or long-term education.

**How It Works:**

* Recipients are automatically enrolled.
* Campaign starts the *month after* the rule is created.
* Email delivery timing within each month can be customized.

**Monthly Scheduling Options:**

* **Entire Month:** Randomly throughout.
* **Start of Month:** 1st–9th.
* **Middle of Month:** 10th–20th.
* **End of Month:** 21st–last day.

**Visual Planner:** Drag and drop attack/awareness scenarios to each month in the yearly timeline.

<figure><img src="/files/cLH3gIky0lZmS8qq88Bl" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

***

## **Email Type**

{% hint style="success" %}
Applies to: **One-Shot, Repeating**
{% endhint %}

Specifies the nature of the emails to be sent.

<figure><img src="/files/VmoX3nvdLKYfiRdDn6ju" alt="" width="563"><figcaption></figcaption></figure>

* **All:** Includes all types of emails.
* **Lure:** Emails designed to entice recipients into a phishing simulation.
* **Attack:** Emails that simulate a cyber attack.
* **Awareness:** Emails designed to educate recipients on security awareness.

***

## **Time Zone**

{% hint style="success" %}
Applies to: **All Rule Types**
{% endhint %}

Set the time zone for your campaign to ensure emails arrive during local business hours, increasing engagement.

***

## **Start Date / Stop Date**

{% hint style="success" %}
Applies to: **One-Shot, Repeating**
{% endhint %}

* **Start Date** *(One-Shot, Repeating)*: Define when the campaign begins (e.g., `19.05.2024 11:10`).
* **Stop Date** *(One-Shot only)*: Define when the campaign ends (e.g., `19.05.2024 12:10`).

{% hint style="info" %}
Use the **Schedule Calculator** to fine-tune these dates.
{% endhint %}

<details>

<summary>Schedule Calculator Explained</summary>

The "Schedule Calculator" is a valuable tool for Administrators to define the sending rate of emails in a campaign, particularly important when sending hundreds of simulated emails which can potentially overload receiving mail servers.&#x20;

This feature allows for setting a delay in the sending rate to prevent overloading of servers and to ensure compliance with mail-sending rate policies. For instance, for O365-based (receiving) mail servers, a recommended sending rate from Lucy is no more than 30 emails per minute. This adjustment helps ensure that your emails sent from Lucy are delivered efficiently without triggering spam filters or blocking by receiving mail servers.

</details>

***

## **Update Schedule Plan for New Recipients**

{% hint style="success" %}
Applies to: **All rule types**
{% endhint %}

Automatically update the schedule plan for new recipients added to the group—even after campaign launch.

**Use Case:** Onboarding new hires from LDAP or Entra ID syncs.

***

## **Do Not Send Emails on Certain Days of the Week**

{% hint style="success" %}
Applies to: **All rule types**
{% endhint %}

Prevent emails from being sent on specific days (e.g., weekends).

**Example:** Uncheck Saturday and Sunday to reflect typical business communication patterns.

<figure><img src="/files/vsbW0tWSEavpIkoRTPOv" alt="" width="443"><figcaption></figcaption></figure>

***

## **Sort Type**

{% hint style="success" %}
Applies to: **One-Shot, Repeating**
{% endhint %}

Controls how emails are ordered during delivery.

| Type             | Description                             |
| ---------------- | --------------------------------------- |
| **By Recipient** | Emails sent in completely random order. |
| **By Scenario**  | Emails sent by scenario group.          |

***

## Scenario & Recipient Selection

* **Scenarios:** Select the phishing or awareness scenarios for this rule.
* **Recipient Groups:** Choose which users will receive these emails.

***

## Create A Schedule Plan

Once all configurations are complete, click **Save** to build a [Schedule Plan](/application-reference/campaigns/campaign-settings/optional-settings/schedule/schedule-plan.md) based on your rule.


---

# Agent Instructions: 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:

```
GET https://wiki.lucysecurity.com/application-reference/campaigns/campaign-settings/optional-settings/schedule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
