Inline Variables
Variables
Here you will find a list of all the available inline variables that can be used in your Flows. These variables can be used in any Step that supports inline variables, such as the Text Step, Math Step, and more.
General Variables
{input}
- Description: The flow input (the entire chat message if triggered by chat).
- Example: “Your message was: {input}”
{last_step}
- Description: The output of the last step.
- Example: “The result of the previous Step was: {last_step}”
Sender Information
{sender.name}
- Description: The Name of the Sender.
- Example: “Hello, {sender.name}! Welcome to the stream.”
{sender.category.name}
- Description: The category name of the Sender.
- Example: “You were last seen playing: {sender.category.name}”
{sender.category.banner}
- Description: The category banner of the Sender.
- Example: “Your category banner is: {sender.category.banner}”
{sender.followers}
- Description: The follower count of the Sender.
- Example: “You have {sender.followers} followers.”
{sender.slug}
- Description: The Slug of the Sender (usually just username lowercase).
- Example: “Your profile slug is: {sender.slug}”
{sender.id}
- Description: The Channel ID of the Sender.
- Example: “Your channel ID is: {sender.id}”
{sender.user.id}
- Description: The User ID of the Sender.
- Example: “Your user ID is: {sender.user.id}”
{sender.user.bio}
- Description: The bio of the Sender.
- Example: “Here’s what your bio says: {sender.user.bio}”
{sender.stream.viewers}
- Description: The viewers of the Sender’s stream (if live).
- Example: “Current viewers: {sender.stream.viewers}”
{sender.stream.title}
- Description: The title of the Sender’s stream (if live).
- Example: “Stream title: {sender.stream.title}”
{sender.stream.uptime}
- Description: The uptime of the Sender’s stream (if live).
- Example: “Your stream has been live for: {sender.stream.uptime}”
Streamer Information
{streamer.name}
- Description: The Name of the Streamer.
- Example: “Our beloved streamer is {streamer.name}.”
{streamer.category.name}
- Description: The category name of the Streamer.
- Example: “Streaming in the category: {streamer.category.name}”
{streamer.category.banner}
- Description: The category banner of the Streamer.
- Example: “Streamer’s category banner: {streamer.category.banner}”
{streamer.followers}
- Description: The follow count of the Streamer.
- Example: “We have reached {streamer.followers} followers!”
{streamer.slug}
- Description: The Slug of the Streamer (usually just username lowercase).
- Example: “Visit the streamer’s profile at: /{streamer.slug}”
{streamer.id}
- Description: The Channel ID of the Streamer.
- Example: “Streamer’s channel ID: {streamer.id}”
{streamer.user.id}
- Description: The User ID of the Streamer.
- Example: “Streamer’s user ID: {streamer.user.id}”
{streamer.user.bio}
- Description: The bio of the Streamer.
- Example: “About the streamer: {streamer.user.bio}”
{streamer.stream.viewers}
- Description: The viewers of the Streamer’s stream (if live).
- Example: “Total viewers right now: {streamer.stream.viewers}”
{streamer.stream.title}
- Description: The title of the Streamer’s stream (if live).
- Example: “Today’s stream title: {streamer.stream.title}”
{streamer.stream.uptime}
- Description: The uptime of the Streamer’s stream (if live).
- Example: “Streaming for: {streamer.stream.uptime}”
Target Information
{target.name}
- Description: The Target Chatters Name if specified, or the Sender’s Name otherwise.
- Example: “Target user: {target.name}”
{target.category.name}
- Description: The category name of the Target.
- Example: “Target’s category: {target.category.name}”
{target.category.banner}
- Description: The category banner of the Target.
- Example: “Target’s category banner: {target.category.banner}”
{target.followers}
- Description: The follow count of the Target.
- Example: “Target has {target.followers} followers
{target.slug}
- Description: The Slug of the Target (usually just username lowercase).
- Example: “Check out {target.slug}‘s profile for more info.”
{target.id}
- Description: The Channel ID of the Target.
- Example: “Channel ID of the target: {target.id}”
{target.user.id}
- Description: The User ID of the Target.
- Example: “User ID for targeted user: {target.user.id}”
{target.user.bio}
- Description: The bio of the Target.
- Example: “Here is what {target.user.bio} says.”
{target.stream.viewers}
- Description: The viewers of the Target’s stream (if live).
- Example: “Current viewer count for {target.name}: {target.stream.viewers}”
{target.stream.title}
- Description: The title of the Target’s stream (if live).
- Example: “Streaming now: ‘{target.stream.title}‘”
{target.stream.uptime}
- Description: The uptime of the Target’s stream (if live).
- Example: “{target.name} has been live for {target.stream.uptime}.”
Specialized Variables
{args.NUMBER}
- Description: The arguments passed to the command,
{args.1}
is the command itself. - Example: “You entered the command: {args.1} with arguments: {args.2}, {args.3}, etc.”
{var.VARIABLE_NAME}
- Description: A local or global variable,
{var.wins}
is the contents of the variable wins. - Example: “The current win count is {var.wins}.”
{rand(MIN,MAX)}
- Description: A random number between MIN and MAX.
- Example: “Your lucky number today is {rand(1,100)}.”
{randFrom(WORDS)}
- Description: Picks a random word/phrase from a comma-separated list of words/phrases.
- Example: “Your random selection is: {randFrom(apple,banana,orange)}.”
{fetch(URL)}
- Description: Makes a web request to the specified URL. The entire response is returned.
- Example: “Fetching data from: {fetch(https://api.example.com/data)}”