Human-in-the-loop steps
About human-in-the-loop steps
Types of human-in-the-loop steps
Relay.app offers two kinds of human-in-the-loop steps:
Request approval (over email or Slack)
Send input form (over email or Slack)
When any of these steps are encountered during a workflow run, the run will pause and wait until the assignee of the step has completed the required task.
Human-in-the-loop steps can be assigned to users in your Relay.app workspace. Assignees can be notified via interactive notifications over Slack or email when their action is needed in a HITL step. Each notification can be accompanied with a custom message with instructions.
Approvals
Approvals are the most basic human-in-the-loop step: They ask the assignee for approval to continue the run. When setting up this step, you can include any context (like variables) to aid the assignee in making the decision.

Data input
Perhaps the most powerful human-in-the-loop step is ‘Get data input.’ It sends a form to the assignee and asks them to fill it out. You can add as many form inputs as needed, all typed data.

Setting up a human-in-the-loop step
Step parameters
All of the human-in-the-loop steps are easy to configure and share the same parameters:
A medium to notify the assignee that action is required from them before the workflow run will continue. Assignees can be notified via either Slack or email.
The assignee may be:
any member of the Relay.app workspace
any email address
a Slack channel
The message with optional instructions that the assignee will receive with their notification. These instructions may contain references to variable data from other places in the workflow.
An optional due date for the action.
Optional additional reminders to the assignee, for example, to notify them again three days after the initial notification was sent if they still haven’t acted on it.
Optional notifications to the run owner (the Relay.app user who owns the workflow trigger). For example, you may set up a run owner notification for every human-in-the-loop notification that’s sent or when actions are overdue.
Optional escalation behavior for overdue human-in-the-loop actions. By default, the step will just continue waiting for the user to act, but it can also be configured to do any of the following after the due date:
Skip the action and continue to the next step
End the workflow run right away and not execute steps after this one
Reassign the step to another workspace user

Slack notifications
Slack notifications for human-in-the-loop steps come from the Relay.app Slackbot and are interactive. This means that you can approve runs and even fill in data inputs right from Slack, even when you’re on the go! For example, if the medium of the HITL step is a Slack DM, the user can "Approve" directly within Slack. If the medium is a notification to a Slack channel, any member of that channel can complete the human-in-the-loop step.

Last updated
Was this helpful?