Roadie

Use fill-ins in Roadie Automation

Automation · 7 min read ·

Put values from a command, event, webhook, variable, or earlier action into a later action. Find out why a fill-in may be empty or unavailable.

A fill-in is a name in braces inside an action's text. When the action runs, Roadie puts the current value there. A command can say Thanks, {user}!; a raid can say Welcome, {user}, and thanks for bringing {viewers} viewers!. The values available depend on what started the run and which earlier steps have finished.

The editor's fill-in list is specific to the trigger you are editing. Choose from that list when you can; it marks values that do not work in this flow. What you can edit depends on your channel's access.

Pick a value the trigger actually carries

Open a trigger in Automation, add an action with a text field, and type { to see the fill-ins offered there. The same field names can be used in Only when checks. The editor shows event fields for the selected event, not a general list of every field Roadie knows.

StartExamplesWhere the value comes from
Chat command{user}, {1}, {args}, {message}Who typed it, the first word after it, all words after it, and the whole chat line. {2} through {9} are also available.
Channel point reward{user}, {reward}, {cost}, {input}The person, reward name, points spent, and optional text they entered.
Timer{run_number}, {lines_since}, {scheduled_for}How often this timer has run, chat activity since its last run, and the due time for clock or after-live timers.
EventVaries: a raid has {user} and {viewers}; a cheer has {user}, {bits}, optional {message} and {words}The event's own typed fields. A donation has charity fields such as {amount} and {source}, not a chat command's {args}.
Webhook{caller}, {pressed_by}, plus the fields you defineThe authenticated call and the values in its JSON body.

Some events have no person, and some fields are optional. An anonymous gift may have no named gifter; a redemption may have no text input. A timer does not carry a {user}. If you need a person for a viewer-specific action, choose a trigger that carries one or use a person produced by an earlier step. The action picker grays out steps that need a viewer when the flow has nobody to act on.

Channel values any step can use

Some fill-ins do not depend on the trigger. A few useful ones:

  • A timer's time left: every timer and countdown has {countdown.<name>.left}, where <name> is the timer's name in lower case with spaces and other marks as _. A timer named Finish the game is {countdown.finish_the_game.left}, so a !timeleft command can say Chris has {countdown.finish_the_game.left} to finish the game!. The same timer also has .clock (like 1:42:05), .seconds_left, .state (running, paused, stopped or finished) and .name. Renaming the timer changes its fill-ins. An unknown name, or Countdowns & timers switched off, reads empty.
  • Watch time as a number: {user.watchtime} reads like “41 days 6 hours”, which a check cannot compare. {user.watchhours} gives whole hours, so a check can ask for “at least 1000”. On a command, {touser.watchhours} is the same for the person named.
  • Numbers with commas: {commas 1234567} writes 1,234,567. It can hold another fill-in, like {math} does. Decimals stay, and a value that is not a number reads as it is.
  • Giveaways: {giveaways.open} names the open giveaways and raffles (empty when none are open), with {giveaways.count} and {giveaways.link} beside it.
  • Socials: {socials} reads your Socials list, as “YouTube @you · TikTok @you”, and is empty when the list is empty.

An event can carry links of its own too. Poll opened has {poll.link}: a community poll's page on your viewer site, empty for a poll voted on in chat.

Give a webhook fields of its own

When you create a webhook, add field names and their kinds: text, number, true/false, or person. The caller sends those names in JSON. If a webhook defines boss as text and receives {"boss":"Margit"}, an action can say Boss defeated: {boss}. The editor's Stream Deck panel gives a sample body for that webhook; replace the sample value in the caller, and keep the webhook secret private.

A Roadie webhook's Stream Deck panel showing a sample JSON body with a boss field and the command that calls this webhook.
A webhook's sample body shows the fields its caller can send.

The webhook's request log distinguishes a completed run from a refused call (wrong secret, off switch, rate limit or cooldown) and a rejected call (missing or wrongly typed field). Call a webhook from a Stream Deck gives the full calling steps.

Reuse a value from an earlier step

An action that returns a result can expose it to later steps. Give that action a short label, then use {step.<label>.<output>} after it. For example, a Call an API step labeled lookup can expose {step.lookup.status} to the steps after it. The editor offers the actual output names for the action you chose. A step cannot read a later step's result.

Call an API has a special latest-result set: {api.status}, {api.ok}, {api.text}, and fields inside a JSON response such as {api.json.fact}. If you call another API later, api now means the later call. Label the first step and use its step.<label>... result when you need both. An API call’s per-step In tests default is Skip, but the trigger editor’s Run test applies all actions for real, so a test can call the outside service.

Remember values between runs

An action can write a channel variable, such as deaths, then a later run can read {var.deaths}. Variables can hold a number, text, true/false, a list, or JSON. A list can expose its length or an item by path. A viewer key remembers a value about one person; read it with a fill-in such as {user.meta.favorite_color} when this run has that person. A counter's {count hats} form reads the corresponding number variable. The Variables page lets you add defaults and see what uses each value.

Use viewer keys only for information you intend the action to reveal. Roadie's standard viewer fill-ins carry account or channel activity information; private notes, nicknames and AI bios are not event fields. The editor marks fields that disclose viewer information.

When text does not look right

  • Empty value: the source did not have it, an optional field was absent, or a lookup failed. Check the trigger's sample and a real recent run.
  • Literal braces in chat: a plain chat response did not recognize that fill-in. Use the editor's offered list, and check whether the value belongs to a particular starter or feature command.
  • Step value unavailable: the producing step may be later in the flow, disabled, skipped, or failed. Check the Stream log and its label.
  • Wrong person: {user} is the person carried by this trigger. A command's {touser} means the person named after the command, or the asker when nobody was named.

Saved {secret.<name>} values are only for a Call an API step, in its address, headers or body, and only for the host with which the secret was saved. Never put a secret in a chat line, Stage text, or a public webhook example. Use the step's saved-secret setting instead of pasting credentials into an action.

For the exact fields each built-in event carries, see the event reference. The filterable fill-in reference shows the static tokens and where each is offered. The action reference lists the steps that can produce later results, and the command reference separates starter commands from feature-owned commands.