---
title: "Create Schedule"
description: "Create a one-shot schedule for an agent or workflow."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/schedule/create"
---
# Create Schedule

> Create a one-shot schedule for an agent or workflow.

<block-meta block="Yes" channels="Any" folder="schedule" group="Schedule" groupTo="/build/workflows/blocks/schedule" icon="i-lucide-calendar-plus" pipe="Value" scope="Any" tool="Yes" type="schedule.create">



</block-meta>

**Create Schedule** creates a one-shot job like **Activity → Schedule**. Choose **Specific time** (epoch milliseconds) or **Timeout (minutes)** (≥ 1). The target must be a general (not linked) agent or workflow.

The created schedule is **active**. Use `pipe.value.id` with [Get Schedule](https://docs.vettero.com/build/workflows/blocks/schedule/get), [Update Schedule](https://docs.vettero.com/build/workflows/blocks/schedule/update), or [Delete Schedule](https://docs.vettero.com/build/workflows/blocks/schedule/delete).

For recurring runs, use **Activity → Schedule** (Repetitive).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Name
      </strong>
    </td>
    
    <td>
      Required label
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Trigger mode
      </strong>
    </td>
    
    <td>
      <strong>
        Specific time
      </strong>
      
       or <strong>
        Timeout (minutes)
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Scheduled at
      </strong>
    </td>
    
    <td>
      Shown for Specific time — epoch milliseconds (number or variable)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Timeout (minutes)
      </strong>
    </td>
    
    <td>
      Shown for Timeout — integer ≥ 1
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Target type
      </strong>
    </td>
    
    <td>
      <strong>
        Agent
      </strong>
      
       or <strong>
        Workflow
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Target
      </strong>
    </td>
    
    <td>
      Eligible general agent or workflow (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Input schema
      </strong>
    </td>
    
    <td>
      Shown when the target has input args
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the schedule is created
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is the created schedule. Use `id` for later steps. Typical fields:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Schedule id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        isActive
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the job is active
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        mode
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        specificTime
      </code>
      
       or <code>
        timeoutMinutes
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        scheduledAt
      </code>
    </td>
    
    <td>
      datetime
    </td>
    
    <td>
      Fire time in specific-time mode
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        timeoutMinutes
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Delay in timeout mode
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        targetType
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        agent
      </code>
      
       or <code>
        workflow
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        targetRef
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Target id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        pending
      </code>
      
      , <code>
        running
      </code>
      
      , <code>
        success
      </code>
      
      , or <code>
        failed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inputData
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Input passed to the target when set
    </td>
  </tr>
</tbody>
</table>

## Use case

- After a form submit, wait 30 minutes then start a reminder workflow.
- Schedule an agent at a datetime stored on a table row.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
