Edge Handle Reference
Every input and output handle has a type, and edges are colored by it. Two handles of the same color are compatible. Hovering a handle in the editor shows the same label and color listed here.
Primitive Types
Special Types
Object Types
Use an Extract node to pull individual fields out of an object.
User
A Twitch user.
| Field | Type | Notes |
|---|---|---|
user_id | string | Twitch user ID |
user_login | string | Username (lowercase) |
user_name | string | Display name |
color | string? | Chat color (hex) |
profile_image_url | string? | Profile image URL |
type | string? | "staff", "admin", "global_mod", or "" |
broadcaster_type | string? | "partner", "affiliate", or "" |
Triggers only guarantee user_id, user_login and user_name. Other fields may be absent depending on the trigger.
Event
A generic event envelope for flows that handle several event kinds on the same wire.
| Field | Type | Notes |
|---|---|---|
type | string | Event type identifier |
timestamp | number | When the event occurred (unix ms) |
payload | object | Event-specific data |
metadata | object? | Metadata |
Message
A simplified chat message: text, fragments and badges.
| Field | Type | Notes |
|---|---|---|
text | string | Full message text |
fragments | array | Text, emote, mention, and cheermote fragments |
badges | array | Sender's chat badges |
Chat Message
The full Twitch chat message: broadcaster and chatter info, message content, color, badges, cheer info and shared-chat source fields.
| Field | Type | Notes |
|---|---|---|
broadcaster_user_id / _login / _name | string | Channel where the message landed |
chatter_user_id / _login / _name | string | Who sent it |
message_id | string | Unique message ID |
message.text | string | Plain text |
message.fragments | array | Parsed fragments (text / emote / mention / cheermote) |
color | string | Chatter's color (hex) |
badges | array | { set_id, id, info }[] |
message_type | string | "text", "channel_points_highlighted", "power_ups_message_effect", etc. |
cheer | object | null | { bits } when the message includes Bits |
channel_points_animation_id | string | null | "simmer", "rainbow-eclipse", "cosmic-abyss" |
channel_points_custom_reward_id | string | null | Set when this message redeemed a custom reward |
source_broadcaster_user_* | string | null | Populated for shared-chat messages |
Redeem
A Channel Points custom reward. The core fields are always present. The optional settings are filled in when the reward is looked up from Twitch.
| Field | Type | Notes |
|---|---|---|
id | string | Twitch custom-reward ID |
title | string | Reward title |
cost | number | Point cost |
prompt | string | Description shown to viewers |
is_enabled | boolean? | Settings (lookup only) |
background_color | string? | Hex |
is_paused | boolean? | |
is_user_input_required | boolean? | |
max_per_stream_setting | object? | { is_enabled, max_per_stream } |
max_per_user_per_stream_setting | object? | { is_enabled, max_per_user_per_stream } |
global_cooldown_setting | object? | { is_enabled, global_cooldown_seconds } |
should_redemptions_skip_request_queue | boolean? |
Power-up
A custom Power-up: a Bits redemption configured in the Twitch dashboard. Community can read them but not create, edit or delete them, and there is no redemption queue, so unlike Redeem there is no fulfill or cancel.
| Field | Type | Notes |
|---|---|---|
id | string | Twitch power-up ID |
title | string | Power-up title |
bits | number | Cost in Bits |
prompt | string | Description shown to viewers |
redemptionId | string? | Set only on trigger payloads; absent on the data node |
is_enabled | boolean? | Settings (data node only) |
is_paused | boolean? | |
is_in_stock | boolean? | |
is_user_input_required | boolean? | |
background_color | string? | Hex |
max_per_stream_setting | object? | { is_enabled, max_per_stream } |
max_per_user_per_stream_setting | object? | { is_enabled, max_per_user_per_stream } |
global_cooldown_setting | object? | { is_enabled, global_cooldown_seconds } |
Tally
One entry of a List Tally output: how many times a value occurred in the source list.
| Field | Type | Notes |
|---|---|---|
value | string | The tallied value (or field value). Always a string: numbers and booleans are stringified |
count | number | How many times it occurred |
Alert Types
Alert Builder nodes create these and Alert Activator nodes consume them.
SubAlert
Subscription alert: { type: "sub", name, tier, months, message, voice?, extra?, assets, display_message?, tts_message? }.
GiftSub
Gifted subscription alert: { type: "gift-subs", name | null, recipient | null, tier, quantity, assets, display_message? }. name is null when the gift is anonymous and recipient is null for bulk announcements.
Cheer
Cheer alert: { type: "cheer", name | null, bits, message, voice?, extra?, assets, display_message?, tts_message? }.
Custom
Custom alert: { type: "custom", name?, data: Record<string, unknown>, assets, display_message? }.
Chatbox Event Payload Types
Each Twitch chatbox event emits its full payload as one typed object, so downstream check nodes and Select Event Variant can branch on it. Field names are camelCase.
Subscription
New subscription (no message).
| Field | Type | Notes |
|---|---|---|
userId | number? | Local user ID, when resolved |
twitchUserId | string | Twitch user ID |
username | string | |
tier | 1 | 2 | 3 | Mapped from Twitch's 1000/2000/3000 |
isGift | boolean |
Resub
Resubscription with a message.
| Field | Type | Notes |
|---|---|---|
userId | number? | |
twitchUserId | string | |
username | string | |
message | string | User-written resub message |
tier | 1 | 2 | 3 | |
cumulativeMonths | number | |
streakMonths | number |
Gift Sub
Gift sub batch (one or many subs at once).
| Field | Type | Notes |
|---|---|---|
gifterUserId | number? | Absent when anonymous |
gifterTwitchUserId | string? | Absent when anonymous |
gifterUsername | string | "Anonymous" when isAnonymous is true |
isAnonymous | boolean | |
giftCount | number | Number of subs in this batch |
tier | 1 | 2 | 3 | |
cumulativeTotal | number | Lifetime gifts to this channel; 0 when anonymous |
Raid
Incoming raid.
| Field | Type | Notes |
|---|---|---|
raiderUserId | number? | |
raiderTwitchUserId | string | |
raiderUsername | string | |
viewerCount | number |
Follow
New follower.
| Field | Type | Notes |
|---|---|---|
userId | number? | |
twitchUserId | string | |
username | string |
Channel Point Redeem
A custom-reward redemption.
| Field | Type | Notes |
|---|---|---|
userId | number? | |
twitchUserId | string | |
username | string | |
rewardId | string | Twitch reward UUID, used by redeem-id-equals checks |
rewardTitle | string | |
rewardCost | number | |
rewardPrompt | string | |
userInput | string | Text the viewer typed; "" when the reward has no input |
Dynamic Types
Array Types
Any Array<T> is shown as a lightened version of the inner type's color, labeled T[]. Arrays don't nest.
Custom Types
Your own object types, a name plus primitive fields (text, number, boolean or color), usable anywhere edges carry data. Each type gets its own Create and Break Apart nodes, and every variable store can hold single values or lists of them. See Custom Types.
A custom type gets its own color, the same on every handle that carries it, and is labeled with just its name. Lists of custom types use the lightened-array color.
Type Compatibility
- A handle connects to another handle of the same type.
- Any output connects to an
anyinput. - A
pulseoutput connects to most inputs, where it acts as a trigger signal. Array<T>connects toArray<T>. Arrays aren't unwrapped automatically.- A list input (the List nodes' and For Each's
listhandle) accepts any list type but never a single value. To use a list variable, wire the variable's node, not a Text node holding its name. When you open a flow, any saved connection that no longer matches is removed and the editor tells you how many. - A custom type connects only to the same custom type.
The editor blocks incompatible connections and shows an inline error.