---
title: "Dittofeed bounces and opt-outs back on the HubSpot contact | FlowRunner flow"
description: "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."
url: https://flowrunner.ai/flows/dittofeed-bounces-and-opt-outs-back-to-hubspot
date_published: 2026-12-01
date_modified: 2026-12-01T10:15:06-08:00
---

# 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

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/dittofeed-bounces-and-opt-outs-back-to-hubspot.json)

-   [Dittofeed](https://flowrunner.ai/integrations/dittofeed)
-   [HubSpot](https://flowrunner.ai/integrations/hubspot)
-   [Google Sheets](https://flowrunner.ai/integrations/google-sheets)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## 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.

## Need it built for you? Our team does custom work.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=dittofeed-bounces-and-opt-outs-back-to-hubspot)

## 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.

[Everything FlowRunner does with Dittofeed](https://flowrunner.ai/integrations/dittofeed)

---
Markdown version of https://flowrunner.ai/flows/dittofeed-bounces-and-opt-outs-back-to-hubspot. Site index: https://flowrunner.ai/llms.txt
