create_campaign
Create a NEW campaign (saved as 'draft' — it does NOT start sending until the user activates it in the app). BEFORE calling, ask the user which campaign type they want unless they already said it — never choose it yourself: 1. Outreach with 2 messages: visit → connect (48 h) → message 1 (24 h) → message 2 (7 days) 2. Outreach with 1 message: visit → connect (24-48 h) → message 1 (48 h) 3. Nurturing – 3 messages: visit → connect (24-48 h) → messages after 24 h, 5 days, 7 days 4. Connection only: visit → connect (12-48 h), no messages 5. Existing connections – 3 messages: messages now, after 5 days, after 7 days (1st-degree connections only) 6. One-off message to existing connections: one message (1st-degree connections only). Confirm the planned steps with the user first. 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)
{{jmeno_5p}} → Czech first-name vocative ('Petře'); {{prijmeni_5p}} → Czech surname vocative without 'pane' ('Kubíčku', women unchanged)
Language: when the sample/prompt is English (or the prompt says 'in English'), Czech salutation rules are off and all name variables give plain names ('Hi Petr,')
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. | |
| message_language | No | Language of the messages. 'cs' = Czech salutation ("Dobrý den, pane Kubíčku,"), 'en' = English ("Hi Petr," / "Dear Mr. Kubíček,"). Ask the user when unclear; omitted = decided from the sample message. |