Send HeyReach campaign performance reports to Gmail using webhooks
Go to WorkflowDescription
Quick overview
This workflow receives a HeyReach “campaign completed” webhook, fetches the campaign’s overall performance stats from the HeyReach API, formats an HTML summary report, and sends the report to a specified recipient via Gmail.
How it works
Receives a POST webhook from HeyReach when a campaign is marked as completed.
Extracts the campaign ID and name from the webhook payload and sets the email recipient address.
Calls the HeyReach Public API (GetOverallStats) to retrieve overall statistics for the completed campaign.
Builds an HTML email report that includes key metrics (connections sent/accepted, messages started, replies, interested leads) and a link back to the campaign in HeyReach.
Sends the formatted report to the configured recipient using Gmail.
Setup
Add a HeyReach API credential in n8n and select it for the HeyReach API request.
Add a Gmail OAuth2 credential in n8n and select it for the email-sending step.
Replace [email protected] with your target recipient address.
Copy the production webhook URL from the workflow and register it in HeyReach as a “Campaign Completed” webhook under Integrations → Public API / Webhooks.