FlowRunner
Features Pricing
Theme
Start Free

HubSpot audience to an approved Dittofeed broadcast

A marketer asks in Slack for a broadcast to a HubSpot audience. The contacts load into Dittofeed, recent bounces are flagged, and the marketing lead approves the send.

The prompt

When someone mentions us in Slack with the word broadcast, read the request: who in HubSpot it goes to, a name for the broadcast, and which of our saved Dittofeed messages to send. If anything is missing, ask in the thread. Otherwise find every matching contact in HubSpot and identify them in our self-hosted Dittofeed, tagged for this broadcast. Check Dittofeed for email bounces in the last 90 days and mark the contacts that bounced. Then ask our marketing lead in the thread, with the audience size, the bounced addresses and three buttons: send to all, send without the bounced ones, or hold. Only when they choose to send, create and trigger the broadcast in Dittofeed and confirm in the thread.

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

The flow

No Yes Yes No Yes No Repeats for each item Load the contacts inbatches Repeats for each item Collect everymatching contact Action Ask for themissing details Action Create and triggerthe broadcast Condition Contacts found? Action Report nomatching contacts Code Build the audience Asks a person Ask the marketinglead Action Confirm the hold Condition Request clear? Action Start the contact list Condition Send it? Asks a person Wait for the marketinglead's answer Action Confirm the send Starts the flow Broadcastrequest in Slack Code Pick the audience AI agent Read the request Action Check recentbounces

Inside the loop: Collect every matching contact

Action Keep the list Action Find the contactsin HubSpot Code Add the page to thelist

Inside the loop: Load the contacts in batches

Action Identify the contactsin Dittofeed

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. Broadcast request in Slack Starts when someone mentions you in Slack with the word broadcast, for example: broadcast Pricing update, April to customers on the Growth plan.
  2. Read the request An AI agent turns the request into a HubSpot search, a broadcast name and one of your saved messages. If the audience or the message is unclear, it asks in the thread and stops there.
  3. Find the contacts in HubSpot Searches HubSpot 200 contacts at a time until it has every match. If nobody matches, the flow says so in the thread and nothing is loaded or sent.
  4. Check recent bounces Search Events lists the DFEmailBounced events Dittofeed recorded, and the flow marks the contacts whose address bounced in the last 90 days.
  5. Identify the contacts in Dittofeed Send Batch identifies the contacts in Dittofeed 500 at a time, with their name, email and a trait that tags them for this broadcast. Bounced addresses get a tag of their own.
  6. Ask the marketing lead Posts in the thread for the marketing lead: the message, the audience size, the addresses that bounced, and buttons to send to all, send without the bounced ones, or hold.
  7. Wait for the marketing lead's answer The run waits for the click. Hold ends it with a note in the thread, and no broadcast is created.
  8. Create and trigger the broadcast Dittofeed creates the broadcast for the tagged audience the lead chose and sends it at once. The flow confirms in the thread with the number of contacts.

Before you turn it on

  • Connect your Slack and HubSpot accounts. In the Dittofeed steps, enter your self-hosted Dittofeed instance's URL, its Write Key, an Admin API Key and the Workspace ID.
  • Add your Anthropic key in the flow setting Anthropic key.
  • In the flow setting Broadcast messages, add each message the team may send, under the name people will use in Slack. Each one is the message template definition from the cURL request the Dittofeed dashboard copies for a broadcast.
  • Put the marketing lead's Slack member ID in Marketing lead Slack ID. Copy the URL of the block Wait for the marketing lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Contacts are identified in Dittofeed by email address. If your Dittofeed users carry another ID that is stored on the HubSpot contact, put that property's internal name in Dittofeed user ID property.
  • Dittofeed checks the workspace's first email subscription group and skips anyone unsubscribed from it.