FlowRunner
Features Pricing
Theme
Start Free

A subscriber.dev broadcast sent after the marketing lead signs off

A marketer requests a broadcast in Airtable. The flow counts the audience, shows the workflow's record so far, and the marketing lead approves in Slack before subscriber.dev sends real email.

The prompt

When a marketer adds a row to our Broadcast requests table in Airtable with the workflow, the audience tag and how many hours to spread the send over, find that workflow in subscriber.dev, read how its past sends went and count how many opted-in subscribers the tag matches right now. Put that in front of our marketing lead in Slack with Send, Send even if over plan, and Hold buttons, and make clear it sends real email. If they hold, note it on the row. If they approve, send the broadcast over the agreed hours, check on it every half hour until it's done, and write the sent, failed, skipped and bounced counts back to the row and into the Slack thread.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

No Yes No Yes Repeats for each item Until the send isfinished Action Confirm the sendin the thread Action Report the resultin the thread Code Read the lead'sanswer Action Remember thebroadcast Asks a person Wait for the marketinglead's answer Action Read the workflow'ssend outcomes Action List the workflowsin subscriber.dev Code Match the request toa workflow Asks a person Ask the marketinglead Action Note the hold onthe request Action Note the problemon the request Action Send thebroadcast Action Record the resulton the request Action Count theaudience Condition Approved? Starts the flow New broadcastrequest Code Write the question forthe marketing lead Condition Workflow found?

Inside the loop: Until the send is finished

Action Remember the latestcounts Action Check thebroadcast Action Wait 30 minutes

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New broadcast request Checks the Broadcast requests table in Airtable every 5 minutes and starts for each new row: the workflow, the audience tag and the hours to spread the send over.
  2. Match the request to a workflow List Workflows fetches your subscriber.dev workflows and the flow picks the one whose key or name the row names. A name nothing matches is written back on the row and the run ends.
  3. Count the audience Preview Broadcast Audience counts how many opted-in subscribers carry the tag right now, without creating or sending anything. Get Workflow reads how the workflow has done so far: sent, bounced, failed and its success rate.
  4. Ask the marketing lead Posts the workflow, the audience count, its record so far and a link to the workflow in Slack, says plainly that this sends real email through your provider over the agreed hours, and offers Send, Send even if over plan, and Hold.
  5. Wait for the marketing lead's answer The run waits for the click. Hold writes Held on the row and nothing is sent. Allow Over Plan stays off unless the lead picks Send even if over plan.
  6. Send the broadcast Send Broadcast sends the workflow to the tagged audience spread over the agreed hours, and the flow confirms in the thread with the broadcast ID.
  7. Until the send is finished Every 30 minutes Get Broadcast reads the status and counts, for up to a week, until the broadcast is completed or canceled.
  8. Record the result on the request Writes the status, the broadcast ID and the matched, sent, failed, skipped and bounced counts to the Airtable row, and reports them in the Slack thread.

Before you turn it on

  • Enter your subscriber.dev API key, created with full access: subscriber keys create "FlowRunner" --access full. A default key only triggers workflows and creates or updates subscribers, so the list, preview and broadcast steps need the full-access key. On subscriber.dev cloud, leave the API URL as it is; if you self-host, enter your own.
  • Connect your Airtable and Slack accounts. In Airtable, set up a table named Broadcast requests with these fields: Workflow (the workflow's key in subscriber.dev), Tag, Hours (a number up to 168; empty means 24), Status, Broadcast ID, and the number fields Matched, Sent, Failed, Skipped and Bounced. Add a Created time field; the trigger sorts by it.
  • Pick your base in New broadcast request and put its ID, which starts with app, in the flow setting Airtable base ID. Pick your marketing channel in the three Slack steps.
  • Copy the URL of the block Wait for the marketing lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Opted-out subscribers are never emailed, whatever the tag. Send even if over plan turns on Allow Over Plan for that one send; on subscriber.dev cloud that moves the workspace up one plan after 3 days.
  • A run follows a broadcast for up to a week after the lead approves it.