> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastgen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Time-based

**Create your first time-based workflow (or cron job).**

<img src="https://mintcdn.com/organa/x4VcIWGQE6pfuZkY/images/cron-jobs-getting-started-header.webp?fit=max&auto=format&n=x4VcIWGQE6pfuZkY&q=85&s=6a0201e6d34f472f6e265ee32bcbda94" alt="cron-job-getting-started-header" width="1476" height="596" data-path="images/cron-jobs-getting-started-header.webp" />

## Overview

Utilizing the same drag and drop interface as the [API Builder](/getting-started/first-api-route) Fastgen enables you to quickly create, test and deploy scheduled and repeating jobs.

### Let's build a cron job

<Steps>
  <Step title="Create">
    Navigate to *Workflows* on the left side bar, click *Add workflow* and choose `Time`.

    <img width="400" height="400" src="https://mintcdn.com/organa/x4VcIWGQE6pfuZkY/images/cron-job-example-1.webp?fit=max&auto=format&n=x4VcIWGQE6pfuZkY&q=85&s=945a1820e8c2a2769d77030c4677e205" data-path="images/cron-job-example-1.webp" />

    The <Tooltip tip="This is the first action block of every time workflow">Top Action</Tooltip> lets you specify a name and description. The toggle lets you activate and deactivate the workflow. If a workflow is not toggled as active, it won't execute.

    <Note>
      When creating a new workflow, it will be toggled as active per default. However, you need to deploy your workflow at least once for it to be live and executing.
    </Note>

    <img width="400" height="400" src="https://mintcdn.com/organa/x4VcIWGQE6pfuZkY/images/cron-job-example-2.webp?fit=max&auto=format&n=x4VcIWGQE6pfuZkY&q=85&s=9a03cbf31f5f168653407242e70a1f7e" data-path="images/cron-job-example-2.webp" />

    As for the time condition, you are able to specifiy any time intervall or specific date for your workflow to be executing.
  </Step>

  <Step title="Debug">
    Similarly to the API Builder, you are able to use the [Debug Mode](/developer-tools/debug) to directly test and debug your workflow.
  </Step>

  <Step title="Deploy">
    Deploy your cron job with one click and the workflows will instantly be live and hosted.
  </Step>
</Steps>

## Video Guide

### Feature Overview

<iframe width="674" height="315" src="https://www.youtube.com/embed/MzSBOcBrhgs?si=KhVZW5rBQzrcutjx" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

### Example

<iframe width="674" height="315" src="https://www.youtube.com/embed/07y_-HLGBXI?si=6WG5G7RIt0zIwHxd" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />
