Log new Zendesk tickets as notes on HubSpot contacts

By General Input

Every time a Zendesk ticket opens, drop a tidy note on the matching HubSpot contact so revenue teams see the full support history without leaving the CRM.

Integrations

  • Zendesk
  • HubSpot

Type

Deterministic Code

Categories

  • Customer Support
  • Sales
  • Operations

Build a code workflow that mirrors every new Zendesk ticket as a note on the matching HubSpot contact, so revenue teams see customer support history directly in the CRM without leaving HubSpot.

Trigger: Zendesk poll trigger using the new_ticket event type. Fire once per newly created ticket.

Step 1: Call Zendesk Show Ticket with the ticket id from the trigger payload to load the full ticket including subject, description, priority, status, requester id, and ticket url. If the trigger payload already contains all of these fields, this step can be skipped.

Step 2: Read the requester's email and name from the Zendesk ticket's requester information. If the email is missing, end the run gracefully and log a skip reason. If the trigger payload does not include the requester email and name, call Zendesk Show User with the requester id to fetch them.

Step 3: Call HubSpot Get Contact with the requester's email and idProperty set to email to look up the contact. If the contact exists, capture its id.

Step 4: If Get Contact returned no match (404 or not found), call HubSpot Create Contact with the requester's email plus first name and last name parsed from the requester name. Capture the new contact id.

Step 5: Call HubSpot Create Note with an HTML body containing the ticket subject, priority, status, requester name and email, a short excerpt of the opening message (first 500 characters of the description, HTML escaped), and a clickable link back to the Zendesk ticket url. Set hs_timestamp to the ticket's created_at timestamp. Associate the note with the contact id from steps 3 or 4.

Notes for the build: this is fully deterministic, no LLM calls. The note body should be plain HTML formatted with a short header and clearly labeled fields so it reads cleanly in the HubSpot contact timeline. Touches Zendesk and HubSpot only.

Related prompts

Explore more prompts
Turn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInPause marketing emails to escalated customers, then restore themAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe revealsWhich companies your LinkedIn ads reach, matched to your CRMLead response desk with a running clock on every new lead