Skip to content

Flows

Build Twitch chat flows in Bearsong: when a message or stream moment matches your conditions, the bot replies, waits, sets a value or runs another flow.

Twitch botLast updated

Flows let the bot react to particular messages in your own way. When a chat message matches your conditions, such as a viewer asking "when is the next stream", the flow runs its steps: a fixed reply, an AI reply, a short wait or another flow.

Where to find it#

Open Bot > Flows. Choose a flow to open it in the flow editor.

Before you start#

  • Turn on the Twitch bot in Settings > Connections and connect your Twitch channel.
  • Chat flows reply through Twitch chat AI. In Bot > Commands > Twitch chat AI, switch on Twitch chat AI is on and set Reply trigger to When an AI flow matches, otherwise when mentioned or When an AI flow matches. The Flows page warns you if this is not set.

Build a flow#

  1. Choose New flow, or Create your first flow if you have none yet.
  2. On Trigger, give it a Flow name and choose how its conditions combine under Run the flow when: All of these are true or Any of these is true.
  3. Choose Add condition, then pick what to Check, for example Message contains with the words to look for.
  4. Add a step, such as Send a reply with the text to post.
  5. Make sure Flow is turned on, then choose Create flow.
  6. Back on the Flows page, choose Try on the flow and type a test message to see whether it would run.

Conditions#

A flow needs at least one condition. Choose what each one checks:

CheckWhat it looks at
Message contains, is exactly, starts with, ends withThe words of the chat message. Tick Match capital letters to make it case sensitive.
Message matches a patternA pattern of up to 200 characters, for advanced matching.
Viewer roleWho sent it, such as is at least VIPs and above.
Stream statusLive, Offline, or Live or offline.
Random chanceA Chance (per cent) from 0 to 100, so a flow runs only some of the time.
Time of day (UTC)A window between From (UTC) and Until (UTC). A window can cross midnight.
Stream momentA Twitch event instead of a message, such as Ad break starts or Watch streak shared.

Tick Run only when this is not true to turn any condition round. Choose Add group for a set of conditions with its own rule, so you can combine "all of" and "any of" in one flow.

Steps#

Steps run in order, top to bottom. Move a step with its move up and move down buttons.

StepWhat it does
Send a replyPosts a fixed Reply of up to 500 characters. A flow can have one reply step.
Send an AI replyAsks the AI to write the reply from your Instructions for the AI and the message.
Set a variableSaves a Value under a Variable name for later steps to use as a placeholder.
WaitPauses for up to 5 seconds before the next step.
Run another flowRuns a Flow to run next. Flows that would loop back to this one cannot be chosen.

Replies can use placeholders such as {user}, {message}, {broadcaster}, {game} and {uptime}. The Placeholders list in the editor shows every one you can use.

Advanced settings#

Open Advanced on the Trigger to set:

  • Priority: 0 to 100, starting at 0. When more than one flow matches a message, the highest runs and the others do not.
  • Cooldown (seconds): 0 to 3600, starting at 5. How long before the same viewer can run this flow again.
  • Run another flow afterwards, and Wait before the next flow (seconds) of up to 300.

Test and review your flows#

  • Try on a flow, or Try a chat message in the menu for all flows, runs a practice message with a viewer name and role you choose. Tick Pretend the stream is live to test live-only flows. Nothing is sent to your chat.
  • Activity shows how a flow has done over the last 7, 14, 30 or 90 days: messages checked, times it ran, different viewers and AI replies.
  • Turn a flow on or off with its switch in the On column. It saves straight away.

Good to know#

  • Every reply a flow sends counts towards your Twitch chat AI allowance, including fixed replies.
  • Send an AI reply writes from your instructions and the message only. It does not use the tone, topics or memory you set in Twitch chat AI, so put anything it needs into Instructions for the AI.
  • Flows that use a Stream moment run on Twitch events, not chat messages, and cannot send an AI reply.
  • The Twitch chat AI Wait between replies to one person (seconds) and Replies per minute across everyone limits apply to flows too.

A flow is not running#

  • Check the Twitch chat AI is on switch is on and that Reply trigger is one of the two flow choices.
  • Check the flow is switched on, then use Try with the exact message to see which condition fails.
  • Check another flow with a higher Priority is not matching first.
  • Check the flow's cooldown and the Twitch chat AI limits.

Open flows