This workflow follows the Agent → Airtable recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"createdAt": "2025-05-21T21:07:04.365Z",
"updatedAt": "2025-05-26T11:51:05.768Z",
"id": "7Elg8xHmE5AnuBIW",
"name": "AI Sales",
"active": false,
"isArchived": false,
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"simple": false,
"filters": {},
"options": {}
},
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.2,
"position": [
2040,
2040
],
"id": "a3912611-dbb6-44a2-9d63-a64235bae5ad",
"name": "Gmail Trigger",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=Email received: {{ $('Switch').item.json.text }}\nfrom: {{ $('Switch').item.json.from.value[0].address }}",
"hasOutputParser": true,
"options": {
"systemMessage": "=##Role\n\nYou are a helpful lead assistant that update lead/client notes and also draft replies to emails\n\n##Task\n\nWhen a new email comes in i want you to first check the airtable base to see what is currently in the notes section and then update it by adding a summary of what the lead said in their email. if you do this then dont output anything as there is no need.\n\nI also want you to use your supplied supabase vector store knowledge base to try reply to the email. scan the knowledge base to see if your able to reply and if you are then give me a subject line and email body. you don't have to do this every time, only when you think its possible\n\nAt the end of every email only sign it by saying:\n\"Thanks, Quiver7\"\n",
"maxIterations": 10
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
3140,
2440
],
"id": "0cce42bc-bfef-44d1-a15f-920092658137",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
2940,
2720
],
"id": "3a7b2b11-6c54-4bb7-8932-5238adb27443",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.from.value[0].address }}",
"rightValue": "notifications@calendly.com",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "270611ad-b3bc-496d-8b9e-90d99759d1b8"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Calendly"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "e3a51c4c-3fb3-4af0-a7e6-29638bb71917",
"leftValue": "={{ $json.from.value[0].address }}",
"rightValue": "notifications@calendly.com",
"operator": {
"type": "string",
"operation": "notEquals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Client/Lead?"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
2240,
2040
],
"id": "94075635-0233-46ab-88d3-dbb38c6f7f4e",
"name": "Switch"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
2680,
1940
],
"id": "5e85352c-8113-4902-af60-af4f4bd74bad",
"name": "OpenAI Chat Model1",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.text }}",
"hasOutputParser": true,
"options": {
"systemMessage": "You will receive an email body for a new meeting reservation\n\nI want you to extract the data points which should be name, email, business name and how we can help them.\n\nPlease output these datapoints in json as separate variables. output just the variables no explanation of summary\n\nIgnore the organiser details it should only be the guest"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
2680,
1720
],
"id": "9bb4434d-85ad-4b8e-a8fc-6c38aee56d79",
"name": "Add lead to CRM"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
3700,
2160
],
"id": "766e8abf-d643-46c5-bd98-6352bf218eeb",
"name": "OpenAI Chat Model2",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=Linkedin Summary: {{ $json.results[0].content }}\nWebsite content: {{ $('Markdown').item.json.data }}",
"options": {
"systemMessage": "You will receive a linkedIn summary and a full website in markdown for a lead.\n\nYour job is to look at both of pieces of data and create a summary of this lead and their company. Output just the summary please\n\nKeep it at 100 words max"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
3700,
1960
],
"id": "00f09238-74de-4f61-9782-a9bf88183586",
"name": "Lead summary Agent"
},
{
"parameters": {
"html": "={{ $json.data }}",
"options": {}
},
"type": "n8n-nodes-base.markdown",
"typeVersion": 1,
"position": [
3700,
1720
],
"id": "72150168-4151-4410-90a9-c67c3e93861e",
"name": "Markdown"
},
{
"parameters": {
"method": "POST",
"url": "https://api.tavily.com/search",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"query\": \"{{ $json.output['Business name'] }}'s main sites homepage URL'\",\n \"topic\": \"general\",\n \"search_depth\": \"basic\",\n \"max_results\": 1,\n \"time_range\": null,\n \"days\": 3,\n \"include_answer\": true,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"include_image_descriptions\": false,\n \"include_domains\": [],\n \"exclude_domains\": []\n}\n",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3180,
1720
],
"id": "29876448-3c77-4bcb-a92e-6d34da837f73",
"name": "Find website URL"
},
{
"parameters": {
"url": "={{ $json.results[0].url }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3520,
1720
],
"id": "c082393e-84e3-4afa-8b69-fe485a85f291",
"name": "Scrape website URL"
},
{
"parameters": {
"method": "POST",
"url": "https://api.tavily.com/search",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"query\": \"{{ $('Add lead to CRM').item.json.output.Name }}'s linkedin Profile URL'\",\n \"topic\": \"general\",\n \"search_depth\": \"basic\",\n \"max_results\": 1,\n \"time_range\": null,\n \"days\": 3,\n \"include_answer\": true,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"include_image_descriptions\": false,\n \"include_domains\": [],\n \"exclude_domains\": []\n}\n",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3880,
1720
],
"id": "63d82a79-f44d-45dd-b385-a1d413a8cc56",
"name": "Find Linkedin URL"
},
{
"parameters": {
"operation": "create",
"base": {
"__rl": true,
"value": "apprymkZe4PtQJRMq",
"mode": "list",
"cachedResultName": "Leads/Clients",
"cachedResultUrl": "https://airtable.com/apprymkZe4PtQJRMq"
},
"table": {
"__rl": true,
"value": "tblQOIU9F5du7iwis",
"mode": "list",
"cachedResultName": "Table 1",
"cachedResultUrl": "https://airtable.com/apprymkZe4PtQJRMq/tblQOIU9F5du7iwis"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Name": "={{ $('Add lead to CRM').item.json.output.Name }}",
"Email Address": "={{ $('Add lead to CRM').item.json.output.Email }}",
"Website URL": "={{ $('Find website URL').item.json.results[0].url }}",
"Linkedin URL": "={{ $('Find Linkedin URL').item.json.results[0].url }}",
"Lead summary": "={{ $('Lead summary Agent').item.json.output }}",
"Notes": "={{ $('Add lead to CRM').item.json.output['how can we help you'] }}",
"Lead Status": "Meeting Scheduled"
},
"matchingColumns": [
"id"
],
"schema": [
{
"id": "Name",
"displayName": "Name",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Email Address",
"displayName": "Email Address",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Website URL",
"displayName": "Website URL",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Lead Status",
"displayName": "Lead Status",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "options",
"options": [
{
"name": "Meeting Scheduled",
"value": "Meeting Scheduled"
},
{
"name": "",
"value": ""
},
{
"name": "",
"value": ""
},
{
"name": "",
"value": ""
},
{
"name": "",
"value": ""
}
],
"readOnly": false,
"removed": false
},
{
"id": "Notes",
"displayName": "Notes",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Linkedin URL",
"displayName": "Linkedin URL",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Lead summary",
"displayName": "Lead summary",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.airtable",
"typeVersion": 2.1,
"position": [
4100,
1960
],
"id": "ca160e20-df93-4dbf-ba5e-d2289f3db7e1",
"name": "Airtable"
},
{
"parameters": {
"authentication": "airtableOAuth2Api",
"operation": "search",
"base": {
"__rl": true,
"value": "appdJ2Ur9XIAx94ZT",
"mode": "list",
"cachedResultName": "Leads/Clients",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT"
},
"table": {
"__rl": true,
"value": "tbliFwVTajNNvPxw3",
"mode": "list",
"cachedResultName": "Table 1",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT/tbliFwVTajNNvPxw3"
},
"options": {}
},
"type": "n8n-nodes-base.airtableTool",
"typeVersion": 2.1,
"position": [
3080,
2760
],
"id": "2434bf51-c69e-47d9-8233-ca3223f24687",
"name": "Airtable1",
"credentials": {
"airtableOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"authentication": "airtableOAuth2Api",
"operation": "update",
"base": {
"__rl": true,
"value": "appdJ2Ur9XIAx94ZT",
"mode": "list",
"cachedResultName": "Leads/Clients",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT"
},
"table": {
"__rl": true,
"value": "tbliFwVTajNNvPxw3",
"mode": "list",
"cachedResultName": "Table 1",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT/tbliFwVTajNNvPxw3"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Notes": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Notes', ``, 'string') }}",
"Email Address": "={{ $('Gmail Trigger').item.json.from.value[0].address }}",
"Lead summary": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Lead_summary', ``, 'string') }}",
"Linkedin URL": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Linkedin_URL', ``, 'string') }}",
"Website URL": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Website_URL', ``, 'string') }}",
"Name": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Name', ``, 'string') }}",
"Status": "Todo"
},
"matchingColumns": [
"Email Address"
],
"schema": [
{
"id": "id",
"displayName": "id",
"required": false,
"defaultMatch": true,
"display": true,
"type": "string",
"readOnly": true,
"removed": false
},
{
"id": "Name",
"displayName": "Name",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Email Address",
"displayName": "Email Address",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Website URL",
"displayName": "Website URL",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Linkedin URL",
"displayName": "Linkedin URL",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Notes",
"displayName": "Notes",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Lead summary",
"displayName": "Lead summary",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "string",
"readOnly": false,
"removed": false
},
{
"id": "Status",
"displayName": "Status",
"required": false,
"defaultMatch": false,
"canBeUsedToMatch": true,
"display": true,
"type": "options",
"options": [
{
"name": "Todo",
"value": "Todo"
},
{
"name": "In progress",
"value": "In progress"
},
{
"name": "Done",
"value": "Done"
}
],
"readOnly": false,
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.airtableTool",
"typeVersion": 2.1,
"position": [
3220,
2780
],
"id": "c849a4d4-dafd-4ccd-b11c-effed30124ad",
"name": "Airtable2",
"credentials": {
"airtableOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"authentication": "airtableOAuth2Api",
"operation": "search",
"base": {
"__rl": true,
"value": "appdJ2Ur9XIAx94ZT",
"mode": "list",
"cachedResultName": "Leads/Clients",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT"
},
"table": {
"__rl": true,
"value": "tbliFwVTajNNvPxw3",
"mode": "list",
"cachedResultName": "Table 1",
"cachedResultUrl": "https://airtable.com/appdJ2Ur9XIAx94ZT/tbliFwVTajNNvPxw3"
},
"options": {}
},
"type": "n8n-nodes-base.airtable",
"typeVersion": 2.1,
"position": [
2640,
2460
],
"id": "cdca13cc-458e-4b62-bc64-da853bd92f08",
"name": "Airtable3",
"alwaysOutputData": true,
"credentials": {
"airtableOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsonSchemaExample": "{\n\t\"Name\": \"test tester\",\n \"Email\": \"example@gmail.com\",\n \"Business name\": \"example\",\n \"how can we help you\": \"test\"\n}"
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
"position": [
2860,
1940
],
"id": "ada2c9d6-d68d-438c-8359-afec8d099798",
"name": "Structured Output Parser"
},
{
"parameters": {
"operation": "sendAndWait",
"sendTo": "sss",
"subject": "Email reply draft",
"message": "=Subject line: {{ $json.output['Email subject line'] }}\n\nEmail body: {{ $json.output['email body'] }}",
"approvalOptions": {
"values": {
"approvalType": "double"
}
},
"options": {}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
3580,
2440
],
"id": "12f531bc-ab4e-4013-879d-2221f0d7b3d5",
"name": "Gmail",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sendTo": "={{ $('Gmail Trigger').item.json.from.value[0].address }}",
"subject": "={{ $('AI Agent').item.json.output['Email subject line'] }}",
"emailType": "text",
"message": "={{ $('AI Agent').item.json.output['email body'] }}",
"options": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
4040,
2420
],
"id": "2c72ba0b-45bb-48cd-a184-3d03dde066f0",
"name": "Gmail1",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsonSchemaExample": "{\n\t\"Email subject line\": \"example\",\n\t\"email body\": \"example\"\n}"
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
"position": [
3640,
2680
],
"id": "41e9e88b-4a4e-464f-b9ce-ab11585faf2f",
"name": "Structured Output Parser1"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.data.approved }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"id": "6309a252-ec13-48bd-a519-b168c17ed757"
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "38d00c03-2571-4ff2-a1b3-94e6c1a62d5f",
"leftValue": "={{ $json.data.approved }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "false",
"singleValue": true
}
}
],
"combinator": "and"
}
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
3780,
2440
],
"id": "1df96eed-645b-4b51-8972-53b88bfb8959",
"name": "Switch1"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "64f8c225-a00a-4f1d-8604-7adebd2e1a45",
"leftValue": "={{ $('Switch').item.json.headers.from }}",
"rightValue": "={{ $json['Email Address'] }}",
"operator": {
"type": "string",
"operation": "contains"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2840,
2460
],
"id": "49a831bc-24a2-4c8a-a5cd-4d3548f720a0",
"name": "If1"
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolName": "agencyknowledgebase",
"toolDescription": "=Retrieve information about the companies frequently asked questions and other details about the agency like their services, testimonials, and contact information.",
"tableName": {
"__rl": true,
"value": "documents",
"mode": "list",
"cachedResultName": "documents"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1.1,
"position": [
3360,
2700
],
"id": "2d7d296c-754b-4247-bc7b-dc298daa7137",
"name": "Supabase Vector Store",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
3380,
2860
],
"id": "775bcc87-b5a1-407f-be5c-7fb7bb731a72",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "1oL5Fka2MDWjZ60YnK_dHfpGtgYORn-lIw9hF2ErQKhE",
"mode": "list",
"cachedResultName": "Mockup FAQs",
"cachedResultUrl": "https://docs.google.com/document/d/1oL5Fka2MDWjZ60YnK_dHfpGtgYORn-lIw9hF2ErQKhE/edit?usp=drivesdk"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
3220,
3180
],
"id": "3d786467-c62f-46c5-882f-3328e121a11e",
"name": "Google Drive",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"mode": "insert",
"tableName": {
"__rl": true,
"value": "Lead Status Email Templates",
"mode": "list",
"cachedResultName": "Lead Status Email Templates"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1.1,
"position": [
3440,
3180
],
"id": "41403da2-f1ca-46cb-b660-34d4738dbd2c",
"name": "Supabase Vector Store1",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"dataType": "binary",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1,
"position": [
3520,
3400
],
"id": "0f9bfafc-a89a-432e-a786-ddb7127c930a",
"name": "Default Data Loader"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"typeVersion": 1,
"position": [
3620,
3600
],
"id": "5397c56c-797f-4b43-af19-a708245acde6",
"name": "Recursive Character Text Splitter"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
2960,
3180
],
"id": "fe11e677-1e3c-4d51-9e88-1899b71e3dc6",
"name": "When clicking \u2018Test workflow\u2019"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
3340,
3480
],
"id": "f1a51fd3-4593-479a-bca7-a7f9934b5883",
"name": "Embeddings OpenAI1",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"content": "## Calendly Lead Capture Workflow\n\nThis workflow automates lead capture from Calendly meeting reservation emails, extracting details like name and business name, enriching them with website and LinkedIn data via Tavily API, and storing them in an Airtable CRM with a generated lead summary.",
"height": 760,
"width": 1900,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2480,
1520
],
"id": "ea6fa41a-81a1-4ef1-9683-4fdf68c3366e",
"name": "Sticky Note"
},
{
"parameters": {
"content": "## Client Email Response and CRM Update Workflow\n\nThis workflow section processes non-Calendly emails from existing leads, updating Airtable CRM notes with email summaries and drafting context-aware replies using a Supabase knowledge base and OpenAI, with human approval via Gmail before sending.",
"height": 700,
"width": 1900
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2480,
2300
],
"id": "4e3f3109-af2e-4680-bf2a-d7065c636908",
"name": "Sticky Note1"
},
{
"parameters": {
"content": "## Knowledge Base Document Ingestion Workflow\n\nThis n8n workflow downloads a mockup FAQ document from Google Drive, processes it using OpenAI embeddings, and inserts it into a Supabase vector store table for use as a knowledge base in client email response automation.",
"height": 700,
"width": 1900,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2480,
3020
],
"id": "fa44d48b-ca2f-49df-b034-bfcc16924237",
"name": "Sticky Note2"
},
{
"parameters": {
"content": "## Email Routing Trigger Workflow\n\nThis workflow initiates with a Gmail trigger polling every minute, routing incoming emails via a switch node to either a Calendly branch for meeting reservations or a client/lead branch for other emails based on the sender's address.",
"height": 580,
"width": 600,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1880,
1800
],
"id": "bf59d677-64fa-4089-b1f0-0805ce65ec1c",
"name": "Sticky Note3"
}
],
"connections": {
"Gmail Trigger": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Add lead to CRM",
"type": "main",
"index": 0
}
],
[
{
"node": "Airtable3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Add lead to CRM",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Add lead to CRM": {
"main": [
[
{
"node": "Find website URL",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Lead summary Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Markdown": {
"main": [
[
{
"node": "Find Linkedin URL",
"type": "main",
"index": 0
}
]
]
},
"Find website URL": {
"main": [
[
{
"node": "Scrape website URL",
"type": "main",
"index": 0
}
]
]
},
"Scrape website URL": {
"main": [
[
{
"node": "Markdown",
"type": "main",
"index": 0
}
]
]
},
"Find Linkedin URL": {
"main": [
[
{
"node": "Lead summary Agent",
"type": "main",
"index": 0
}
]
]
},
"Lead summary Agent": {
"main": [
[
{
"node": "Airtable",
"type": "main",
"index": 0
}
]
]
},
"Airtable1": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Airtable2": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Airtable3": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Add lead to CRM",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Gmail": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "Gmail1",
"type": "main",
"index": 0
}
]
]
},
"If1": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Supabase Vector Store": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Supabase Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Google Drive": {
"main": [
[
{
"node": "Supabase Vector Store1",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Supabase Vector Store1",
"type": "ai_document",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI1": {
"ai_embedding": [
[
{
"node": "Supabase Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"meta": {
"templateCredsSetupCompleted": true
},
"versionId": "fb9e9fc0-9c06-45ba-91d7-5aa0b02a228b",
"triggerCount": 0,
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
airtableOAuth2ApigmailOAuth2googleDriveOAuth2ApiopenAiApisupabaseApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI Sales. Uses gmailTrigger, agent, lmChatOpenAi, httpRequest. Event-driven trigger; 34 nodes.
Source: https://github.com/AndersonNascimentoDosSantos/n8n-workflow-backup/blob/main/ai-sales-7Elg8xHmE5AnuBIW.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Inquiry-Agent. Uses @digitalocean/n8n-nodes-digitalocean-gradient-serverless-inference, stopAndError, googleDocs, gmail. Event-driven trigger; 88 nodes.
A lightweight, self-hosted AI assistant built entirely in n8n. Multi-channel messaging (Telegram, WhatsApp, Gmail), persistent memory, task management, and autonomous work — all in a single visual wor
Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.
Your AI workforce is ready. Are you?
Inquiry-Agent. Uses @digitalocean/n8n-nodes-digitalocean-gradient-serverless-inference, stopAndError, googleDocs, gmail. Event-driven trigger; 80 nodes.