Automations

Flows

What a Flow is (an event, a few nodes and at least one action) and how you organize and manage your Flows on the Automations page.

A Flow is one automation: when something happens, it does exactly what you told it to. Every chat command is a Flow. So is an alert on a sub or a cheer, a reaction to a channel point redeem, or a message posted on a timer. You decide when each one runs and what it does. StreamWizard then runs it every time, within moments, with no code needed.

You manage your Flows on the Automations page. Building one, wiring nodes together on a canvas, has its own page: Flow Builder.

What a Flow is made of

Every Flow has three ingredients:

  • One Event starts it. You pick it when you create the Flow, and any event works. That can be a follow, a cheer, a chat message or going live on a connected platform. It can also be something on one of your overlays, or a timer you set. It hands your Flow everything it knows: who did it, what they said, how many Bits, and so on.
  • A handful of Nodes check and reshape that information, with whatever checks you want.
  • One or more Actions at the end do something real, on the same platform or any other one.

Event happens → Nodes check it → Action runs

Nodes and Actions are explained on the Flow Builder page. When StreamWizard supports a new platform, its events and commands show up in the same lists you already know.

A cheer can post a message on Discord. A raid can trigger a Twitch command. An alert can play only for cheers over 500 Bits. A sub can add five minutes to your subathon countdown, and the raffle wheel stopping can announce the winner in chat.

If you can describe the "when this, then that" in a sentence, there's a good chance you can build it as a Flow.

Folders and Flows

Your Flows live on the Automations page, grouped into Folders: one for chat commands and one for Collectable rewards, for example. Create a Folder with New folder (top right) and add your Flows to it. The page has two more tabs, Constants and Macros (see Constants & Macros), and opens on the tab you used last.

The Automations page with two Folders, Incoming Raid and Rewards. The published Flows show a green LIVE marker bottom left and the pause button; the unpublished copy next to one shows the red Delete button, the hammer and the Publish button instead

Each Folder's header has a pencil to rename it, Add Flow, and an arrow to collapse it out of the way. An empty Folder also gets a red trash button to delete it. Under its cards, Total flows says how many Flows the Folder holds, and a Folder with many Flows shows them page by page.

Automations page → Folder → Flow → Nodes & Connections

Add Flow asks for a Flow name, the Platform and the Event type, then opens your new Flow in the Flow Builder. Depending on the event, it asks for one more thing:

  • A trigger. Some events, like a chat message, ask for a Trigger type and Trigger text. Only a matching text starts the Flow, so a chat command doesn't run on every message in your chat. Upper and lower case must match.
    • same: the text is exactly the trigger text.
    • startswith: the text begins with the trigger text. Use it for commands that take parameters, like !so @name: the words after the command reach your Flow as Parameter 1 to 3 (see Events).
    • contains: the trigger text appears anywhere in the text, at least 3 characters.
  • An interval. Events that run on a schedule, like a timer, ask for Minutes between triggers, at least 5. Good for a reminder in chat every 30 minutes.

The Flow's card then shows the trigger or the interval next to its event, like startswith: !so or every 30m.

Each Flow card has a few buttons. Some only show up while the Flow is unpublished:

  • Drag handle (the dots left of the name): drag the Flow onto another Folder to move it there.
  • Flow settings: rename the Flow or move it to another Folder. On an unpublished Flow you can also change its Platform, Event type and trigger. A published Flow keeps those locked: unpublish it first, change them, then publish it again. Flow settings also has the Share button for the Flow Library.
  • Duplicate: makes an unpublished copy of the whole Flow, named "(copy)", in the same Folder. Handy for a set of similar Flows, like chat commands: duplicate one, change the copy's trigger text or a value inside it, and publish it.
  • Unpublish (the pause icon, only on a published Flow): switches the Flow off. Nothing is lost, and you can publish it again any time.
  • Publish (only on an unpublished Flow): switches the Flow on, after the publish check.
  • Open in Flowbuilder (only on an unpublished Flow): opens the Flow Builder. A published Flow can't be edited: unpublish it, or duplicate it and edit the copy.
  • Delete (red, bottom left, only on an unpublished Flow): a live Flow can't be deleted, which also keeps you from removing one by accident.
  • LIVE (bottom left of a published Flow, with a green dot): the Flow is on and runs whenever its event happens. A card without it is unpublished, so you can tell them apart at a glance.
  • Permission icon (top-right corner of a published Flow's card): shows up when a Flow's bot permissions have a problem. See The permission icon on Flow cards.

When you change an unpublished Flow's Platform or Event type, Flow settings warns you first. Read event data nodes are matched to the new event's fields by name where possible. Fields without a match are cleared, so check those nodes in the Flow Builder afterwards.

CAUTION: Changing platform or event type remaps event data nodes by field name when possible. Unmatched fields are cleared and may need to be reconfigured in Flowbuilder.

Finding a Flow

Once you have a lot of Flows, scrolling for one gets old fast. Click Search (top right) to filter your Flows by Name, Platform and Event type. Name matches anywhere in the name, and Event type works once you pick a Platform. Clear search brings every Flow back.

The Automations page's Search filter: Name, Platform, and Event type, with Search and Clear search buttons

Building a Flow

A new Flow opens straight in the Flow Builder; an existing unpublished one opens with the hammer. That page walks through the screen, how nodes connect, and how the builder tells you what needs fixing.

Publishing always happens here on the Automations page. The Publish button in the Flow Builder saves your Flow and brings you back here, where the publish check runs.

Don't want to start from scratch? The Flow Library has ready-made Flows other streamers shared, and Use this flow puts a copy in one of your Folders.

Permissions on publish

Every platform a Flow uses has to be connected on Connect Platforms in the profile menu (see Account). That's the platform of its event, of every Command and Retrieve in it, and of every Collectable it gives, spends or reads. If one isn't, publishing stops and tells you which one to connect. Disconnecting a platform later unpublishes the Flows whose event, Commands or Retrieves use it.

Overlays are the exception: there's nothing to connect, but a Flow that uses them needs at least one overlay. Deleting an overlay unpublishes the Flows whose Commands or Retrieves use it; Flows that only listen to its events stay published.

For a Flow to work, someone has to be allowed to do what it does. Every platform has its own way of deciding who may do what, but in practice it comes down to two kinds of permission:

  • Permissions you give StreamWizard. You approve them on the platform's own screen, and from then on StreamWizard may read or do that thing on your account. Twitch works this way: it calls them scopes, and reading your ad schedule or sending chat announcements are two examples.
  • Permissions of the StreamWizard bot. On some platforms StreamWizard acts through a bot that is a member of your space there. There is no approval screen: the roles and settings you set up on the platform decide what the bot may do. Discord works this way: the bot lives in your server, and its roles and each channel's settings decide what it may do.

A platform can use one kind, both, or neither: OBS Manager and your overlays need no permissions at all. When you publish, StreamWizard checks the permissions you give StreamWizard first, then the bot's permissions, then shows the usual Publish flow? confirmation.

Permissions you give StreamWizard (example: Twitch)

A Flow needs this kind of permission in two places. The event that starts it needs one: an Ad Break Begin Flow needs to read your ad schedule. So does every Command in it, on the account that performs the Command. Sending a chat announcement, for example, needs the permission to announce.

If one is missing, publishing stops with Additional permissions are required to proceed:

The dialog that asks for extra permissions, with Cancel and Grant buttons

Grant takes you to Twitch's own permission screen. Read what it asks for, approve it, and you come back to StreamWizard, which carries on publishing your Flow. If the Flow needs permissions on more than one connected account, you go through them one after the other.

Only the account owner can grant permissions. If you work on someone else's account as a Delegate, ask the account owner to do it.

Permissions of the StreamWizard bot (example: Discord)

Here StreamWizard checks whether the bot really has the permissions the Flow needs, so a Flow doesn't quietly sit there doing nothing. Two things are checked:

  • The event. The platform only tells StreamWizard about something (a message, a new thread, a ban) if the bot is allowed to see it. Message Sent, for example, needs the View Channel permission on your channels, and the ban events need View Audit Log on your server. The Flow is fine as long as the bot has the permission on at least one matching channel. Channels where it is missing are listed as a heads-up.
  • The Command. Each Command needs its own permission: Send Messages to send a channel message, Manage Channels to update a channel, Ban Members to ban someone, and so on. The bot needs it on the exact server, channel or thread you picked in the Command.

If everything checks out, publishing continues as usual. If not, a dialog titled Our bot may be missing permissions opens:

The publish dialog: a red line for something that will not work, a blue line as a heads-up, and the Cancel, Publish anyway and Recheck buttons
  • Red lines (with a red triangle) are things that will not work. A red line can also say a Command points to something that no longer exists. Pick it again in the Flow.
  • Blue lines (with a blue info icon) are a heads-up: the Flow works, but not everywhere. Show the 1 affected lists those channels. You can ignore these if you don't need the Flow to work there.
  • To fix it, in Discord open Server Settings → Roles, give the bot the permission the dialog names, then come back.

Besides Cancel, the dialog has two buttons:

  • Recheck (the orange one) looks at the bot's permissions again, right after you changed a role or a channel's permissions.
  • Publish anyway publishes the Flow despite the problem. Use it only when you are sure the permission is in place and the check is wrong. That can happen when StreamWizard couldn't sync the bot's permissions correctly.

The permission icon on Flow cards

Roles and channel permissions can change after you publish. So every time you open the Automations page, your published Flows that depend on a bot are checked again. A Flow with a problem gets a small icon in the top-right corner of its card. The card also gets a slightly orange outline, so you spot it in a long list. Hover the icon to read what is wrong: it's the same explanation as in the publish dialog.

A published Flow card, marked LIVE, with a red warning icon in the corner and the hover text explaining what is missing
  • A red warning triangle means something in the Flow will not work. Either a Command's target lacks the permission it needs (or no longer exists), or the event can't reach StreamWizard anywhere.
  • A blue info icon means the Flow works, but not everywhere, for example the bot can't see one of your channels.

Give the bot the permission in Discord (Server Settings → Roles), then come back to the Automations page. The icon goes away by itself once the check passes. Unpublished Flows show no icon, since they aren't running; they get the dialog when you publish them. The permissions you give StreamWizard are only checked when you publish.

With your mods

Helpers you invited through Shared Access can build Flows with you. What they can do depends on their role:

What they can do Analyst Moderator Supermod Full access
See Flows
Create, edit, delete, publish
Publish Flows with risky Commands

Risky Commands are things like bans, deletes or resetting an overlay. A Moderator can still build and save a Flow with them; a Supermod or Full access publishes it.

Good habits

  • Give every Flow one job. A Flow that does one thing is easy to test, easy to pause, and easy to understand a month later. Need a variation? Duplicate the Flow and change the copy.
  • Name things for future you. Name Folders after what they are for (chat commands, alerts, Collectables) and Flows after what they do. Then a search or a glance at the list tells you which one to open.
  • Nothing runs until you publish. Saving only keeps your draft. A Flow starts listening for its event when you publish it.
  • Try it for real. After publishing, trigger the event yourself and watch what happens, before you rely on the Flow. Start with a harmless action, like a chat message, and swap in the real one once it works.
  • Pause instead of deleting. Unpublish switches a Flow off without losing anything.
  • Try big changes on a copy. Duplicate a working Flow before you rebuild it. Publish the copy once it works, and unpublish the old one.
  • Share values through Constants. A value used by several Flows, like an invite link or a "maintenance mode" switch, belongs in a Constant, so you change it in one place. See Constants & Macros.
  • Keep an eye on the permission icon. After you change the bot's roles, glance at your published Flows. A permission icon on a card tells you something stopped working.

Word list

Word What it means
Automations page The page where you manage your Folders and Flows, Constants, and Macros.
Folder A group of related Flows.
Flow One automation "recipe": an event, nodes and actions, built in the Flow Builder.
Event The thing that starts a Flow: something happening on a connected platform or one of your overlays, or a timer.
Trigger The text a chat message has to match (same, startswith or contains) before a chat-message Flow runs.
Node One step in a Flow. See Flow Builder.
Action A node that does something real. See Flow Builder.
Command One specific thing StreamWizard can ask a connected platform to do or report back: see the Commands page.
Constant A value you set up once, on the Automations page, and reuse in any Flow: see Constants & Macros.
Macro A saved bundle of nodes you can drop into any Flow: see Constants & Macros.
Publish Switching a Flow on so it starts reacting to its event. Happens on the Automations page, after StreamWizard checks the permissions the Flow needs.
Scope A permission you give StreamWizard on a platform by approving it on that platform's own screen (Twitch works this way). Asked for only when a Flow needs it.
Publish check The check that runs when you publish: first the permissions you give StreamWizard (scopes), then the bot's permissions. See Permissions and the publish check.