Update support ticket when call ends with details
When a call ends, its support ticket gets the call status, times, recording link and a summary note, so coordinators can triage without looking anything up.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-support-ticket-when-call-ends-with-details/
Paste into Claude, ChatGPT, Cursor or any agent.
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-support-ticket-when-call-ends-with-details
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-support-ticket-when-call-ends-with-details/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-support-ticket-when-call-ends-with-details - 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 update-support-ticket-when-call-ends-with-details - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-support-ticket-when-call-ends-with-details
zaps/update-support-ticket-when-call-ends-with-details/
- 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 2 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/hubspot.tsThe
hubspotaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - 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 call-end payload arrives at a catch hook (
webhook,hook_v2). The telephony system posts to it. - Zapier Tables finds the Calls record whose phone number matches the caller's, normalized to digits only.
- If that record has a HubSpot ticket ID, HubSpot looks the ticket up. If there is no record, no ticket ID, or no ticket, Gmail sends an alert and the run stops.
- If the caller's email exactly matches a HubSpot owner, the ticket owner is set to that owner.
- HubSpot updates the ticket: subject, and a description with the call status, start and end times, recording link and summary.
- HubSpot adds the summary to the ticket as a timestamped note.
- Zapier Tables deletes the Calls record, only after the ticket update and note have succeeded.
A run that finds no ticket stops after the alert and leaves the Calls record in place.
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 | What goes there |
|---|---|
CALLS_TABLE_ID |
The Zapier Tables table of temporary call records. Its ID is in the table's URL |
ALERT_EMAIL |
The address that receives the alert when a call has no ticket. Use an address the user reads |
Also review the defaults with them: PHONE_FIELD (phone) and TICKET_REFERENCE_FIELD (ticket_reference) are the Calls table's column names for the normalized phone number and the HubSpot ticket ID. Change them if the table names its columns differently.
Before installing, confirm:
- Which HubSpot account is the ticket system, and is there a test or sandbox account to run the test on?
- Do the telephony system's payload fields match
caller_number,call_status,started_at,ended_at,recording_url,caller_emailandcall_summary? If not, rename them in the code before installing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-support-ticket-when-call-ends-with-details, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-support-ticket-when-call-ends-with-details, 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
gmail(the account that sends the alert) andhubspot(the account that owns the tickets; use a test or sandbox account for the test run) to the user's connections. Webhooks by Zapier and Zapier Tables need no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.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 whosekeyis the trigger'sevent, 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 each action's fields with the user's connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample as a draft test run, on a test HubSpot connection, with a Calls record whose phone number and ticket ID belong to an [install-test] ticket:
{
"caller_number": "+15555550123",
"call_status": "completed",
"started_at": "2026-10-29T10:00:00Z",
"ended_at": "2026-10-29T10:07:30Z",
"recording_url": "https://example.com/recordings/test-call.mp3",
"caller_email": "caller@example.com",
"call_summary": "[install-test] Customer asked about a delayed order. Agent confirmed the new date."
}
Check that the ticket's subject and description show the call status, times, recording link and summary; that a note with the summary is on the ticket; that the owner changed only if the caller email matches a HubSpot owner exactly; and that the Calls record is gone. For the missing-ticket path, use a phone number with no Calls record and check that the alert arrives at the alert address and that no Calls record was deleted.
If run-status tools aren't available, check the result in HubSpot directly. The user deletes the test data, not the agent.
Notes
- The Calls record is deleted only when the ticket update and note both succeed, so a failed run keeps the record for a retry.
- There is no caller-name normalization step, because the call-end payload carries no caller name.
- The HubSpot and Zapier Tables field names come from action schemas that show few parameters without a connection, so confirm each one on the first test run.
- To create a ticket when none exists, replace the alert with a HubSpot ticket create and continue with the update. To post the summary to a team channel for manual triage, add a Slack message instead of auto-assigning an owner.
- Keep real table IDs, email addresses and webhook URLs out of any copy you commit.