OutreachCampaignCreate
Payload to create an outreach campaign. The agent must belong to the given product.
ID of the product (workspace) that owns this record. Most endpoints scope access by product.
ID of the agent (a configured AI assistant / bot persona) this record belongs to.
Human-readable campaign name.
outreach_to_stage_id object
ID of the pipeline stage whose leads to target.
- integer
- null
Initial status; defaults to "draft".
Possible values: [draft, active, paused, stopped, finished]
draftconfig object
Outreach behavior configuration. Defaults to the standard outreach config.
falsefalsefalsefalse10:30source object
- MessageSource
- null
text object
- string
- null
prompt_id object
- integer
- null
prompt_version_id object
- integer
- null
prepared_message_id object
- integer
- null
waba_template_id object
- integer
- null
caption object
- string
- null
crm_fields_conditions object
- CRMFieldsConditionsConfig
- null
Possible values: [AND, OR]
ANDconditions object[]
Possible values: [EQUALS, NOT_EQUALS, IN, NOT_IN, STARTS_WITH, ENDS_WITH, CONTAINS, EXISTS, NOT_EXISTS, IS_EMPTY, IS_NOT_EMPTY]
0Which campaign claims shared channel capacity first when several campaigns on one agent compete for it, from 0 (default, lowest) to 10 (highest). Higher priority claims first on each scheduler pass; campaigns of equal priority rotate by least recently evaluated. The priority is soft — it only orders claims and reserves nothing, so a higher-priority campaign with no eligible leads yields its share to the others. A campaign that always has demand at a higher priority can leave lower-priority campaigns without capacity for the rest of the day; that is expected behavior.
Possible values: >= 0 and <= 10
0dispatch_steps object[]
Possible values: [telegram, whatsapp, waba, max, viber, instagram, fasttrack, usedesk, salebot, avito, vk, yandex_messenger, email, sms, pinbox, linkedin, amocrm_salesbot, bitrix24_openlines, sip, webrtc, bothelp]
ext_channel_id object
- string
- null
Possible values: [phone, username, chat_id, email]
phone864003600false10Possible values: [invite, inmail, skip]
invitefalseinvite_note object
- string
- null
1209600subject object
- string
- null
falsestarted_at object
Optional explicit start time (UTC).
- date-time
- null
stopped_at object
Optional explicit stop time (UTC).
- date-time
- null
{
"product_id": 0,
"agent_id": 0,
"name": "string",
"outreach_to_stage_id": 0,
"status": "draft",
"config": {
"outreach_enabled": false,
"persist_channel_in_outreach": false,
"instant_outreach": false,
"run_post_outreach_state_tree": false,
"initial_message_send_at": "10:30",
"source": {
"text": "string",
"prompt_id": 0,
"prompt_version_id": 0,
"prepared_message_id": 0,
"waba_template_id": 0,
"file_ids": [
0
],
"caption": "string"
},
"crm_fields_conditions": {
"operator": "AND",
"conditions": [
{
"field": "string",
"operator": "EQUALS"
}
]
},
"lead_batch_names": [
"string"
],
"wait_after_lead_stage_at_seconds": 0,
"outreach_priority": 0,
"dispatch_steps": [
{
"channel_type": "telegram",
"ext_channel_id": "string",
"contact_type": "phone",
"no_reply_timeout_seconds": 86400,
"no_send_confirmation_timeout_seconds": 3600,
"advance_only_without_send_confirmation": false,
"max_contacts": 1,
"outreach_daily_limit": 0,
"non_connection_mode": "invite",
"invite_with_note": false,
"invite_note": "string",
"acceptance_wait_seconds": 1209600
}
],
"subject": "string",
"first_cold_outreach_uses_lead_created_at_for_waba_window": false
},
"started_at": "2024-07-29T15:51:28.071Z",
"stopped_at": "2024-07-29T15:51:28.071Z"
}