# Create an automation workflow

> Start from a template or build an automation step by step: choose a trigger, add filters and delays, define actions like emails, publish it and monitor its runs.

Source: https://support.teachfloor.com/articles/create-automation-workflow  
Collection: Automations  
Last updated: 2026-11-22

Automations run repetitive actions for you, based on what users do on the platform: a welcome email when someone joins a course, a nudge when a learner goes quiet, a congratulations when they finish.

Video: https://www.youtube.com/watch?v=OdBvQRfWISM

You build automations in a visual workflow editor, where each step is part of a logic sequence:

1. **Trigger**: defines when the automation starts.
2. **Filter / Logic**: narrows which users or conditions apply, or adds a delay before the action.
3. **Action**: defines what happens once the trigger and filter conditions are met.

> **Note:** Automations are available to owners and admins, on plans that include them. In some screenshots the academy calls its courses "Trainings", so some options say "Training" instead of "Course".

![Automations](https://cdn.sanity.io/images/l9t3o6uq/production/c67a58bf6b4fd9b03e67f3918fc8a718aef98250-1600x900.jpg)

## Start from a template

In the left menu open **Automations** and choose **Start from a template**. A template installs a ready-made automation that you can then adapt. The templates are:

- _New Signup Onboarding_
- _Course Welcome_
- _Compliance Guardrail_
- _Inactive Learner Re-engagement_
- _Course Completion Congratulations_
- _Next Course Enrollment_
- _Inactive Learner Cleanup_

![Start from a template dialog with seven ready-made automation templates](https://cdn.sanity.io/images/l9t3o6uq/production/ff91a86c6757fb56c2413aca2e6b400f573dcc1a-1600x900.jpg)

To build your own instead, click **Create Automation** → **Create from scratch**. The canvas opens with a trigger and an action, ready for you to configure.

![A new automation](https://cdn.sanity.io/images/l9t3o6uq/production/b301205e0f1bd8d794c719b6586f36dd2fb165bd-1600x900.jpg)

## Name your automation

Give the automation a clear, descriptive name, so you can find it later when you have several running. For example:

- "Welcome Email for New Members"
- "Auto-Enroll After Registration"
- "Revoke Access After Course Completion"

To name it:

1. Click the **settings icon** in the top-right corner of the automation editor (next to the delete icon and the on/off toggle). The **Automation Settings** panel opens.
2. Enter a title in the **Name** field.

## Choose a trigger

A **Trigger** defines when your automation starts. There are two trigger types: **Event** and **Function**.

### Event trigger

Runs when a specific platform event occurs. The available events are:

- **Organization Joined**: a new user joins your organization.
- **Course Joined**: a learner enrolls in a course.
- **Activity Completed**: a learner completes an activity.
- **Course Completed**: a learner finishes a course.
- **Questionnaire response**: someone answers a questionnaire, for example a course application. See [Collect and review course applications with questionnaires](https://support.teachfloor.com/articles/course-applications-questionnaires).
- **Webhook Received**: an external system calls the automation's webhook.

For example, with _Trigger → When Organization Joined_, the automation runs whenever a new member joins your organization.

![Trigger Settings panel with Trigger Type set to Event and the Event dropdown listing Organization Joined, Course Joined, Activity Completed, Course Completed](https://cdn.sanity.io/images/l9t3o6uq/production/0dc4a37bd5740b28ddacfe4f681935f083a987d3-2880x1556.png)

### Function trigger

The **Function** trigger runs the automation at a specific time or frequency, for recurring or time-based tasks. To set it up:

1. Set **Trigger Type** to **Function**.
2. Under **Function**, select **Scheduler**.
3. Set the **Frequency**:
   - **Hourly**: runs every set number of hours (**Interval (in hours)**).
   - **Daily**: runs every day at a chosen time.
   - **Weekly**: runs on the chosen **Days of the week** at a chosen time.
   - **Monthly**: runs on the chosen **Day of the month** at a chosen time.
4. Choose the exact time in **Run at** (for example, 10:00).
5. Choose the **Context Entry**, which determines what data the automation acts on:
   - **Users**: the automation loops through all users.
   - **Courses**: the automation loops through all courses.

![Trigger Settings with Trigger Type Function, Function Scheduler, Frequency Daily, Run at 10:00 and the Context Entry options Users and Courses](https://cdn.sanity.io/images/l9t3o6uq/production/78116faaf5959e5cef5a1fb9d957756e7067059e-2880x1556.png)

For example, this setup sends a daily email to all learners at 10:05:

- **Trigger**: Function → Scheduler → Every day at 10:00
- **Filter**: User role = Learner
- **Logic**: Delay 5 minutes
- **Action**: Send daily reminder email

## Add a filter or logic

After the trigger, click **+** in the workflow to choose **Add Filter** or **Add Logic**. Filters narrow who the automation applies to, and logic controls when it runs.

![Workflow editor with the + menu open showing Add Filter and Add Logic, next to the Filter Settings panel](https://cdn.sanity.io/images/l9t3o6uq/production/cf68cbc2bf0542552116fdb589ac89ab82d0d610-2878x1554.png)

### Add a filter

Filters run the actions only for specific people or items. Start by selecting a **Context Entry**, the entity the filter uses:

- **User**: filter by user attributes and activity.
- **Course**: filter by course attributes.

The filters available depend on the context entry.

![Filter Settings panel with Context Entry User and the Filter dropdown listing Field Match, User Roles, Active Users, Inactive Users, Email Verified](https://cdn.sanity.io/images/l9t3o6uq/production/976a452ec1e907e3a2fb0691fdfa0c5dce8abb51-2880x1556.png)

### User filters

**Field Match** filters users by a specific field value:

- **Field**: choose a user field, such as _Email_ or _Full Name_.
- **Operator**: choose how to match the value (Contains, Does Not Contain, Is Equal To, Is Not Equal To, Starts With, Ends With).
- **Value**: enter the text or number to match.

Example: only continue if the user's email **contains "@teachfloor.com"**.

**User Roles** targets users by their role in the organization: Learner, Instructor, Assistant, Admin or Owner. Example: run the automation only for **Learners** to enroll them in a course or send a reminder.

**Active Users** filters users who have been active within a number of days:

- **Days**: how many days of recent activity to consider.
- **Within courses (optional)**: restrict the activity check to specific courses.

Example: only users active in the past **3 days** continue through the automation, which suits engagement workflows.

**Inactive Users** targets users who haven't been active recently:

- **Days**: the inactivity period (for example, not active for 7 days).
- **Include users with no activity**: include users who never logged in.
- **Within courses**: limit the check to inactivity within a specific course.

Example: after 10 days of inactivity, send a re-engagement email to bring learners back.

**Email Verified** filters users by whether they have verified their email address:

- **Yes**: continue only if the email is verified.
- **No**: continue only if the email is not verified.

Example: send a verification reminder to all users whose email verification status is **No**.

### Course filters

**Field Match (Course)** filters courses by name:

- **Field**: _Course Name_
- **Operator**: _Contains_, _Does Not Contain_, _Is Equal To_, _Is Not Equal To_, _Starts With_, _Ends With_
- **Value**: the text to match

Example: only proceed if **Course Name contains** "AI".

**Course Status** filters by status: **Draft**, **Published** or **Archived**. Example: target **Published** courses only.

### Combine filters

You can chain multiple filters in the same automation for more precise targeting, for example:

- **User Role = Learner**
- AND **Active within the last 7 days**
- AND **Email Verified = Yes**

Only verified, active learners are then affected by the automation.

### Add logic

**Logic** blocks control timing and flow. The available logic is **Delay**: pause the automation for a set time before the next step (for example, 5 minutes or 2 days). The time units are Minutes, Hours, Days, Weeks and Months.

![Logic Settings panel with Logic Delay, Duration 5 and Time Unit Minutes, and the Delay for 5 minutes step in the workflow](https://cdn.sanity.io/images/l9t3o6uq/production/7dbe7f7d170333d37c802623deb3469ce3e1a651-2878x1556.png)

For example, to remind learners who joined your organization but haven't started a course yet:

1. **Trigger**: When _Organization Joined_, so the automation starts as soon as a new user joins.
2. **Filter**: _User Role = Learner_, so it applies only to learners.
3. **Logic**: _Add Delay → 3 days_, so the workflow pauses for three days after the user joins.
4. **Action**: _Send Email → "Start your first course today"_, a reminder to begin.

Every learner who joins your organization receives the reminder **three days after registration**.

## Define the action

Once the trigger, filters and logic are set, choose **what the automation does**: for example, send an email, enroll a learner or revoke access. You can add multiple actions in sequence to build complete learning journeys or administrative workflows.

![Action Settings panel with the Action dropdown listing Send Email, Enroll in Course and Revoke Access, plus Subject and Body fields](https://cdn.sanity.io/images/l9t3o6uq/production/8466fea6dd2ef77b18457cae7360f346bf973a6b-2878x1556.png)

### Send Email

Sends an email to a user or a specific address. The options are:

- **Send Email To**:
   - **Payload User**: sends the email to the user who triggered the automation.
   - **Specific Email**: sends it to a fixed address (for example, admin@yourorg.com). You can enter multiple addresses separated by a comma.
   - **Questionnaire respondent**: sends it to the person who answered a questionnaire, with questionnaire triggers.
- **Subject**: the subject line of the email.
- **Body**: your message, in plain text or with variables (for example, `{{user.full_name}}`). Click the **{ }** icon in the Subject or Body field to see and insert the variables available for your trigger. They are filled in for each person, and include:
   - the recipient's name or email;
   - the organization's name or link;
   - the course name, or a button or link to the course.

![Subject and body with placeholders](https://cdn.sanity.io/images/l9t3o6uq/production/6b6a455946a8ea3479e431830d6345328157d851-1600x900.jpg)

Example: a welcome message to newly joined learners.

| Setting | Example |
| --- | --- |
| Send Email To | Payload User |
| Subject | Welcome to Teachfloor |
| Body | Hi {{user.full_name}}, we're excited to have you on board. Explore your first course here: {{course.url.link/Course Link}} |

> **Tip:** Combine Send Email with a **Delay** (for example, "Wait 3 days") to send a reminder later instead of immediately.

### Enroll in Course

Enrolls users in one or more courses, which is useful for onboarding sequences or tiered learning paths. In **Courses**, select one or more courses from the dropdown.

Example: enroll every new learner in your onboarding courses, so they get access without any manual step.

| Setting | Example |
| --- | --- |
| Trigger | When Organization Joined |
| Filter | User Role = Learner |
| Action | Enroll in Course → "AI Fundamentals for Beginners" and "Mastering Software Development" |

### Revoke Access

Removes a user's access to a specific **course** or to the entire organization. Use it to manage course expirations or trial access periods. In **Revoke From**, choose:

- **Organization**: removes the user from your organization.
- **Course**: removes access only to a selected course.

Example: revoke course access 7 days after completion, for limited-time programs or temporary access.

| Setting | Example |
| --- | --- |
| Trigger | When Course Completed |
| Logic | Delay 7 days |
| Action | Revoke Access → Course |

### Other actions

Besides the actions above, an action can also **Create Member** or **Invite Member**. To chain actions, click **+** → **Add Action**: the new action runs after the steps before it.

![Other actions](https://cdn.sanity.io/images/l9t3o6uq/production/8bbeed88d52eea71adf8f7e26e82ab35054380c2-1600x900.jpg)

### Full example workflow

This automation uses a trigger, a filter, a delay and an action together:

1. **Trigger**: When _Organization Joined_
2. **Filter**: _Email Verified = Yes_
3. **Logic**: _Delay for 3 days_
4. **Action**: _Send Email → "Get Started with Your First Course"_

Every new verified user receives an onboarding email **3 days after joining**.

## Worked example: a course welcome email

This walkthrough builds an automation that sends a welcome email to people who join _Forklift Operator Training_, a course of the fictional company Northwind Logistics.

1. Click **Create Automation** → **Create from scratch** and name it in **Automation Settings**.
2. Click the trigger, set **Trigger Type** to **Event** and choose **Course Joined** (shown as "Training Joined" in the screenshot).
3. Click **+** between the trigger and the action, choose **Add Filter**, and set **Context Entry** to **Course** with **Field Match → Course Name → Contains → Forklift**, so it runs only for the forklift course.
4. Click **+** → **Add Logic** → **Delay**, with a **Duration** of 5 and a **Time Unit** of Minutes, so the email waits 5 minutes after the learner joins.
5. Click the action, choose **Send Email**, set **Send Email To** to **Payload User**, and write the subject and body with placeholders for the learner's name and a link to the course.
6. Publish the automation and turn it on (see below).

The trigger and the filter for this example look like this:

![Trigger: Training Joined](https://cdn.sanity.io/images/l9t3o6uq/production/03305be0ea36793338284a9955a3d9aad73b772b-1600x900.jpg)

![Filter Settings panel set to Course, Field Match, Training Name, Contains](https://cdn.sanity.io/images/l9t3o6uq/production/90f15742082ef18a7b077d6bcd031a6d4d8c8003-1600x900.jpg)

## Publish and turn it on

Click **Publish**, then turn the automation on with the switch at the top. Your plan sets how many automations can be on at the same time; if the limit is reached, a message asks you to switch another one off first.

![Publish and the active limit](https://cdn.sanity.io/images/l9t3o6uq/production/2b747b991a62919fee5f4bd95eb88535186ef531-1600x900.jpg)

> **Tip:** There's no test send or email preview. Try the automation on a test learner first (see [Test your course with test users](https://support.teachfloor.com/articles/test-users)).

## Monitor automation runs

After setting up your automation, check its execution history from **Runs**, at the top of the automation editor. It shows when and how the automation ran, so you can confirm it works as expected.

![Automation editor with the Runs button highlighted at the top, next to the automation name](https://cdn.sanity.io/images/l9t3o6uq/production/99fb42f8a098f947ba1ef483f5cf452aa73e9b60-2880x1556.png)

1. At the top of the automation editor, click **Runs**. The **Automation Runs** window opens.
2. You see a list of past executions, with:
   - **Status**: the state of the run, for example _Completed_, _Running_, _Paused_ (for example, waiting on a Delay) or _Failed_.
   - **Started**: when the automation began (expand the row to also see when it **Completed**).
   - **Duration**: how long the automation took.
   - **Trigger**: the event or function that started the workflow.
3. Expand any row to view the **Execution Logs**, with every step the system processed.

![Automation Runs window with a list of completed runs and one row expanded to show its execution logs](https://cdn.sanity.io/images/l9t3o6uq/production/cb9ac4922df4bbdcf2f885e505c876832282100d-2880x1556.png)

## Errors and automatic recovery

If an action step fails, the system retries it up to **three times** before marking the run as _Failed_.

> **Important:** If the **last three runs** of an automation all fail, an alert email is sent to the **organization owner(s)** and the automation is disabled (its toggle is switched off). It stays off until you switch it back on.

Once notified, the organization owner can:

- Review the execution logs in **Runs** to find the cause.
- Fix any configuration errors (for example, an invalid email or a missing course).
- Switch the automation back on once it is ready to run again.

The **Execution Logs** show whether the problem occurred during the trigger, filter or action stage.
