FlowRunner
Features Pricing
Theme
Start Free

Dittofeed bounces and opt-outs back on the HubSpot contact

Checks Dittofeed every 5 minutes for email bounces and subscription changes. Bounces are logged to a sheet and flagged in HubSpot, and preferences go onto the contact.

The prompt

Every 5 minutes, check our self-hosted Dittofeed for new email bounces and subscription changes. Get the user's email address from Dittofeed and find the contact in HubSpot. For a bounce, find the message that bounced, add a row to our deliverability log in Google Sheets with the address, subject, template and send time, and tick the bounce checkbox on the HubSpot contact. For a subscription change, read the user's subscription groups in Dittofeed and write the ones they are subscribed to onto the HubSpot contact.

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

The flow

Yes Yes Yes Condition Email on file? Condition Bounce orsubscription change? Action Flag the addressin HubSpot Action Look up the userin Dittofeed Code List the subscribedgroups Action Find the contact inHubSpot Action Read the user'ssubscriptions Condition Bounced contact inHubSpot? Condition Contact in HubSpot? Action Write preferencesto HubSpot Starts the flow New bounce orsubscription change Action Find the bouncedmessage Action Log the bounce Code Write the log row Code Read the event

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 bounce or subscription change Checks Dittofeed every 5 minutes for new DFEmailBounced and DFSubscriptionChange events.
  2. Look up the user in Dittofeed List Users reads the user's profile for their email address. A user with no email address on file is skipped.
  3. Find the contact in HubSpot Searches HubSpot for the contact with that email address.
  4. Find the bounced message For a bounce, Search Deliveries finds the message that bounced, with its subject, template and send time.
  5. Log the bounce Adds a row to your deliverability log in Google Sheets.
  6. Flag the address in HubSpot Ticks your bounce checkbox on the HubSpot contact, when the address belongs to one.
  7. Read the user's subscriptions For a subscription change, Get User Subscriptions reads every subscription group in the workspace and whether the user is in it.
  8. Write preferences to HubSpot Writes the groups the person is subscribed to, or None, onto the HubSpot contact, so sales works from the same preferences Dittofeed holds.

Before you turn it on

  • Connect your HubSpot and Google accounts. In the Dittofeed steps, enter your self-hosted Dittofeed instance's URL, an Admin API Key and the Workspace ID.
  • In HubSpot, create two contact properties: a single checkbox named dittofeed_email_bounced and a text property named dittofeed_subscriptions. Or put your own property names in the flow settings HubSpot bounce property and HubSpot subscriptions property.
  • Put your deliverability log's URL in the flow setting Deliverability log sheet. Its first tab needs the columns Bounced at, Email, Dittofeed user, Subject, Template and Sent at.
  • Dittofeed records bounces from your email provider's webhooks, so those need to be set up in your Dittofeed instance.
  • Dittofeed has no webhooks of its own, so the flow checks for new events every 5 minutes.