create_campaign
Create a NEW campaign (saved as 'draft' — it does NOT start sending until the user activates it in the app). Provide a name, the profile_id to send from, and an ordered list of steps. Each step has an action ('connect', 'message' or 'visit'), an optional delay_hours (wait before this step), and AI/template settings for messages. Returns the new campaign_id. Use add_contacts_to_campaign next to add leads.
MESSAGE PLACEHOLDERS (for ai_template / when use_ai is false, also cleaned up after AI):
{oslovení} or [Oslovení]/[Jméno] → Czech vocative greeting (e.g. 'pane Nováku' / first-name vocative like 'Petře')
{{first_name}} or {jméno}/{jmeno} or [Name]/[first_name] → contact first name
{{company}} or {firma} or [Firma]/[Company] → company name ({firma} = sender company from sender_context; {{company}}/[Firma] = lead's company)
Also: {{last_name}}, {{full_name}}, {{position}}, {{location}}, {{headline}} Prefer {{first_name}} / {{company}} / {oslovení} in new templates; square brackets like [Jméno] and [Firma] are supported aliases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name | |
| steps | Yes | Ordered campaign steps | |
| profile_id | Yes | UUID of the user_profile to send from | |
| daily_limit | No | Max actions per day for this campaign. Optional. | |
| description | No | Optional description | |
| sender_context | No | Context about the sender used by the AI when writing messages. Optional. |