Update HubSpot deal stages from sales call transcripts with OpenAI GPT-4.1
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Config (Edit Fields (Set)): sets 4 fields: ai_model, openai_base_url, min_stage_confidence…
- Check payload (Code): runs custom JavaScript code
- Valid call? (If): checks a condition and branches into true / false
- Find contact in HubSpot (HTTP Request): calls api.hubapi.com (POST)
- Reply: bad payload (Respond to Webhook): sends the response back to the webhook caller
- Contact found? (If): checks a condition and branches into true / false
- Get contact's deals (HTTP Request): calls an HTTP API (GET)
- Reply: unknown caller (Respond to Webhook): sends the response back to the webhook caller
- Has a deal? (If): checks a condition and branches into true / false
- Read the deals (HTTP Request): calls api.hubapi.com (POST)
…plus 7 more steps. See the full node list below.
HTTP calls to: api.hubapi.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives sales call transcripts via a webhook, uses OpenAI to extract a structured call report and suggested deal stage, and updates the latest open deal in HubSpot with AI-generated fields and notes while returning clear HTTP…