Bring campaign results from Smartlead together with lifecycle data from HubSpot and store it in PostgreSQL, then publish a clear summary to Google Sheets. Marketing and sales teams get up to date reports without manual exports or copy paste. Clean tables in your database power dashboards and weekly reviews.
A schedule starts each run. The flow sets the Smartlead API key, calls the Smartlead API to list all campaigns, and loops through them. For each campaign it downloads the leads export as CSV, parses it into rows, and upserts both campaign and activity data into ce_campaign and ce_campaign_activity. In parallel, it looks up campaign context, pulls HubSpot contacts with properties like lifecyclestage and open deals, and routes data into hubspot tables. A merge step aligns activity and campaign records. Selected fields are then written from Postgres to Google Sheets for easy sharing.
You need a Smartlead API key, a HubSpot OAuth connection, a PostgreSQL database with the outbound_activities schema and the ce_campaign, ce_campaign_activity, and hubspot tables, and access to a Google Sheet. Set your schedule to match your reporting rhythm and map the sheet columns. Expect faster reporting, fewer errors, and a single source of truth for outreach and pipeline movement. Great for weekly pipeline reviews, outbound campaign tracking, and leadership rollups.