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
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
- New bounce or subscription change Checks Dittofeed every 5 minutes for new DFEmailBounced and DFSubscriptionChange events.
- 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.
- Find the contact in HubSpot Searches HubSpot for the contact with that email address.
- Find the bounced message For a bounce, Search Deliveries finds the message that bounced, with its subject, template and send time.
- Log the bounce Adds a row to your deliverability log in Google Sheets.
- Flag the address in HubSpot Ticks your bounce checkbox on the HubSpot contact, when the address belongs to one.
- 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.
- 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.