Roadie

Find the donor’s viewer action

Automation · 3 min read ·

Finds which viewer made a donation, with how sure Roadie is, for the steps after it.

Find the donor’s viewer is the donation.find_viewer Automation action. Finds which viewer made a donation, with how sure Roadie is, for the steps after it.

Availability: This step has no switch of its own. It works wherever donations reach Automation. Before you start: Create or open an Automation flow that starts on a donation, or on another event that names a person, such as a merch gift.

Options and starting values

  • donor — text; maximum 500 characters; accepts fill-ins. The editor calls it Donor name. On a donation it starts with {donor}; on a merch gift, {gifter}; anywhere else it starts empty.

Before saving: Fill in the donor name if the trigger did not supply one.

How it finds the viewer

The step tries three things, in order:

  1. A name you mapped to a viewer on the Donations page.
  2. A viewer whose own Twitch name is the donor name.
  3. Roadie’s AI, reading who was chatting around the time of the donation.

When Roadie is sure, it links the donation to that viewer on the Donations page too. If your currency already pays for donations, that link pays the viewer as well, so do not also give currency in this flow.

In a flow

Name this step, for example donor, so later steps can use what it found. Then add an If that checks {step.donor.confidence} before paying anyone, so nobody is paid on a guess. Inside it, add Give or take currency and pick From the step donor: viewer as Who.

In tests: New Find the donor’s viewer steps start at Apply. A test finds the viewer but never links the donation to them.

Values for later steps

This action exposes these values to later steps. Replace <name> with the step name shown in your flow.

  • {step.<name>.viewer} (person) — the viewer it found. Steps that are about a person can pick it.
  • {step.<name>.confidence} (number) — how sure Roadie is, from 0 to 100. 0 when nobody was found.
  • {step.<name>.found} (flag) — true when it found someone.
  • {step.<name>.how} (text) — how it knows: person, alias, exact, agent, or none.
  • {step.<name>.reason} (text) — one sentence that says why.

If the step fails

The run log records the failed step and its reason. The step fails when the donor name comes out empty, or when Roadie cannot look the donor up just then. Finding nobody is not a failure: the step finishes with found false. The step’s Stop the run if it fails setting decides whether later steps run.

Browse all actions · Use fill-ins