StageTriggeredMessageCreate
A message automatically sent when a lead enters a specific pipeline stage. Scheduled by a background worker after the stage change.
product_idProduct Idrequired
ID of the product (workspace) that owns this record. Most endpoints scope access by product.
stage_idStage Idrequired
ID of the pipeline stage.
agent_idAgent Idrequired
ID of the agent (a configured AI assistant / bot persona) this record belongs to.
is_activeIs Active
Whether the trigger is active.
Default value:
trueconfig object
The trigger configuration (delay and message source).
delay_minutesDelay Minutes
Minutes to wait after the stage change before sending.
Default value:
0source objectrequired
Specifies the content of a message to send, by reference to exactly one source — raw text, a prompt, a prepared message, a WABA template, or file(s).
text object
anyOf
- string
- null
string
prompt_id object
anyOf
- integer
- null
integer
prompt_version_id object
anyOf
- integer
- null
integer
prepared_message_id object
anyOf
- integer
- null
integer
waba_template_id object
anyOf
- integer
- null
integer
file_idsinteger[]
caption object
anyOf
- string
- null
string
StageTriggeredMessageCreate
{
"product_id": 0,
"stage_id": 0,
"agent_id": 0,
"is_active": true,
"config": {
"delay_minutes": 0,
"source": {
"text": "string",
"prompt_id": 0,
"prompt_version_id": 0,
"prepared_message_id": 0,
"waba_template_id": 0,
"file_ids": [
0
],
"caption": "string"
}
}
}