Sync webhook and emailed records with Airtable, HubSpot, Gmail, OpenAI and Telegram
Ready for 3.0What this workflow does
This AI workflow has 47 nodes and runs when an HTTP POST request hits its webhook URL (plus 3 other triggers). Along the way it connects Airtable, HubSpot, Google Sheets and Gmail and 2 more. It also calls api.airtable.com and api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 3 other triggers).
- Acknowledge Webhook Receipt (Respond to Webhook): sends the response back to the webhook caller
- Extract Text from Email Attachment (Extract from File): extracts data from a file (pdf)
- Prepare Test Data Batch (Code): runs custom JavaScript code
- Retrieve Records from Airtable (Airtable): search
- Parse Webhook Data Batch (Code): runs custom JavaScript code
- AI Record Extraction from Text (Information Extractor): extracts structured fields from text with AI, with model: Use OpenAI GPT-4 Model
- Route by Batch Content (If): checks a condition and branches into true / false
- Retrieve Contacts from HubSpot (HubSpot): get many
- Log Schedule Failure Audit (Edit Fields (Set)): sets 13 fields: template, correlation_id, status…
- Set Email Batch Parameters (Edit Fields (Set)): sets 2 fields: records, _source
…plus 32 more steps. See the full node list below.
Services it uses
HTTP calls to: api.airtable.com, 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.
Nodes used (20)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Remove Duplicates
n8n-nodes-base.removeDuplicates - Edit Fields (Set)
n8n-nodes-base.set - Crypto
n8n-nodes-base.crypto - HTTP Request
n8n-nodes-base.httpRequest - Airtable
n8n-nodes-base.airtable - Merge
n8n-nodes-base.merge - HubSpot
n8n-nodes-base.hubspot - Google Sheets
n8n-nodes-base.googleSheets - Gmail Trigger
n8n-nodes-base.gmailTrigger - Extract from File
n8n-nodes-base.extractFromFile - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Manual Trigger
n8n-nodes-base.manualTrigger - Telegram
n8n-nodes-base.telegram - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow ingests business records from an authenticated webhook or PDF attachments in Gmail, then deduplicates, validates, and syncs changes to Airtable and HubSpot. It logs every outcome to Google Sheets, sends Telegram alerts for…