FlowPrime guides
Marketing keeps a list of contacts with their properties, groups them into segments, mails them automatically when they do something (a sequence: welcome series, onboarding nudge, re-engagement), and sends one-off broadcasts to a segment. Every message goes out from your workspace's own sender, through your workspace's mail providers, using templates stored in Mail. Use it for lifecycle mail driven by what people do. For a plain mailing list with editions, see platform_guide topic=newsletter.
| Capability | How | Status |
|---|---|---|
| Read or set the sender | marketing_get_sender, marketing_set_sender |
live |
| Create or update a contact by e-mail | marketing_contact_create |
live |
| List, search and read contacts | marketing_contact_list (search matches email or name), marketing_contact_get, or dashboard (Marketing > Contacts) |
live |
| Import contacts in bulk, with a dry run first | marketing_contact_import (dryRun=true counts new, updated and left-out rows without writing), or dashboard (Marketing > Contacts > Import CSV) |
live |
| Edit a contact's name, external id or properties (null removes a property) | marketing_contact_update, or dashboard (the contact's page) |
live |
| A contact's sequences and what they sent | marketing_contact_activity, or dashboard (the contact's page, with the mail log for that address) |
live |
| Segments by contact property or by recent analytics event | marketing_segment_create, marketing_segment_list, marketing_segment_get, marketing_segment_evaluate, marketing_segment_delete |
live |
| Sequences (manual or triggered by an event) | marketing_sequence_create, marketing_sequence_list, marketing_sequence_get, marketing_sequence_delete |
live |
| Add a step to a sequence (template, subject, delay) | marketing_sequence_add_step |
live |
| Remove a sequence's step | REST DELETE /api/sequences/{id}/steps/{stepId} |
live (REST only, no tool) |
| Start and stop a sequence | marketing_sequence_activate, marketing_sequence_pause, or dashboard (the sequence's page: it also previews each email and flags emails missing from Mail) |
live |
| Enroll one contact by hand | marketing_sequence_enroll |
live |
| Fire an event that enrolls a contact in matching sequences | marketing_trigger_event |
live |
| Stop a contact's sequence when a follow-up event happens (exit condition) | triggerConfig "condition":"not", or dashboard (the sequence's page, "Stops when this event arrives") |
live |
| Seed the default sequences and the mail templates they send | marketing_defaults_seed |
live |
| Broadcast to a segment | marketing_broadcast_create, marketing_broadcast_send, marketing_broadcast_list, or dashboard (Marketing > Campaigns) |
live |
| Create your own mail templates for steps and broadcasts | dashboard (Email > Settings, the Templates row of the server marketing sends through: the one with the lowest id, tagged Marketing) | dashboard |
| Unsubscribe or delete a contact, cancel an enrollment | REST POST /api/contacts/{id}/unsubscribe, DELETE /api/contacts/{id}, POST /api/sequences/enrollments/{id}/cancel, or dashboard (the contact's page; Stop on a sequence's page) |
live (no tool) |
Marketing sends nothing until four things are true. Check them in this order:
Marketing is set up for the workspace. If any marketing tool answers "Marketing is not set up for the workspace", an org admin attaches it with platform_attach_product product=marketing (it is part of the FlowPrime plan), then you call the tool again.
A sender: marketing_get_sender. A null senderEmail means no broadcast or sequence mail goes out. Set one with marketing_set_sender [email protected] fromName="Example".
A mail provider that owns that address. Messages go through your workspace's mail providers; an address no provider lists fails at delivery. mail_status answers delivering when the workspace's mail actually goes out. See platform_guide topic=mail.
The templates. Sequence steps and broadcasts name a mail template by its alias (templateName). The template must exist on the mail server marketing sends through, your workspace's server with the lowest id (dashboard: Email > Settings, the server tagged Marketing, Templates row). marketing_defaults_seed creates the ones the default sequences use; for your own sequences you write them.
welcome-1 and welcome-2. Templates use {{variable}} placeholders; unsubscribeUrl is filled in for you.marketing_sequence_create name="Welcome" triggerType=event triggerConfig='{"eventName":"user_register"}'.marketing_sequence_add_step id=<id> templateName=welcome-1 subject="Welcome to Example" delayMinutes=0, then marketing_sequence_add_step id=<id> templateName=welcome-2 delayMinutes=4320 (3 days later). Leaving position out appends the step after the last one. Check them with marketing_sequence_get.marketing_sequence_activate id=<id>. From now on it mails whoever is enrolled.marketing_trigger_event eventName=user_register email=<test address> properties='{"name":"Test"}'. The contact is created or updated and enrolled.marketing_sequence_get id=<id> and marketing_contact_get to confirm the enrollment.triggerType=manual: contacts enter only through marketing_sequence_enroll.triggerType=event with triggerConfig='{"eventName":"trial_started"}': every marketing_trigger_event (or REST event) with that exact name enrolls the contact.triggerConfig='{"eventName":"user_register","condition":"not","conditionEvent":"setup_completed","conditionDelayMinutes":2880}'. When setup_completed arrives for a contact, that contact leaves the sequence and gets no further step. conditionDelayMinutes holds the first mail at least that long after enrolment, so the event has time to arrive. "not" is the only condition; any other value is refused when the sequence is created.position order; each delayMinutes counts from the previous step.marketing_defaults_seed creates, as drafts, Welcome (user_register), Onboarding Nudge (user_register, stops once setup_completed arrives), Re-engagement (inactivity_14d), Trial Expiry (trial_started) and Payment Failed (payment_failed).welcome-step-1..3, onboarding-nudge-1..2, reengagement-1..3, trial-expiry-1..3, payment-failed-1..3) on the workspace's mail server: short, plain texts with the unsubscribe link. A template you already have under one of those aliases is kept. Read templates in the answer: error says why templates could not be created (usually no mail server); fix it and seed again, it is safe to repeat.marketing_sequence_activate the ones you want.marketing_trigger_event, or the REST route below).marketing_segment_create name="Pro customers" rules='[{"type":"property","property":"plan","operator":"eq","value":"pro"}]'.marketing_segment_evaluate id=<id> and show the person who matches (count and a few addresses).marketing_broadcast_create name="November news" segmentId=<id> templateName=<alias> subject="What's new in November".marketing_broadcast_send id=<id>. It is immediate and cannot be undone.marketing_broadcast_list shows its send statistics.auth_create_oidc_app name="Example backend" surface=platform grantTypes=client_credentials. Store the client id and secret (the secret is shown once) as server secrets.POST to the token_endpoint named in the discovery document (auth_get_org endpoints.discovery), form-encoded grant_type=client_credentials&client_id=...&client_secret=.... The access_token lasts expires_in seconds (60 minutes); cache it and fetch a new one before it ends.Authorization: Bearer <token> to https://{org}.marketing.fastflow.tech. The workspace comes from the token.POST /api/webhooks/events with {"eventName":"user_register","email":"[email protected]","properties":{"name":"Ana"}}. It does what marketing_trigger_event does.service_contract service=marketing before you build on it."Marketing is not set up for the workspace" (over REST: 404 with code marketing_not_provisioned) means the workspace has no marketing yet. An org admin attaches it with platform_attach_product product=marketing. A 403 with code marketing_not_active means its setup never finished: report it with platform_feedback.
Marketing trigger events (user_register, trial_started...) are separate from analytics events (platform_guide topic=analytics): sending one does not send the other.
A step's or a broadcast's subject replaces the template's own subject; an empty one keeps the template's.
Templates and subjects receive {{name}} (the contact's name, or the e-mail when it has none), {{email}}, {{product_name}} (the sender's display name, or the workspace slug when it has none) and {{unsubscribeUrl}}. Put the unsubscribe link in every marketing template.
Segment rules are a JSON array; every rule must match (AND). Two kinds:
{"type":"property","property":"plan","operator":"eq","value":"pro"} with eq, neq or contains on the contact's properties.{"type":"event","eventName":"invoice_paid","days":30} matches contacts whose analytics events in the last days carry an email property. Leave type out and the rule is an event rule.status, email) are not rule fields, and a rule written as {"field":...} is not read: it becomes an event rule that matches nobody.marketing_contact_create is an upsert that REPLACES the name and properties. Send the full set, not only what changed.
marketing_broadcast_send refuses with no_sender when no sender is set, and with broadcast_already_sent when it already went out: nobody is mailed twice.
marketing_set_sender replaces both fields: leaving fromName out clears it, and an empty senderEmail stops all marketing mail.
marketing_sequence_enroll, marketing_trigger_event and marketing_sequence_activate can start mailing real people. Use test addresses until the person approves.
A contact already active or done in a sequence is not enrolled again by a repeated event.
Events from anonymous browser routes (a public site token) never create, re-activate or enroll a contact.
Most writes need an org admin seat on the connection.
Reading contacts (marketing_contact_list, marketing_contact_get, marketing_segment_evaluate) shows their e-mails, so it needs an org admin seat too. Counts and sequence lists are open to any team seat.
marketing_get_sender, marketing_set_sender: the From of every marketing message.marketing_contact_create, marketing_contact_list, marketing_contact_get: contacts.marketing_segment_create, marketing_segment_list, marketing_segment_get, marketing_segment_evaluate, marketing_segment_delete: segments.marketing_sequence_create, marketing_sequence_add_step, marketing_sequence_list, marketing_sequence_get, marketing_sequence_activate, marketing_sequence_pause, marketing_sequence_enroll, marketing_sequence_delete: sequences.marketing_defaults_seed: five ready-made sequences and the templates they send.marketing_trigger_event: upsert a contact and enroll it where the event matches.marketing_broadcast_create, marketing_broadcast_send, marketing_broadcast_list: broadcasts.service_contract service=marketing.platform_guide topic=mail (providers, templates, sender addresses, mail_status), platform_guide topic=analytics.platform_guide)platform_guide topic=ai)platform_guide topic=analytics)platform_guide topic=auth)platform_guide topic=feedback)platform_guide topic=mail)platform_guide topic=marketplace)platform_guide topic=newsletter)platform_guide topic=observability)platform_guide topic=payments)platform_guide topic=pilot)platform_guide topic=reporting)platform_guide topic=storage)platform_guide topic=webhooks)