Skip to main content
A workflow is a map of steps that cure follows by itself whenever something happens. It starts at a trigger, and every step after it is linked to the one before:
When a member joins, wait 3 days, then check whether they have the Verified role. If not, kick them. If they do, DM them a welcome.
That one workflow replaces a moderator remembering to check every new member, every day, forever. Workflows can branch, merge, pause for up to 30 days, ask members questions with buttons, repeat parts of themselves, make channels and threads, run cure’s own features and talk to other apps.
Workflows are built on the dashboard: Dashboard → Automation → Workflows. You need Automation access in dashboard access to change them, or view access to look.

Start from a template

Workflows lists ready-made workflows under Start from a template. Each one opens in the editor switched off, as a normal workflow you can change: Each one does something cure’s own features can’t do alone: wait days, ask and branch on the answer, keep count, or link features and other apps together. Roles and channels differ in every server, so templates leave them empty. The editor’s problems list says what to pick before it saves.
The Workflows page with the template gallery highlighted

Workflows, with Start from a template under your workflows.

The editor

Open a workflow, or press New workflow, and the editor fills the whole window.
The workflow editor with four numbered areas

1 the top bar, 2 Add a step, 3 the canvas, 4 the selected step's settings.

On phones the canvas fills the screen. Add a step and a step’s settings open as sheets from the bottom, and undo and redo sit with the zoom buttons.

Moving around

  • Drag empty space to move around. On a trackpad or with a mouse wheel, scroll.
  • Zoom with Ctrl (⌘ on a Mac) and scroll, by pinching, or with the + and − buttons. Fit shows the whole workflow.
  • The map in the corner shows where you are. Click it to jump there.
  • Press F to fit and + or − to zoom.

Adding and linking steps

Each step has a dot on its left (where a run comes in) and one or more labelled dots on its right (where a run goes next). A check has Yes and No; most actions have Then and If it fails.
1

Add after a step

Select a step, then click one in Add a step. The new step goes to its right, already linked from its first free output.
2

Link two steps

Drag from an output dot onto another step.
3

Add a step exactly where it goes

Drag from an output dot into empty space and let go. A small menu opens there: pick a step and it’s added, already linked.
4

Remove a link

Click the line, then Remove link (or press Delete).
Dragging from a step's output dot into empty space opens Add a step here

1 drag from an output dot, 2 let go in empty space and pick the step to add there.

Drag a step by its body to move it. Steps placed higher up run first when one output leads to several steps (see how a run moves). A step that no run can reach is faded and marked Not linked to the trigger. It’s kept, but it never runs until you link it in.

Keys

On a Mac, use ⌘ instead of Ctrl.

Problems

The editor checks the workflow as you build it:
  • Errors stop it saving: a step missing a role, channel or message; a check with nothing to compare; a step that can’t be undone without I understand; a step that doesn’t fit the trigger; a workflow switched on with no action linked.
  • Warnings save fine but are worth a look: a step not linked to the trigger, a check with nothing after it, a repeat with nothing to repeat.
Steps with an error get a red outline and a count; steps with a warning get a grey count. The problems button in the top bar opens the full list, and clicking one takes you to its step. A step’s own problems also show at the top of its settings. If cure refuses something when you save, that’s added to the list too.
The problems button and the problems list

1 the problems button, 2 the list. Click a problem to go to its step.

Saving

Nothing changes in your server until you press Save. If you try to leave with unsaved changes, cure asks first: keep editing, leave without saving, or save and leave. The link in your address bar (…/workflows?workflow=…) opens the same workflow, so you can send it to another staff member. Switch a workflow On in the top bar, or straight from the list, to start it running.

How a run moves

When the trigger happens, a run starts at the trigger and follows the links:
  • One path at a time. If an output leads to several steps, they run from top to bottom as drawn, and each path runs to its end before the next one starts.
  • Paths can merge. A step linked from two places runs once for each arrival.
  • Paths can loop back. Link a later step back to an earlier one, and the run goes round again, until a limit stops it.
  • Failures carry on. If an action fails (a missing permission, a deleted role), the run follows If it fails when that’s linked, and otherwise carries on down Then. The failure is in the run’s log either way.
  • Stop ends the whole run, even if other paths are still waiting their turn.
Things a workflow does never start another workflow. A rule like “when someone is banned, ban them” can’t loop, and one workflow’s role change won’t set off another workflow’s “role is given”.

Triggers

The trigger is the first step, and every workflow has exactly one. Select it to change it. The editor only offers steps and checks that make sense for your trigger. If you change the trigger later, steps that no longer fit are marked This step needs a different trigger.

Who the “member” is

Most triggers are about a member: the person who joined, sent the message, opened the ticket, won the giveaway. Steps like Give a role and DM the member act on them. A few triggers have no member behind them: On a schedule, A channel is made and A channel is deleted. cure stands in for the member, so member steps are hidden for those. For Someone uses another bot’s command, the member is the person who ran the command (see below).

On a schedule

Pick On a schedule and choose how it repeats: Each schedule has its own time zone, set to your browser’s when you make it. Times stay put when the clocks change: “every day at 09:00” is 09:00 all year. A time skipped when clocks go forward runs just after the gap, and a time that happens twice runs once. A monthly schedule on the 31st runs on the last day of shorter months. If cure was offline when a schedule was due, it runs once when cure is back, then carries on at its usual times. It never runs every missed time in a row.
Schedule settings on the trigger

A schedule that runs every 30 minutes, in its own time zone.

Another bot’s command

Discord doesn’t tell bots when someone uses another bot’s slash command, only when that bot answers. So this trigger starts when the other bot replies to the command.
1

Copy the command

In Discord, type /, find the other bot’s command, right-click it (long-press on phones) and copy its mention. It looks like </bump:947088344167366698>.
2

Paste it

Select the trigger, pick Someone uses another bot’s command, and paste it into Command. You can also type just the name, like bump.
3

Optional: the bot

If two bots have a command with the same name, put the one you mean in Bot ID.
In the run:
  • The member is the person who ran the command, so you can thank, reward or remind them.
  • The message is the other bot’s answer, so React to the message and Reply to the message act on it.
  • {command.name}, {bot.name} and {bot.id} say what was used. A command like /config set counts for config too.
Another bot's command on the trigger

The command pasted from Discord, and the optional bot ID.

Steps

Flow steps

Any step can have a Step name, shown on the canvas instead of its default title. “Kick unverified” reads better than “Kick them”.

Waits that survive restarts

A wait of a minute or more is saved: the run stops there, and cure carries it on when the time comes, even if cure restarted in between. When it carries on, the member, channel and message are looked up again, so a check after a wait sees the member as they are by then. That’s what makes “wait 3 days, then check for the Verified role” work. Shorter waits just pause, and are lost if cure restarts during them. You can see every run that’s waiting in Workflows → Waiting, and cancel any of them. A waiting run is dropped if its workflow is turned off, and cancelled if it’s deleted. If you edit a workflow while runs are waiting, they carry on with the steps it has now.

Ask with buttons

Ask a question and go a different way for each answer. The answer picked is {answer}, its number (1 to 5) is {answer.number}, and the ID of whoever pressed it is {answer.user}. Once answered, the buttons grey out and the message says who answered. Like long waits, questions survive restarts.
An ask step on the canvas and its settings

1 an ask step with an output per answer and one for no answer, 2 its settings.

Checks

A check tests things about what happened. The editor lists the ones that fit your trigger. Numbers compare with is over and is under; text with is, is not and contains. Text comparisons ignore upper and lower case.

Actions

Steps that can’t be undone

Ban, kick, jail, delete the message, move the message, clear messages and delete a channel each need I understand this can’t be undone turned on before the workflow saves. Until then the step says Needs confirming on the canvas.

Channels made earlier in a run

A channel field can point at the channel the run is about, a channel you pick, or something the run made: So “make a channel, then post in it” is two steps: Make a channel, then Send a message with The channel made earlier.

Variables

Variables fill in text when a step runs. Select the trigger to see the list for it. The member and server: {user.mention}, {user.name}, {user.display_name}, {user.id}, {server.name}, and the rest of the script variables. From the trigger: each trigger adds its own, for example: From the run:
Saved variables are shared with custom commands. A workflow can add to {mvar:warnings} and a custom command can show it, or the other way round. See every saved value in Custom commands → Variables.
A run’s own variables ({var:…}) last for the whole run, including after waits and questions. Saved ones last until something changes them. A server keeps up to 200 saved variables, and each member up to 50.

Web requests

Send a web request talks to another app: a spreadsheet, your own website, a game server. After it runs, {http.status} is the status (like 200), {http.body} the first 1,500 characters of the answer, and if the answer is JSON, each value is {http.json.<key>}, with dots for nested values: {http.json.user.name}. A status of 400 or more counts as failing, so If it fails can handle it.
cure refuses addresses on private networks (like 127.0.0.1 or 192.168.…), waits 8 seconds at most, doesn’t follow redirects, and lets each server’s workflows send 30 requests a minute. Don’t put secrets you wouldn’t share with your staff into a request: anyone who can edit workflows can see them.

Testing

Press Test in the top bar. Pick a channel, and for message or reaction triggers type some text or an emoji, then Run test. cure runs the workflow with you as the member:
  • Checks are real: it looks at your roles, the channel, the text you typed.
  • Nothing is sent, given, changed or saved. Waits don’t wait, and questions take their first answer.
  • The canvas lights up the path it would take. Steps it wouldn’t reach fade, and each check shows what it saw.
If you change the workflow after testing, run the test again.
A test run lighting up the path

1 Test, 2 the result: the path it would take, and what each check saw.

Runs, logs and waiting runs

The list page has three tabs:
  • Workflows: every workflow, with its trigger, how many steps and runs it has, when it last ran, and its on switch.
  • Waiting: runs paused at a wait or a question, when each one carries on, and a button to cancel it.
  • Recent runs: what happened, newest first: how many actions worked, which failed and why, and when a run stopped at a limit or is waiting. These are kept since cure last started.
The Waiting tab with one waiting run

A run waiting at a wait or question, with the button to cancel it.

Open a workflow and its overview shows its own recent runs too.

Limits

A run that reaches a limit stops, and its log says which one. The run limits also stop a path that loops back on itself forever.

Recipes

  1. Trigger: A member joins.
  2. Wait 3 days.
  3. Check: Member roles don’t include Verified.
  4. From Yes: Kick them, reason “Didn’t verify in 3 days”. Turn on I understand.
  5. From No: DM the member: Thanks for verifying, {user.name}.
To also stop the wait the moment they verify, make a second workflow: A member passes verification → Cancel waiting runs of the first one.
  1. Trigger: Someone uses another bot’s command, command </bump:…> pasted from Discord.
  2. React to the message: 👍.
  3. Give coins: 50.
  4. Remind them later: after 2h, “Time to /bump again”, ping them in the bump channel.
  1. Trigger: On a schedule, daily at 12:00 in your time zone.
  2. Pick at random, save as question, with one question per line.
  3. Make a forum post in your QOTD forum, title “Question of the day”, first message {var:question}.
  1. Trigger: A reaction is added, with a Check: Reaction is 🎫 and Channel is #get-help.
  2. Make a channel: name help-{user.name}, category Support, Only the member and cure can see it on.
  3. Change channel permissions: channel The channel made earlier, for your Helpers role, allow ViewChannel and SendMessages.
  4. Send a message in The channel made earlier: {user.mention}, tell us what's wrong.
  5. Wait 1 day, then Delete a channel: The channel made earlier. Turn on I understand.
  1. Trigger: A member joins.
  2. Wait 10 minutes.
  3. Ask with buttons in their DMs: “Want pings for game nights?” with Yes please and No thanks, waiting 1 day.
  4. From Yes please: Give a role: Game nights.
  5. From No answer: nothing, or a Note saying so for your staff.
  1. Trigger: A member is warned.
  2. Add to a variable: name warnings, add 1, kept for the member.
  3. Check: Any value or {variable} {mvar:warnings} is over 2.
  4. From Yes: Time them out for 1d, then Set a variable warnings to 0 for the member.
  1. Trigger: A ticket is opened.
  2. Send a web request: POST to your Google Apps Script or Zapier URL, body {"number": "{ticket.number}", "panel": "{ticket.panel}", "user": "{user.name}"}.
  3. From If it fails: Send a message in #staff-logs: Couldn't log ticket {ticket.number}: {http.status}.
  1. Trigger: On a schedule, daily at 18:00, only Fridays.
  2. Send a message in #announcements with your weekly design.
  3. Publish an announcement: The last one this run sent.

Workflows or custom commands?

Both are built from blocks without code, and they share saved variables. They work together: a workflow can Run a custom command, and a custom command’s buttons can do what a workflow can’t.

Troubleshooting

  • Is it switched On? Check the list.
  • Is it saved? The top bar says Unsaved changes until you press Save.
  • Are its steps linked to the trigger? Faded steps aren’t.
  • Look in Recent runs: “conditions did not match” means a check went down No. Run a Test to see what the check saw.
  • Things a workflow does never start another workflow, so a role given by one workflow won’t start another’s “a role is given”.
The run’s log says why. The usual reasons:
  • cure’s role is too low. Move it above the roles it gives, takes or manages, and above members it kicks, bans or renames.
  • A missing permission, like Manage Channels to make channels or Manage Messages to pin.
  • Something was deleted: a role, channel or saved design. Deleting a role or channel removes the steps that used it and links the steps around them.
  • The step needs something the event doesn’t have: Reply needs a message, Close the ticket needs a ticket.
The trigger starts when the bot answers the command. If the bot answers only to the person who ran it (a reply only they can see), Discord doesn’t show cure the answer either. Check the command name matches what the bot shows under its reply, and leave Bot ID empty unless you need it.
Check the schedule’s time zone. It’s set to your browser’s when you make it, and staff in other countries see the same zone. Times are wall-clock times there.
Its log says “stopped after 50 steps” or “one step ran 25 times”. Look for a path that links back on itself, or split a big workflow into two.