Stream Kit Docs
API ReferenceTwitch

Chat Message

Twitch trigger: twitch:twitch:chat:chat-message

Chat Message

Trigger IDtwitch:twitch:chat:chat-message
PluginTwitch
CategoryChat

Variables

Copy variables into handler fields using {variableName} syntax.

{user}{userId}{message}{role}{msg}{broadcasterId}{channel}
NameTypeDescription
{user}
string

Display name of the user who triggered the event.

Example: TestUser

{userId}
string

Platform user ID of the chatter or actor.

Example: 999001

{message}
string

Full message text from the event.

Example: !test hello from stream kit

{role}
string

Role of the user (for example everyone, mod, broadcaster, vip, subscriber).

Example: everyone

{msg}
object

Structured chat message object (JSON) with badges, emotes, flags, and metadata.

{broadcasterId}
string

Broadcaster channel ID for the connected account.

{channel}
string

Channel login or display name where the event occurred.

Conditions

ConditionDescription
MessageMatch message text (starts with, ends with, contains, equals). Leave empty to always match.
UsernameMatch chatter username (equals, contains, starts with, ends with). Leave empty to always match.
RoleOnly fire for users with the selected role (mod, broadcaster, VIP, subscriber, artist, founder).
CommandMatch chat commands (supports <arg> placeholders). Leave empty to match all messages.
RewardRestrict to a specific channel point reward. Leave empty to match any reward.
Minimum BitsMinimum bit cheer amount required on the message.
Minimum Hype AmountMinimum hype chat amount (localized currency).
Minimum Hype LevelMinimum hype chat level (1–4).
CheerOnly fire when Cheer is enabled on the message (checkbox).
RedemptionOnly fire when Redemption is enabled on the message (checkbox).
Hype ChatOnly fire when Hype Chat is enabled on the message (checkbox).
First MessageOnly fire when First Message is enabled on the message (checkbox).
Returning ChatterOnly fire when Returning Chatter is enabled on the message (checkbox).
HighlightOnly fire when Highlight is enabled on the message (checkbox).
ReplyOnly fire when Reply is enabled on the message (checkbox).
Reply UserMatch the username of the parent message in a reply thread.
Reply MessageMatch the text of the message being replied to.

On this page