Stream Kit Docs
API ReferenceYouTube

Chat Message

YouTube trigger: youtube:youtube:chat:chat-message

Chat Message

Trigger IDyoutube:youtube:chat:chat-message
PluginYouTube
CategoryChat

Variables

Copy variables into handler fields using {variableName} syntax.

{user}{userId}{message}{role}{raw}{channelId}{channel}{liveChatId}{broadcastId}
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: test-author-id

{message}
string

Full message text from the event.

Example: Test message from Stream Kit

{role}
string

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

Example: everyone

{raw}
object

Raw platform chat message object (JSON).

{channelId}
string

YouTube channel ID for the connected account.

{channel}
string

Channel login or display name where the event occurred.

{liveChatId}
string

YouTube live chat ID for the active broadcast.

{broadcastId}
string

YouTube broadcast (stream) ID.

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.

On this page