Campaigns

Generate a campaign draft plan

Builds a campaign plan from a brief with fixed rules, without a model. Nothing is saved. Create the draft from the plan, review it, and publish it yourself.

API key scopes: campaigns:write. You also need an Idempotency-Key header.

post/api/campaigns/generate

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/campaigns/generate
  • Auth: one of:
    • API key in cookie luca.session_token
    • API key in header x-api-key
    • HTTP bearer

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

mode'new' | 'guided_improvement' | 'improve_existing'
promptstring required
targetAudiencestring
goal'book_call' | 'qualify' | 'nurture' | 'recover' | 'reactivation' | 'event_webinar' | 'promo'
primaryChannel'telegram' | 'instagram' | 'messenger' | 'whatsapp'
fallbackChannelsstring[]
source'instagram_comments' | 'instagram_dm' | 'whatsapp' | 'csv_import' | 'webhook_crm' | 'broadcast'
sampleMessagesstring[]
faqsAndObjectionsstring[]
pricingAndPaymentFactsstring[]
bookingConstraintsstring[]
complianceDisallowedClaimsstring[]
toneExamplesstring[]
guidancestring

Response

ok

namestring required
descriptionstring required
assumptionsstring[] required
recommendedQuestionsstring[] required
providerCapabilityAssumptionsstring[] required
repairLogstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.