This is reference content about building functions and workflows. Learn more if you're not yet familiar with this new Slack platform paradigm.

delay

Pause a workflow for a specified amount of time

Facts

Schema ID

Schema.slack.functions.Delay

Schema reference

slack#/functions/delay

Required scopes

No additional scopes are required.

Input parameters

Required parameters
Length of time (in minutes) to wait before proceeding. Maximum allowed value is 10080 minutes (7 days).
  • 4
  • 8
  • 15
  • 16
  • 23
  • 42

Output parameters

There are no parameters to display

Usage guide

Delay a workflow for some amount of time. Good things come to those who wait.

Example workflow step:

const delayStep = ExampleWorkflow.addStep(
  Schema.slack.functions.Delay,
  {
    minutes_to_delay: 12,
  },
);