Only applies when type is "toolCallCount" or "any". How many tools the agent must have called before sending the message.
toolNames
string[]
Only applies when type is "toolName" or "any". Tool names that trigger the message as soon as they are invoked.
match
"exact" \| "prefix"
How to compare against toolNames. Default "exact". With "prefix", e.g. "api_" activates for api_get_orders, api_search, etc.
type
Meaning
toolCallCount
Fires after N tool calls (uses minToolCalls).
toolName
Fires when the agent calls a tool whose name is in toolNames.
any
Fires on either of the two conditions above.
message (object) — what is sent
Field
Type
Description
enabled
boolean
Whether to send a text message (you can disable it and send only a sticker).
mode
"fixed" \| "ai"
"fixed" sends literal text; "ai" generates it with AI based on a prompt.
fixedText
string
Literal text to send (when mode is "fixed").
aiPrompt
string
Instruction for the AI that generates the message (when mode is "ai").
sticker (object) — optional sticker
Field
Type
Description
enabled
boolean
Whether a sticker is sent alongside the message.
url
string
Sticker URL (when enabled is true).
Notes
owners must be sent as valid emails of users in the workspace
channelId and phoneNumber can be sent as a string or an array
in read responses, comunicationChannel.channelId and comunicationChannel.phoneNumber are always returned as arrays
Passing systemPrompt here creates a new entry in the history. If you need more control (edit text, view versions), use the dedicated prompt and versions endpoints.