Triggers

Workflow triggers are how you configure the start of a workflow. They are fundamentally simple, with three basic options: Schedule, Webhook, or App Event. Any workflow can have multiple triggers, allowing you to leverage a workflow in multiple situations and ensure that the job is done at each point needed.

Schedule

A schedule allows you to have the workflow run automatically at regular intervals.

Schedule Type

You have two types of schedules that you can run:

  • Interval: Intervals allow you to configure the workflow to run “ever x hours or days,” setting the interval itself in terms of hours and which days to run.

  • Fixed Times: Fixed times allow you to set a time zone, time, and which days to run.

Webhook

Setting a webhook trigger allows you to start the workflow by calling a webhook. The URL of the webhook is automatically generated when creating a webhook trigger.

It’s important to note that you can also pass parameters in the webhook through URL parameters or in the body, which can then be accessed within the workflow itself. These are accessible through the Webhook option within the value selector:

If you select “Webhook,” you can see the example passed here of foo=bar as a URL parameter:

The above was accomplished with the following URL:

https://api.mindcloud.co/v1/webhook/d7a5ce165145d46afe3f6eff122658baec60354940e7b90cf1c3ebf291b940d12138e5928af86b03905401048bd8f0eb?foo=bar

Webhook Queues

If you are expecting a large volume of webhook calls, you can set the webhook up to use a queue, which will allow you to process webhook requests in the order in which they are received. This is important when workflows rely on data from an earlier run that may not have completed by the time the new webhook fires.

It’s critical to note that queued webhooks will no longer send a custom response!

App Event

You can also trigger a workflow based on an App Event, which allows you to connect workflows to each other.