The fields that decide quality
Onlyname is required. In practice three fields decide whether the
conversations are any good, because they go straight into the agent’s prompt:
The rest tune behavior:
An initiative is created as
DRAFT. A draft is fully editable. After launch,
what the agent says stays editable — name, objective, context,
guidingQuestions, flagCondition and identityDeflection — and the edit
reaches the next turn of every conversation already open, with no publish step.
That is the intended way to fix wording mid-run. smartSendingMode also stays
editable, and applies to the next message the initiative sends.
Responses include isTransactional, true for a Transactional. GET /api/v1/initiatives returns every kind when you pass neither isRecurring nor isTransactional. Passing isRecurring alone leaves Transactionals out, and isTransactional=true returns only Transactionals. A launch of a Transactional whose setup is incomplete is refused with journey_not_ready.
A Transactional starts only from its event, so send each event with the single-event endpoint (POST /api/v1/cdp/events). Batch event recording stores the events but does not trigger enrollment. You cannot add people to a Transactional by hand; that is refused with 422 transactional_event_only.
Everything else — channel, language, maxAttempts, isRecurring,
contextSchema and the voice and reward settings — is draft-only, because it
cannot change under conversations already in flight. A PATCH that names one of
them on a launched initiative fails with 409 initiative_not_draft and lists the
fields it refused, changing nothing. A COMPLETED or CANCELED initiative is
frozen outright.
One edit a launched initiative refuses even though the field is editable:
clearing context or objective. Both are required to launch, so emptying
one would leave the agent with no brief on conversations already open. Sending
"" (or only whitespace) fails and changes nothing; send the new text instead.
Dropping a guiding question from a launched initiative that already collected
answers for it archives the question rather than deleting it. The agent stops
asking it from the next turn and no new answers are extracted, but the answers
already collected are kept: they still appear in insights, the data view, CSV
exports (column marked (archived)) and the data summary (archived: true). A
question with no answers yet, or any question on a draft, is deleted outright.
An archived question can’t be restored or edited; sending its old id again
creates a new question.
initiatives_update takes guidingQuestions as the complete set, not a
patch. Omit the field to leave the questions alone. When you send it, carry each
existing question’s id (from initiatives_get) to edit it in place — a
question you leave out counts as dropping it, which on a launched initiative
archives it (see above). So the round-trip is: read, edit the array keeping
every id you mean to keep, write.
Within a question you send, a field you leave out keeps its current value. That
applies to answerType, scaleMin, scaleMax and options: an edit that names
only id and questionText re-words the question and changes nothing else, so a
multiple-choice question keeps its type and its answer options. To change one of
them, send it — including options: [] to clear the options, and a new
answerType to retype the question, which discards options that no longer apply.
OPEN is the default only for a question you are adding.
Lifecycle
What “ready to launch” means
A launch that is not ready fails with a specific code rather than a generic error, which tells you exactly what to fix:Launching publishes the initiative’s customer journey for you, on WhatsApp and
email alike, so you do not need a separate publish call. You do have to have
built that customer journey first: a new initiative does not come with one, and a
launch without one is refused. On WhatsApp, a missing channel
on the opening message is filled in automatically when there is only one
sensible answer: the initiative’s own channel, otherwise the organization’s
primary, otherwise its only sendable one.
Participants
Participants exist only inside an initiative, addressed under/initiatives/{id}/participants. There is no global participant list, and there
is no delete: stopping a participant halts their outreach and keeps the data.
A participantId is one person’s single pass through the customer journey, so a person
enrolled twice has two of them. It is the same id journey_run.*
webhooks report as run.engagementId — capture it there to stop a
specific run later without listing participants at all.
Each person needs the identifier of the initiative’s channel: phoneNumber in
E.164 format on WhatsApp, email on an email initiative. The other one is
optional. A row without the channel’s identifier comes back in errors as
missing_phone_number or missing_email and is not enrolled; every other row in
the request still goes through. Each added row echoes the phoneNumber and
email you sent for it, null when you sent none.
Enrolling sends a real message. People on your Do Not Contact list are skipped
by the platform rather than by whoever wrote the flow, on both channels, so a
suppressed contact enrolled by mistake is not contacted and comes back as
contact_suppressed.
Tags and owner
Tags and owners are on for every workspace. If they are ever turned off for
yours, passing
tags or owner, or filtering initiatives_list by tags, owner, createdBy or
includeHidden, answers 400 tags_unavailable: send the call again without
them. The initiatives_tags_* tools answer the same.Product launch,
Customer notice or Test. They are shared by your whole workspace, and one row
can carry several.
initiatives_createandinitiatives_updatetaketags: a list of names (up to 20). A name that does not exist yet is created. On update the list is the complete set: it replaces the current tags,[]removes them all, and leaving it out keeps them.- A tag named
Testis created hidden by default: the list in Boom hides drafts and finished rows that carry it, unless you open that tag. Running ones always show. The API always returns them. - A new tag is created grey.
initiatives_tags_list(GET /api/v1/initiatives/tags) returns every tag with its colour, whether it is hidden by default and how many rows carry it: read it first and reuse an existing name.initiatives_tags_update(PATCH /api/v1/initiatives/tags/{tag}) renames a tag, changes itscolor(gray,blue,purple,green,orange,red,yellow,pink) or setshiddenByDefault, andinitiatives_tags_delete(DELETEon the same path) removes it from every row.{tag}is the tag’sidor its name. A name another tag already has answers409 tag_name_taken; an unknown tag answers404 tag_not_found.
owner on create or update as me, or as the user id or email
of a member of your workspace. Anyone else answers 400 owner_not_a_member.
initiatives_list filters by tags (any of these names), owner (me, a user
id, or a member’s email) and createdBy (me or a user id), and each row comes
back with its tags and owner (id and name, never an email). includeHidden
is true unless you pass false, which leaves out drafts and finished rows
carrying a hidden tag, like the list in Boom does.
If the tags or owner can’t be applied after the rest of the call was saved, the
call answers 422 tags_owner_not_applied and names the initiative’s id. On
initiatives_create the initiative was created as a draft: set its tags
and owner with initiatives_update on that id, and don’t create it again (a
second create with the same name answers initiative_name_taken). On
initiatives_update the other changes were saved: retry with only tags and
owner.
With tags turned on, a change made with an API key is credited to the person
who created the key, as long as they are still a member of your workspace. Keys
created before key creators were recorded, or whose creator has left, are
credited to the workspace owner.
Reading results
Three read paths, all covered in extraction: the aggregate summary for the whole initiative, the per participant record with its extracted values, and the full transcripts.Related
Customer journeys
The flow an initiative runs, and how to shape it when the default is not what
you want.
Extraction
The typed fields every conversation should yield. Set this before launching.
Segments
Define who the initiative reaches, and remember to evaluate it.
Inbound conversations
The other direction, where no initiative is involved.