Automate Support Ticket Sync Between Zendesk & HubSpot with n8n

Struggling with syncing support tickets between Zendesk and HubSpot? This n8n workflow automates updating and creating tickets and contacts across both platforms every 5 minutes, cutting manual data entry and mistakes.
zendesk
hubspot
cron
+4
Workflow Identifier: 1456
NODES in Use: Cron, Function Item, Zendesk, Set, Merge, If, HubSpot
Automate ticket sync with n8n and Zendesk

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow checks Zendesk for tickets updated since the last run. It gets requester info from Zendesk, then finds or creates matching tickets and contacts in HubSpot. It updates both systems so they always have correct, synced data.

This automation saves time by handling data copying and linking automatically. It stops manual errors like missing updates or wrong info, helping teams stay in sync.

Tools and Services Used

  • Zendesk API: Gets tickets and user info, updates records.
  • HubSpot API (OAuth2): Creates and updates tickets and contacts.
  • n8n Automation Platform: Orchestrates the workflow with nodes like Cron, Function Item, Set, Merge, If, and API integration nodes.

Workflow Inputs, Processing, and Outputs

Inputs

  • Zendesk tickets updated since last workflow run.
  • User data for requesters linked to tickets from Zendesk.
  • Stored last execution timestamp from static workflow data.

Processing Steps

  • Fetch updated tickets using query on updated date after last run.
  • Get requester user info for each ticket.
  • Reduce user data to essential fields for syncing.
  • Merge tickets with requester data by requester ID.
  • Check if a HubSpot ticket already exists by external ID.
  • If exists, update HubSpot ticket details; otherwise, prepare for creation.
  • Create or update HubSpot contacts based on requester email.
  • Update Zendesk user record with HubSpot contact ID in external_id.
  • Create new HubSpot ticket associated to the contact if not existing.
  • Update Zendesk ticket with the new HubSpot ticket external ID.
  • Update last execution timestamp in static workflow storage.

Outputs

  • HubSpot tickets that match Zendesk tickets, either updated or new.
  • HubSpot contacts synced with Zendesk users.
  • Zendesk tickets and users updated with HubSpot external IDs for sync consistency.

Who Should Use This Workflow

This sync is useful for users with two systems: Zendesk for support tickets and HubSpot for contact and ticket management. Users needing fast updates without manual copy-pasting will benefit most.

It fits people who want to avoid human errors and keep different teams aligned with the same updated customer info.

Beginner Step-by-Step: How to Use This Workflow in n8n

Import the Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Open your n8n editor where you design workflows.
  3. Use Import from File option to load the downloaded workflow.

Configure Credentials and Settings

  1. Add your Zendesk API credentials and HubSpot OAuth2 credentials in n8n Credentials Manager.
  2. Update any IDs, emails, pipeline or stage numbers if needed to match your HubSpot setup.
  3. Check mapped fields in nodes like HubSpot ticket create/update nodes to ensure data goes to the right places.

Test and Activate

  1. Run the workflow once manually to check connectivity and data sync.
  2. Monitor the run to ensure tickets and contacts sync correctly.
  3. Turn the workflow on to activate automatic syncing every 5 minutes from the Cron node.

The workflow runs without needing you after activation. Adjust timing or fields as needed anytime.

You can use self-host n8n for better control if you want to run this automation on your own server.

Common Edge Cases and Failures

  • If Zendesk returns no tickets, check API credentials and query syntax.
  • HubSpot ticket update errors often mean the ticketId given does not exist in HubSpot.
  • Missing contacts in HubSpot is usually due to not sending or mapping the email field.
  • Zendesk external ID update failures come from incorrect ticket or requester ID settings.

Always use n8n execution logs to find values and errors for debugging.

Customization Ideas

  • Change how often the workflow runs by adjusting the Cron node interval.
  • Add more Zendesk ticket fields or custom HubSpot ticket properties to sync.
  • Filter tickets by status or priority in Zendesk to only sync specific tickets.
  • Expand synced contact fields like phone or tags for richer HubSpot contacts.
  • Use error triggers or “Continue On Fail” options to handle failures smoothly.

Summary

✓ Workflow automatically syncs tickets and contacts between Zendesk and HubSpot.
✓ Saves hours by avoiding manual copying and mistakes.
✓ Keeps customer and support teams aligned with latest ticket updates.
→ Runs every 5 minutes but timing can be adjusted.
→ Includes full bi-directional syncing of external IDs for data integrity.
✓ Easy to import and run in n8n with only adding credentials and minor config.


Automate ticket sync with n8n and Zendesk

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow fetches Zendesk tickets updated after the last successful run using a stored timestamp for incremental syncing.
The workflow creates a new ticket in HubSpot and links it to the corresponding contact.
It updates Zendesk user records with HubSpot contact IDs in the external_id field for cross-reference.
Import the workflow file, add Zendesk and HubSpot API credentials, update ID mappings if needed, test once, then activate the workflow.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.