Smart follow-up emails: From Gong calls to AI followup drafts
Every Gong call becomes a personalized follow-up email draft, with a HubSpot task to send it and a Slack message with the draft and task links.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/draft-follow-up-emails-from-gong-calls-to-hubspot/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Sales · Sales operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/draft-follow-up-emails-from-gong-calls-to-hubspot
Set it up with the CLI
- Add it. Copies the folder into
zaps/draft-follow-up-emails-from-gong-calls-to-hubspot/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/draft-follow-up-emails-from-gong-calls-to-hubspot - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy draft-follow-up-emails-from-gong-calls-to-hubspot - Check it. Its recent runs, with status and errors.
npx zap-pack logs draft-follow-up-emails-from-gong-calls-to-hubspot
zaps/draft-follow-up-emails-from-gong-calls-to-hubspot/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/ai.tsThe
aiaccount it uses - connections/gong.tsThe
gongaccount it uses - connections/hubspot.tsThe
hubspotaccount it uses - connections/slack.tsThe
slackaccount it uses - lib/follow-up.tsCode
workflow.tsimports - triggers/new-call.tsWhat starts it:
gongnew_call_webhook - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a new Gong call is processed (
gong,new_call_webhook). - Gong (API requests through the user's Gong connection) fetches the call's transcript and its extensive call record (parties, organizer).
- Workflow finds the organizer, the first external attendee (the recipient) and the first internal attendee (the host). It stops, with no draft, if the organizer isn't in HubSpot or Slack, or if the call has no external attendee.
- AI by Zapier writes the email subject, the plain-text email body and a two-to-three sentence call summary.
- HubSpot creates a task for the organizer, due in 24 hours, with the summary and a link to the email draft.
- Slack sends the organizer a direct message with the summary, the email draft and the HubSpot task.
The Zap never sends an email. The organizer opens the draft and sends it.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | Where | What goes there |
|---|---|---|
GONG_API_BASE_URL |
config.ts |
The API base URL from the user's Gong API settings, for example https://us-1234.api.gong.io |
The HubSpot and Slack connections need no setting. The Zap finds the call organizer by email in each.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/draft-follow-up-emails-from-gong-calls-to-hubspot, replace each REPLACE_… value as this file says, then run npx zap-pack deploy draft-follow-up-emails-from-gong-calls-to-hubspot, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
gongto the user's Gong connection,hubspotto their HubSpot connection, andslackto their Slack connection. The organizer must exist in both HubSpot and Slack under the same email.aiuses AI by Zapier. The Gong API requests go through thegongconnection, so no API key is needed. - Source: publish
workflow.ts,config.tsandlib/follow-up.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-call.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyisnew_call_webhook, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect the HubSpot
find_owner_by_emailandcreate_engagementactions, the Slackuser_by_emailanddirect_messageactions, and the Gong trigger's output with the user's connections before the first test run. Fix any key inworkflow.tsthat doesn't match.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP) against a Gong call the user recorded with themselves as the only external-looking attendee, or a test call. The HubSpot task and Slack message go to the organizer, so use a test account the user owns:
{
"callData": {
"metaData": {
"id": "1234567890000000000",
"title": "[install-test] Discovery call"
}
}
}
Confirm that one HubSpot task appears for the organizer with the summary and draft link, and that the Slack message arrives with a working email draft. The user deletes the test task, not the agent.
Notes
- The Zap drafts the email and creates the task. Nothing is sent to the prospect until the organizer sends the draft.
- Every completed Gong call with an external attendee creates a task and a message. Limit the Gong trigger to the workspace or call types you want if that's too many.
- The Gmail compose link opens in the organizer's browser, so it works with the Gmail account they're signed into.
- Never commit a Gong credential, a Gong base URL, or a real call ID. The Gong requests authenticate through the
gongconnection.