feat: add folder support for workflows (fixes #70)
This commit is contained in:
549
workflows/Gmailtool/0677_Gmailtool_Splitout_Create_Webhook.json
Normal file
549
workflows/Gmailtool/0677_Gmailtool_Splitout_Create_Webhook.json
Normal file
@@ -0,0 +1,549 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"id": "38972c5c-09f4-4120-a468-731e720914e1",
|
||||
"name": "AI Agent",
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"position": [
|
||||
900,
|
||||
-240
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=Title: {{ $json.data.transcript.title }}\n\nParticipants: {{ $json.data.transcript.participants }}\n\nTranscript: {{ JSON.stringify($json.data.transcript.sentences) }}\n\nBullet gist:{{ $json.data.transcript.summary.bullet_gist }}",
|
||||
"agent": "openAiFunctionsAgent",
|
||||
"options": {
|
||||
"systemMessage": "=You get my calls' transcripts from Firefiles.\nThere can be meetings about projects. You can understand if it's about a project if meeting's title contains \"project\". If so - you need to:\n1. Analyze transcript, use tool \"Create Tasks\" to create tasks for me in my AirTable base.\n2. You need to use tool \"Notify Client About Tasks\" to nofity client about his tasks.\n3. If transcript contains info there's a call needed - you'll use \"Create Event\" tool to create call on Google Meet\nCurrent date: {{ $now }}"
|
||||
},
|
||||
"promptType": "define"
|
||||
},
|
||||
"typeVersion": 1.7
|
||||
},
|
||||
{
|
||||
"id": "db5c1bfa-b979-4749-84c8-8cd7d777748c",
|
||||
"name": "OpenAI Chat Model",
|
||||
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
||||
"position": [
|
||||
880,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"model": "gpt-4o",
|
||||
"options": {}
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "9RivS2BmSh1DDBFm",
|
||||
"name": "OpenAi account 3"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "334873ba-ec5c-42b3-b8d0-def79d07c0aa",
|
||||
"name": "Create Tasks",
|
||||
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
|
||||
"position": [
|
||||
1040,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"name": "create_task",
|
||||
"schemaType": "manual",
|
||||
"workflowId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "Jo0BiizccacaChkH",
|
||||
"cachedResultName": "Firefiles AI Agent"
|
||||
},
|
||||
"description": "=Use this tool to create a task. \nFor task creation use only action items for me [YOUR NAME HERE], don't use action items for other participants.",
|
||||
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"description\": \"An array of tasks\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the task\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A detailed description of the task\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"description\": \"Due Date\"\n },\n \"priority\": {\n \"type\": \"string\",\n \"description\": \"Priority. . Please capitalize first letter\"\n },\n \"project_name\": {\n \"type\": \"string\",\n \"description\": \"Name of the project. Word 'Project' shouldn't be included\"\n }\n },\n \"required\": [\n \"name\",\n \"description\",\n \"due_date\",\n \"priority\"\n ],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\n \"items\"\n ],\n \"additionalProperties\": false\n}",
|
||||
"specifyInputSchema": true
|
||||
},
|
||||
"typeVersion": 1.3
|
||||
},
|
||||
{
|
||||
"id": "7fd03a80-71e9-4c47-9870-7a3ad4916149",
|
||||
"name": "Notify Client About Tasks",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1180,
|
||||
40
|
||||
],
|
||||
"webhookId": "519d9406-10ef-4ae1-a747-d278002cac9e",
|
||||
"parameters": {
|
||||
"sendTo": "={{ $fromAI(\"participant_email\",\"participant email \",\"string\") }}",
|
||||
"message": "=Summary:\n{{ $json.data.transcript.summary.bullet_gist }}\n\nAction Items:\n{{ $fromAI(\"participant_action_items\",\"participant action items \",\"string\") }}",
|
||||
"options": {
|
||||
"appendAttribution": false
|
||||
},
|
||||
"subject": "Meeting Summary",
|
||||
"emailType": "text",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "=Use the tool to notify a participant of the meeting with meeting summary and his tasks.\nIMPORTANT: \n1. Please notify participants except for me. My email: [YOUR EMAIL HERE]\n2. When working with tasks - please send only the participant's tasks."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "LhdnHxP8WcSDEHw3",
|
||||
"name": "Gmail account 3"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "094a0e52-a4fa-4078-9b96-80568acb9c51",
|
||||
"name": "Execute Workflow Trigger",
|
||||
"type": "n8n-nodes-base.executeWorkflowTrigger",
|
||||
"position": [
|
||||
460,
|
||||
420
|
||||
],
|
||||
"parameters": {},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "e59e5a29-4509-45cc-9130-181ea432553c",
|
||||
"name": "Split Out",
|
||||
"type": "n8n-nodes-base.splitOut",
|
||||
"position": [
|
||||
680,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldToSplitOut": "query.items"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "dc664650-f74e-4574-95a0-dd4a9bf181a1",
|
||||
"name": "Create Task",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
900,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"base": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "appndgSF4faN4jPXi",
|
||||
"cachedResultUrl": "https://airtable.com/appndgSF4faN4jPXi",
|
||||
"cachedResultName": "Philipp's Base"
|
||||
},
|
||||
"table": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "tblaCSndQsSF3gq7Z",
|
||||
"cachedResultUrl": "https://airtable.com/appndgSF4faN4jPXi/tblaCSndQsSF3gq7Z",
|
||||
"cachedResultName": "Tasks"
|
||||
},
|
||||
"columns": {
|
||||
"value": {
|
||||
"Name": "={{ $json.name }}",
|
||||
"Project": "={{ [$json.project_name] }}",
|
||||
"Due Date": "={{ $json.due_date }}",
|
||||
"Priority": "={{ $json.priority }}",
|
||||
"Description": "={{ $json.description }}"
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"id": "Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Description",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Description",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Priority",
|
||||
"type": "options",
|
||||
"display": true,
|
||||
"options": [
|
||||
{
|
||||
"name": "Low",
|
||||
"value": "Low"
|
||||
},
|
||||
{
|
||||
"name": "Medium",
|
||||
"value": "Medium"
|
||||
},
|
||||
{
|
||||
"name": "Urgent",
|
||||
"value": "Urgent"
|
||||
},
|
||||
{
|
||||
"name": "low",
|
||||
"value": "low"
|
||||
},
|
||||
{
|
||||
"name": "medium",
|
||||
"value": "medium"
|
||||
},
|
||||
{
|
||||
"name": "urgent",
|
||||
"value": "urgent"
|
||||
}
|
||||
],
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Priority",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Due Date",
|
||||
"type": "dateTime",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Due Date",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Project",
|
||||
"type": "array",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Project",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
}
|
||||
],
|
||||
"mappingMode": "defineBelow",
|
||||
"matchingColumns": []
|
||||
},
|
||||
"options": {
|
||||
"typecast": true
|
||||
},
|
||||
"operation": "create"
|
||||
},
|
||||
"credentials": {
|
||||
"airtableTokenApi": {
|
||||
"id": "XT7hvl1w201jtBhx",
|
||||
"name": "Philipp Airtable Personal Access Token account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "6d6f9094-b0b3-495e-ade8-d80c03e727b0",
|
||||
"name": "Create Event",
|
||||
"type": "n8n-nodes-base.googleCalendarTool",
|
||||
"position": [
|
||||
1340,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"end": "={{ $fromAI(\"end_date_time\",\"Date and time of meeting end\",\"string\") }}",
|
||||
"start": "={{ $fromAI(\"start_date_time\",\"Date and time of meeting start\",\"string\") }}",
|
||||
"calendar": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "philipp@lowcoding.dev",
|
||||
"cachedResultName": "philipp@lowcoding.dev"
|
||||
},
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "=Use tool to create Google Calendar Event. Use this tool only when transcript contains information that call should be scheduled.",
|
||||
"additionalFields": {
|
||||
"summary": "={{ $fromAI(\"meeting_name\",\"Meeting name\",\"string\") }}",
|
||||
"attendees": [
|
||||
"={{ $fromAI(\"email\",\"client email\",\"string\") }}"
|
||||
],
|
||||
"conferenceDataUi": {
|
||||
"conferenceDataValues": {
|
||||
"conferenceSolution": "hangoutsMeet"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleCalendarOAuth2Api": {
|
||||
"id": "E5Ufn31vrZLKzh4n",
|
||||
"name": "Google Calendar account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "2406fc01-fd28-403c-9378-473e8748e0dd",
|
||||
"name": "Webhook",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"position": [
|
||||
480,
|
||||
-240
|
||||
],
|
||||
"webhookId": "df852a9f-5ea3-43f2-bd49-d045aba5e9c9",
|
||||
"parameters": {
|
||||
"path": "df852a9f-5ea3-43f2-bd49-d045aba5e9c9",
|
||||
"options": {},
|
||||
"httpMethod": "POST"
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "fe28fa98-4946-4379-970e-6df1a79e2a1e",
|
||||
"name": "Get Meeting Content",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
700,
|
||||
-240
|
||||
],
|
||||
"parameters": {
|
||||
"url": "https://api.fireflies.ai/graphql",
|
||||
"method": "POST",
|
||||
"options": {},
|
||||
"jsonBody": "={\n \"query\": \"query Transcript($transcriptId: String!) { transcript(id: $transcriptId) { title participants speakers { id name } sentences { speaker_name text } summary { bullet_gist } } }\",\n \"variables\": {\n \"transcriptId\": \"{{ $json.meetingId }}\"\n }\n}",
|
||||
"sendBody": true,
|
||||
"sendHeaders": true,
|
||||
"specifyBody": "json",
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"value": "Bearer [YOUR API KEY HERE]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "5eadd00a-9095-4bf3-80ed-e7bc5c49390d",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
620,
|
||||
-360
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace API key for Fireflies\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "93cee18c-2215-4a63-af7b-ddf45729f5e4",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1180,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace connections for Airtable and Google\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "4d792723-4507-486f-9dc7-62bf1b927edd",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
380,
|
||||
340
|
||||
],
|
||||
"parameters": {
|
||||
"width": 820,
|
||||
"height": 280,
|
||||
"content": "### Scenario 2 - Create Tasks tool"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "c5520210-86db-4639-9f8c-ac9055407232",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
380,
|
||||
-460
|
||||
],
|
||||
"parameters": {
|
||||
"width": 1100,
|
||||
"height": 760,
|
||||
"content": "### Scenario 1 - AI agent"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "48d47e44-b7bf-49b3-814b-6969ce97108d",
|
||||
"name": "Sticky Note4",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
800,
|
||||
180
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace OpenAI connection\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "afe4bffa-8937-4c31-8513-0acc6b8858ce",
|
||||
"name": "Sticky Note5",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-360,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 280,
|
||||
"height": 566,
|
||||
"content": "### Set up steps\n\n#### Preparation\n1. **Create Accounts**:\n - [N8N](https://n8n.partnerlinks.io/2hr10zpkki6a): For workflow automation.\n - [Airtable](https://airtable.com/): For database hosting and management.\n - [Fireflies](https://fireflies.ai/): For recording meetings.\n\n#### N8N Workflow\n\n1. **Configure the Webhook**: \n - Set up a webhook to capture meeting completion events and integrate it with Fireflies.\n\n2. **Retrieve Meeting Content**: \n - Use GraphQL API requests to extract meeting details and transcripts, ensuring appropriate authentication through Bearer tokens.\n\n3. **AI Processing Setup**: \n - Define system messages for AI tasks and configure connections to the AI chat model (e.g., OpenAI's GPT) to process transcripts.\n\n4. **Task Creation Logic**: \n - Create structured tasks based on AI output, ensuring necessary details are captured and records are created in Airtable.\n\n5. **Client Notifications**: \n - Use an email node to notify clients about their tasks, ensuring communications are client-specific.\n\n6. **Scheduling Follow-Up Calls**: \n - Set up Google Calendar events if follow-up meetings are required, populating details from the original meeting context.\n\n7. **Final Testing**: \n - Conduct tests to ensure each part of the workflow is functional and seamless, making adjustments as needed based on feedback."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "cbb81fa7-4a97-4a7e-82ce-05250b2c82cf",
|
||||
"name": "Sticky Note6",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-360,
|
||||
-460
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 636.2128494576581,
|
||||
"height": 497.1532689930921,
|
||||
"content": "\n## AI Agent for project management and meetings with Airtable and Fireflies\n**Made by [Philipp Bekher](https://www.linkedin.com/in/philipp-bekher-5437171a4/) from community [5minAI](https://www.skool.com/5minai-2861)**\n\nManaging action items from meetings can often lead to missed tasks and poor follow-up. This automation alleviates that issue by automatically generating tasks from meeting transcripts, keeping everyone informed about their responsibilities and streamlining communication.\n\nThe workflow leverages n8n to create a Smart Agent that listens for completed meeting transcripts, processes them using AI, and generates tasks in Airtable. Key functionalities include:\n- Capturing completed meeting events through webhooks.\n- Extracting relevant meeting details such as transcripts and participants using API calls.\n- Generating structured tasks from meeting discussions and sending notifications to clients.\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "6d367721-875d-4d43-bd55-9801796a0e9f",
|
||||
"name": "Sticky Note7",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-60,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 330.5152611046425,
|
||||
"height": 239.5888196628349,
|
||||
"content": "### ... or watch set up video [10 min]\n[](https://www.youtube.com/watch?v=0TyX7G00x3A)\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get Meeting Content",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"AI Agent": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Split Out": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create Task",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Event": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Tasks": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"OpenAI Chat Model": {
|
||||
"ai_languageModel": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_languageModel",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Meeting Content": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Execute Workflow Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Split Out",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Notify Client About Tasks": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,320 @@
|
||||
{
|
||||
"id": "7eyNPahKcCuqK39V",
|
||||
"meta": {
|
||||
"instanceId": "a2b23892dd6989fda7c1209b381f5850373a7d2b85609624d7c2b7a092671d44",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "DeepSeek v3.1",
|
||||
"tags": [
|
||||
{
|
||||
"id": "ZGwSiT2o3NGleZvi",
|
||||
"name": "DeepSeek",
|
||||
"createdAt": "2025-03-28T00:29:11.856Z",
|
||||
"updatedAt": "2025-03-28T00:29:11.856Z"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "5ccc1b78-0795-4653-8438-c9a65781e516",
|
||||
"name": "Watch Notion Updates",
|
||||
"type": "n8n-nodes-base.notionTrigger",
|
||||
"position": [
|
||||
-620,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"event": "pagedUpdatedInDatabase",
|
||||
"pollTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyHour"
|
||||
}
|
||||
]
|
||||
},
|
||||
"databaseId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "1c33d655-0fd9-8057-ac1a-eabf12d12f6b",
|
||||
"__regex": "^([0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12})"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "5rz9xchmiSCmcoOx",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "f6bcd3cd-6bf9-42d7-a54a-31e945d5730d",
|
||||
"name": "AI Task Planner",
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"position": [
|
||||
320,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=You are an expert in SEO content writing.\nYour mission is to create, publish, and notify about a search engine-optimized article for a blog.\nHere are the keywords related to my topic: {{ $('Watch Notion Updates').item.json.Name }}\n\nFollow the steps below:\n\n1. **Write an SEO-optimized article with a maximum of 20 lines** based on the provided information:\n - Structure the article with a catchy **H1 title**, one or two **H2 subtitles**, and a professional yet accessible tone.\n - Extract and include relevant keywords from the data.\n - Optimize for readability: short sentences, clear paragraphs, and a CTA if relevant.\n - Do not exceed 20 lines of content.\n\n2. **Publish the article on WordPress**, including:\n - The **title** as the article's headline\n - The **SEO content** as the body\n\n3. **Send an email** to my address : {{ $json.emailAddress }} containing:\n - The article's title\n - The **URL** of the published article on WordPress\n\n4. **Retrieve the list of available Notion tools first** using “Notion Tools”.\n Then, **add a update the entry to my Notion database** (ID database: {{ $json.notionDatabaseId }}) ID items : {{ $json.notionItemId }}\nwith the following fields:\n - The 'Name' column is of type 'title' → {{ $('Watch Notion Updates').item.json.Name }}\n The 'Subject' column is of type 'rich_text' → [the article's headline]\n - The 'Content'column is of type 'rich_text' → [The SEO content]\n - The 'URL' column is of type 'URL': → [The article link]\n - The 'Status' column is of type 'select' → Select: `publish`\n\nImportant: Ensure that each step is successfully completed **before proceeding to the next**.",
|
||||
"options": {},
|
||||
"promptType": "define"
|
||||
},
|
||||
"typeVersion": 1.7
|
||||
},
|
||||
{
|
||||
"id": "1627a1ae-424e-4124-ac09-bd0f7bc92d2b",
|
||||
"name": "Send Email",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
380,
|
||||
160
|
||||
],
|
||||
"webhookId": "f87279e8-34e4-4fd1-81d3-677707e215de",
|
||||
"parameters": {
|
||||
"sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {},
|
||||
"subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "rKxQHWZ2F5XLJmwF",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "c9c6f4f5-59ff-4c58-8fbd-f7cc0bd3eb2d",
|
||||
"name": "Publish Blog Post",
|
||||
"type": "n8n-nodes-base.wordpressTool",
|
||||
"position": [
|
||||
500,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"title": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Title', ``, 'string') }}",
|
||||
"additionalFields": {
|
||||
"status": "draft",
|
||||
"content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Content', ``, 'string') }}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"wordpressApi": {
|
||||
"id": "KIuXvzjOEnOsHKQE",
|
||||
"name": "Wordpress account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "0064198f-cfe0-424b-9a75-afbdd8a67c14",
|
||||
"name": "Notion List Available Tools",
|
||||
"type": "n8n-nodes-mcp.mcpClientTool",
|
||||
"position": [
|
||||
660,
|
||||
160
|
||||
],
|
||||
"parameters": {},
|
||||
"credentials": {
|
||||
"mcpClientApi": {
|
||||
"id": "QQbMEB7i2XAAWTSc",
|
||||
"name": "Notion"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "fac061a7-0e91-4944-82f6-463db3e418ce",
|
||||
"name": "Notion Run a Tool",
|
||||
"type": "n8n-nodes-mcp.mcpClientTool",
|
||||
"position": [
|
||||
820,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"toolName": "={{ $fromAI(\"tool\", \"the tool selected\") }}",
|
||||
"operation": "executeTool",
|
||||
"toolParameters": "={{ $fromAI('tool_parameters', ``, 'json') }}"
|
||||
},
|
||||
"credentials": {
|
||||
"mcpClientApi": {
|
||||
"id": "QQbMEB7i2XAAWTSc",
|
||||
"name": "Notion"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "378f291a-bea7-47b3-a629-07fb8d3f9110",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-60,
|
||||
-220
|
||||
],
|
||||
"parameters": {
|
||||
"width": 1100,
|
||||
"height": 580,
|
||||
"content": "## Smart Content Automation Workflow\nAutomatically reacts to Notion updates, uses AI to process data, and triggers actions like sending emails or publishing blog posts.\n**Openrouter** : [API](https://openrouter.ai/settings/keys)"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "5a8d00c1-752d-4573-ace8-e578b58892d4",
|
||||
"name": "Edit Workflow Variables",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
-300,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"assignments": {
|
||||
"assignments": [
|
||||
{
|
||||
"id": "c06b2d24-1fd7-40f0-aee5-b5d6553e289e",
|
||||
"name": "emailAddress",
|
||||
"type": "string",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"id": "8a294900-f367-47a2-b260-344b133dc2ff",
|
||||
"name": "notionDatabaseId",
|
||||
"type": "string",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"id": "a34469ad-5229-4c4d-bc5d-71c88686bd37",
|
||||
"name": "notionItemId",
|
||||
"type": "string",
|
||||
"value": "={{ $json.id }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 3.4,
|
||||
"alwaysOutputData": true
|
||||
},
|
||||
{
|
||||
"id": "3e76c55d-9052-4568-9e21-29e8fd305369",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-440,
|
||||
-220
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 360,
|
||||
"height": 300,
|
||||
"content": "## Workflow Configuration Panel\n🛠️ **Set your variables here** (email, Slack, Notion, OpenAI model)"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "27f461de-609a-4743-829c-74705191e692",
|
||||
"name": "DeepSeek Chat Model",
|
||||
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
|
||||
"position": [
|
||||
100,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"credentials": {
|
||||
"deepSeekApi": {
|
||||
"id": "N4JPoebNdVQUNxXH",
|
||||
"name": "DeepSeek account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"active": false,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "1eae918e-03f8-49d8-9dea-cf0e441e679d",
|
||||
"connections": {
|
||||
"Send Email": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Notion Run a Tool": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Publish Blog Post": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"DeepSeek Chat Model": {
|
||||
"ai_languageModel": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "ai_languageModel",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Watch Notion Updates": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Workflow Variables",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Workflow Variables": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Notion List Available Tools": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Task Planner",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,549 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"id": "38972c5c-09f4-4120-a468-731e720914e1",
|
||||
"name": "AI Agent",
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"position": [
|
||||
900,
|
||||
-240
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=Title: {{ $json.data.transcript.title }}\n\nParticipants: {{ $json.data.transcript.participants }}\n\nTranscript: {{ JSON.stringify($json.data.transcript.sentences) }}\n\nBullet gist:{{ $json.data.transcript.summary.bullet_gist }}",
|
||||
"agent": "openAiFunctionsAgent",
|
||||
"options": {
|
||||
"systemMessage": "=You get my calls' transcripts from Firefiles.\nThere can be meetings about projects. You can understand if it's about a project if meeting's title contains \"project\". If so - you need to:\n1. Analyze transcript, use tool \"Create Tasks\" to create tasks for me in my AirTable base.\n2. You need to use tool \"Notify Client About Tasks\" to nofity client about his tasks.\n3. If transcript contains info there's a call needed - you'll use \"Create Event\" tool to create call on Google Meet\nCurrent date: {{ $now }}"
|
||||
},
|
||||
"promptType": "define"
|
||||
},
|
||||
"typeVersion": 1.7
|
||||
},
|
||||
{
|
||||
"id": "db5c1bfa-b979-4749-84c8-8cd7d777748c",
|
||||
"name": "OpenAI Chat Model",
|
||||
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
||||
"position": [
|
||||
880,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"model": "gpt-4o",
|
||||
"options": {}
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "9RivS2BmSh1DDBFm",
|
||||
"name": "OpenAi account 3"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "334873ba-ec5c-42b3-b8d0-def79d07c0aa",
|
||||
"name": "Create Tasks",
|
||||
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
|
||||
"position": [
|
||||
1040,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"name": "create_task",
|
||||
"schemaType": "manual",
|
||||
"workflowId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "Jo0BiizccacaChkH",
|
||||
"cachedResultName": "Firefiles AI Agent"
|
||||
},
|
||||
"description": "=Use this tool to create a task. \nFor task creation use only action items for me [YOUR NAME HERE], don't use action items for other participants.",
|
||||
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"description\": \"An array of tasks\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the task\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A detailed description of the task\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"description\": \"Due Date\"\n },\n \"priority\": {\n \"type\": \"string\",\n \"description\": \"Priority. . Please capitalize first letter\"\n },\n \"project_name\": {\n \"type\": \"string\",\n \"description\": \"Name of the project. Word 'Project' shouldn't be included\"\n }\n },\n \"required\": [\n \"name\",\n \"description\",\n \"due_date\",\n \"priority\"\n ],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\n \"items\"\n ],\n \"additionalProperties\": false\n}",
|
||||
"specifyInputSchema": true
|
||||
},
|
||||
"typeVersion": 1.3
|
||||
},
|
||||
{
|
||||
"id": "7fd03a80-71e9-4c47-9870-7a3ad4916149",
|
||||
"name": "Notify Client About Tasks",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1180,
|
||||
40
|
||||
],
|
||||
"webhookId": "519d9406-10ef-4ae1-a747-d278002cac9e",
|
||||
"parameters": {
|
||||
"sendTo": "={{ $fromAI(\"participant_email\",\"participant email \",\"string\") }}",
|
||||
"message": "=Summary:\n{{ $json.data.transcript.summary.bullet_gist }}\n\nAction Items:\n{{ $fromAI(\"participant_action_items\",\"participant action items \",\"string\") }}",
|
||||
"options": {
|
||||
"appendAttribution": false
|
||||
},
|
||||
"subject": "Meeting Summary",
|
||||
"emailType": "text",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "=Use the tool to notify a participant of the meeting with meeting summary and his tasks.\nIMPORTANT: \n1. Please notify participants except for me. My email: [YOUR EMAIL HERE]\n2. When working with tasks - please send only the participant's tasks."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "LhdnHxP8WcSDEHw3",
|
||||
"name": "Gmail account 3"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "094a0e52-a4fa-4078-9b96-80568acb9c51",
|
||||
"name": "Execute Workflow Trigger",
|
||||
"type": "n8n-nodes-base.executeWorkflowTrigger",
|
||||
"position": [
|
||||
460,
|
||||
420
|
||||
],
|
||||
"parameters": {},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "e59e5a29-4509-45cc-9130-181ea432553c",
|
||||
"name": "Split Out",
|
||||
"type": "n8n-nodes-base.splitOut",
|
||||
"position": [
|
||||
680,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldToSplitOut": "query.items"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "dc664650-f74e-4574-95a0-dd4a9bf181a1",
|
||||
"name": "Create Task",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
900,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"base": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "appndgSF4faN4jPXi",
|
||||
"cachedResultUrl": "https://airtable.com/appndgSF4faN4jPXi",
|
||||
"cachedResultName": "Philipp's Base"
|
||||
},
|
||||
"table": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "tblaCSndQsSF3gq7Z",
|
||||
"cachedResultUrl": "https://airtable.com/appndgSF4faN4jPXi/tblaCSndQsSF3gq7Z",
|
||||
"cachedResultName": "Tasks"
|
||||
},
|
||||
"columns": {
|
||||
"value": {
|
||||
"Name": "={{ $json.name }}",
|
||||
"Project": "={{ [$json.project_name] }}",
|
||||
"Due Date": "={{ $json.due_date }}",
|
||||
"Priority": "={{ $json.priority }}",
|
||||
"Description": "={{ $json.description }}"
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"id": "Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Description",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Description",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Priority",
|
||||
"type": "options",
|
||||
"display": true,
|
||||
"options": [
|
||||
{
|
||||
"name": "Low",
|
||||
"value": "Low"
|
||||
},
|
||||
{
|
||||
"name": "Medium",
|
||||
"value": "Medium"
|
||||
},
|
||||
{
|
||||
"name": "Urgent",
|
||||
"value": "Urgent"
|
||||
},
|
||||
{
|
||||
"name": "low",
|
||||
"value": "low"
|
||||
},
|
||||
{
|
||||
"name": "medium",
|
||||
"value": "medium"
|
||||
},
|
||||
{
|
||||
"name": "urgent",
|
||||
"value": "urgent"
|
||||
}
|
||||
],
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Priority",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Due Date",
|
||||
"type": "dateTime",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Due Date",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Project",
|
||||
"type": "array",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "Project",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
}
|
||||
],
|
||||
"mappingMode": "defineBelow",
|
||||
"matchingColumns": []
|
||||
},
|
||||
"options": {
|
||||
"typecast": true
|
||||
},
|
||||
"operation": "create"
|
||||
},
|
||||
"credentials": {
|
||||
"airtableTokenApi": {
|
||||
"id": "XT7hvl1w201jtBhx",
|
||||
"name": "Philipp Airtable Personal Access Token account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "6d6f9094-b0b3-495e-ade8-d80c03e727b0",
|
||||
"name": "Create Event",
|
||||
"type": "n8n-nodes-base.googleCalendarTool",
|
||||
"position": [
|
||||
1340,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"end": "={{ $fromAI(\"end_date_time\",\"Date and time of meeting end\",\"string\") }}",
|
||||
"start": "={{ $fromAI(\"start_date_time\",\"Date and time of meeting start\",\"string\") }}",
|
||||
"calendar": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "philipp@lowcoding.dev",
|
||||
"cachedResultName": "philipp@lowcoding.dev"
|
||||
},
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "=Use tool to create Google Calendar Event. Use this tool only when transcript contains information that call should be scheduled.",
|
||||
"additionalFields": {
|
||||
"summary": "={{ $fromAI(\"meeting_name\",\"Meeting name\",\"string\") }}",
|
||||
"attendees": [
|
||||
"={{ $fromAI(\"email\",\"client email\",\"string\") }}"
|
||||
],
|
||||
"conferenceDataUi": {
|
||||
"conferenceDataValues": {
|
||||
"conferenceSolution": "hangoutsMeet"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleCalendarOAuth2Api": {
|
||||
"id": "E5Ufn31vrZLKzh4n",
|
||||
"name": "Google Calendar account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "2406fc01-fd28-403c-9378-473e8748e0dd",
|
||||
"name": "Webhook",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"position": [
|
||||
480,
|
||||
-240
|
||||
],
|
||||
"webhookId": "df852a9f-5ea3-43f2-bd49-d045aba5e9c9",
|
||||
"parameters": {
|
||||
"path": "df852a9f-5ea3-43f2-bd49-d045aba5e9c9",
|
||||
"options": {},
|
||||
"httpMethod": "POST"
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "fe28fa98-4946-4379-970e-6df1a79e2a1e",
|
||||
"name": "Get Meeting Content",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
700,
|
||||
-240
|
||||
],
|
||||
"parameters": {
|
||||
"url": "https://api.fireflies.ai/graphql",
|
||||
"method": "POST",
|
||||
"options": {},
|
||||
"jsonBody": "={\n \"query\": \"query Transcript($transcriptId: String!) { transcript(id: $transcriptId) { title participants speakers { id name } sentences { speaker_name text } summary { bullet_gist } } }\",\n \"variables\": {\n \"transcriptId\": \"{{ $json.meetingId }}\"\n }\n}",
|
||||
"sendBody": true,
|
||||
"sendHeaders": true,
|
||||
"specifyBody": "json",
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"value": "Bearer [YOUR API KEY HERE]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "5eadd00a-9095-4bf3-80ed-e7bc5c49390d",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
620,
|
||||
-360
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace API key for Fireflies\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "93cee18c-2215-4a63-af7b-ddf45729f5e4",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1180,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace connections for Airtable and Google\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "4d792723-4507-486f-9dc7-62bf1b927edd",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
380,
|
||||
340
|
||||
],
|
||||
"parameters": {
|
||||
"width": 820,
|
||||
"height": 280,
|
||||
"content": "### Scenario 2 - Create Tasks tool"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "c5520210-86db-4639-9f8c-ac9055407232",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
380,
|
||||
-460
|
||||
],
|
||||
"parameters": {
|
||||
"width": 1100,
|
||||
"height": 760,
|
||||
"content": "### Scenario 1 - AI agent"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "48d47e44-b7bf-49b3-814b-6969ce97108d",
|
||||
"name": "Sticky Note4",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
800,
|
||||
180
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 80,
|
||||
"content": "### Replace OpenAI connection\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "afe4bffa-8937-4c31-8513-0acc6b8858ce",
|
||||
"name": "Sticky Note5",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-360,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 280,
|
||||
"height": 566,
|
||||
"content": "### Set up steps\n\n#### Preparation\n1. **Create Accounts**:\n - [N8N](https://n8n.partnerlinks.io/2hr10zpkki6a): For workflow automation.\n - [Airtable](https://airtable.com/): For database hosting and management.\n - [Fireflies](https://fireflies.ai/): For recording meetings.\n\n#### N8N Workflow\n\n1. **Configure the Webhook**: \n - Set up a webhook to capture meeting completion events and integrate it with Fireflies.\n\n2. **Retrieve Meeting Content**: \n - Use GraphQL API requests to extract meeting details and transcripts, ensuring appropriate authentication through Bearer tokens.\n\n3. **AI Processing Setup**: \n - Define system messages for AI tasks and configure connections to the AI chat model (e.g., OpenAI's GPT) to process transcripts.\n\n4. **Task Creation Logic**: \n - Create structured tasks based on AI output, ensuring necessary details are captured and records are created in Airtable.\n\n5. **Client Notifications**: \n - Use an email node to notify clients about their tasks, ensuring communications are client-specific.\n\n6. **Scheduling Follow-Up Calls**: \n - Set up Google Calendar events if follow-up meetings are required, populating details from the original meeting context.\n\n7. **Final Testing**: \n - Conduct tests to ensure each part of the workflow is functional and seamless, making adjustments as needed based on feedback."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "cbb81fa7-4a97-4a7e-82ce-05250b2c82cf",
|
||||
"name": "Sticky Note6",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-360,
|
||||
-460
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 636.2128494576581,
|
||||
"height": 497.1532689930921,
|
||||
"content": "\n## AI Agent for project management and meetings with Airtable and Fireflies\n**Made by [Philipp Bekher](https://www.linkedin.com/in/philipp-bekher-5437171a4/) from community [5minAI](https://www.skool.com/5minai-2861)**\n\nManaging action items from meetings can often lead to missed tasks and poor follow-up. This automation alleviates that issue by automatically generating tasks from meeting transcripts, keeping everyone informed about their responsibilities and streamlining communication.\n\nThe workflow leverages n8n to create a Smart Agent that listens for completed meeting transcripts, processes them using AI, and generates tasks in Airtable. Key functionalities include:\n- Capturing completed meeting events through webhooks.\n- Extracting relevant meeting details such as transcripts and participants using API calls.\n- Generating structured tasks from meeting discussions and sending notifications to clients.\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "6d367721-875d-4d43-bd55-9801796a0e9f",
|
||||
"name": "Sticky Note7",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-60,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 330.5152611046425,
|
||||
"height": 239.5888196628349,
|
||||
"content": "### ... or watch set up video [10 min]\n[](https://www.youtube.com/watch?v=0TyX7G00x3A)\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get Meeting Content",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"AI Agent": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Split Out": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create Task",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Event": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Tasks": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"OpenAI Chat Model": {
|
||||
"ai_languageModel": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_languageModel",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Meeting Content": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Execute Workflow Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Split Out",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Notify Client About Tasks": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,902 @@
|
||||
{
|
||||
"id": "QaMO9ji6T6vTZHQ4",
|
||||
"meta": {
|
||||
"instanceId": "8029058e18ae4ed6081000c1270d96039ad05959052aa2034dd96a215849bcf7"
|
||||
},
|
||||
"name": "Gmail MCP Server",
|
||||
"tags": [
|
||||
{
|
||||
"id": "mce0brNtJ0q1uqig",
|
||||
"name": "Agent Tool",
|
||||
"createdAt": "2025-02-25T18:11:08.555Z",
|
||||
"updatedAt": "2025-02-25T18:11:08.555Z"
|
||||
},
|
||||
{
|
||||
"id": "Yt5ECnELP8JYcw9w",
|
||||
"name": "Gmail",
|
||||
"createdAt": "2025-04-18T01:59:21.577Z",
|
||||
"updatedAt": "2025-04-18T01:59:21.577Z"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "b7c0a52d-cd86-43a6-9b53-acf7d24bfccc",
|
||||
"name": "addLabels",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
560,
|
||||
800
|
||||
],
|
||||
"webhookId": "81d61988-8213-4175-b75d-76cb67ce4a3b",
|
||||
"parameters": {
|
||||
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "addLabels",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Add one or more labels to an email message. AI-configurable parameters: Message_ID (string) - the ID of the message to label; Label_Names_or_IDs (string) - comma-separated label names or IDs to apply."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "21f26146-97e4-4643-9bf2-0d704ec589e8",
|
||||
"name": "delete",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
280,
|
||||
600
|
||||
],
|
||||
"webhookId": "03319c28-ef88-40f4-897c-f44c21dbdf1f",
|
||||
"parameters": {
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "delete",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Delete an email message. AI-configurable parameters: Message_ID (string) - the ID of the message to delete."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "fd868497-787c-460b-87dc-e99572465c89",
|
||||
"name": "get",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
400,
|
||||
600
|
||||
],
|
||||
"webhookId": "cf5acbf3-a08f-4da6-9f14-9751eed6e5b8",
|
||||
"parameters": {
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "get",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve details of an email message. AI-configurable parameters: Message_ID (string) - the ID of the message to retrieve."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "43f6229f-c294-41ce-8f4b-ebcab0026730",
|
||||
"name": "search",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
520,
|
||||
600
|
||||
],
|
||||
"webhookId": "cb3d028a-6cab-4946-b368-aa56bf271af9",
|
||||
"parameters": {
|
||||
"filters": {
|
||||
"q": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Search', ``, 'string') }}",
|
||||
"sender": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Sender', ``, 'string') }}",
|
||||
"receivedAfter": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_After', ``, 'string') }}",
|
||||
"receivedBefore": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_Before', ``, 'string') }}"
|
||||
},
|
||||
"operation": "getAll",
|
||||
"returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve multiple email messages based on filters. AI-configurable parameters: Return_All (boolean) - whether to return all matching messages; Search (string) - Gmail query string to filter messages; Received_After (string) - datetime (RFC3339) after which messages are received; Received_Before (string) - datetime before which messages are received; Sender (string) - email address of the sender."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "f01ba35c-a67f-4603-afb2-9990bd73a026",
|
||||
"name": "markAsRead",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
120,
|
||||
800
|
||||
],
|
||||
"webhookId": "e769b7cf-9622-434d-b98d-4bde7653238d",
|
||||
"parameters": {
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "markAsRead",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Mark an email message as read. AI-configurable parameters: Message_ID (string) - the ID of the message to mark as read."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "c8e77334-a50a-4117-beec-f8101d879e9e",
|
||||
"name": "markAsUnread",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
280,
|
||||
800
|
||||
],
|
||||
"webhookId": "c26a8635-4329-498e-b293-4350baed493d",
|
||||
"parameters": {
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "markAsUnread",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Mark an email message as unread. AI-configurable parameters: Message_ID (string) - the ID of the message to mark as unread."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "ac7339b7-e246-4ad8-a82c-f3abc6b87942",
|
||||
"name": "reply",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
140,
|
||||
600
|
||||
],
|
||||
"webhookId": "fbd30b84-25ac-4bab-8a66-5366b9b7a0be",
|
||||
"parameters": {
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {
|
||||
"ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
|
||||
"bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}",
|
||||
"attachmentsUi": {
|
||||
"attachmentsBinary": [
|
||||
{
|
||||
"property": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Attachment_Field_Name', ``, 'string') }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"appendAttribution": false
|
||||
},
|
||||
"emailType": "text",
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "reply",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Reply to an email message. AI-configurable parameters: Message_ID (string) - the ID of the message; Message (string) - the reply content; Attachment_Field_Name (string) - input field name containing attachments; BCC (string) - comma-separated BCC recipients; CC (string) - comma-separated CC recipients."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "fd87d9a3-5823-402a-9d9e-0c114a556f8a",
|
||||
"name": "removeLabels",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
420,
|
||||
800
|
||||
],
|
||||
"webhookId": "e83fb7ee-2716-444b-9a4e-208eea215728",
|
||||
"parameters": {
|
||||
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "removeLabels",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Remove one or more labels from an email message. AI-configurable parameters: Message_ID (string) - the ID of the message; Label_Names_or_IDs (string) - comma-separated label names or IDs to remove."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "a36630c8-3b6a-4703-94fa-80747eb4931c",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
40,
|
||||
520
|
||||
],
|
||||
"parameters": {
|
||||
"width": 660,
|
||||
"height": 460,
|
||||
"content": "## Message Tools\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "b5c7fdd7-9842-4720-b13e-1fa3611fc320",
|
||||
"name": "getLabels",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
840,
|
||||
620
|
||||
],
|
||||
"webhookId": "1f107973-fe4a-440c-aaef-f35e1e8a555a",
|
||||
"parameters": {
|
||||
"resource": "label",
|
||||
"returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve a list of labels. AI-configurable parameters: Return_All (boolean) - whether to return all labels."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "18daa9a3-9e1a-4b4b-ad8d-bf35402baaa6",
|
||||
"name": "getLabel",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
980,
|
||||
620
|
||||
],
|
||||
"webhookId": "e9d3b2c0-50ea-4b3b-8509-f89dc4f20fb5",
|
||||
"parameters": {
|
||||
"labelId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_ID', ``, 'string') }}",
|
||||
"resource": "label",
|
||||
"operation": "get",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve details of a specific label. AI-configurable parameters: Label_ID (string) - the ID of the label to retrieve."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "cc7ba925-83c9-4870-9647-11042666fd5b",
|
||||
"name": "deleteLabel",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
840,
|
||||
820
|
||||
],
|
||||
"webhookId": "80a61a7c-f7a0-4fc9-a0a8-edd5846b4e11",
|
||||
"parameters": {
|
||||
"labelId": "={{ $fromAI('Label_ID', ``, 'string') }}",
|
||||
"resource": "label",
|
||||
"operation": "delete",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Delete a label. AI-configurable parameters: Label_ID (string) - the ID of the label to delete."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "23b28b37-cc69-4bc9-b0e4-88b09b355f3e",
|
||||
"name": "createLabel",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1000,
|
||||
820
|
||||
],
|
||||
"webhookId": "d24d1672-4f76-4f58-912b-9345d23ba922",
|
||||
"parameters": {
|
||||
"name": "={{ $fromAI('Label_ID', ``, 'string') }}",
|
||||
"options": {},
|
||||
"resource": "label",
|
||||
"operation": "create",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Create a new label. AI-configurable parameters: Label_ID (string) - the name of the label to create."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "db6f3147-e672-497b-922e-cb8c74dd3006",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
760,
|
||||
520
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"width": 380,
|
||||
"height": 440,
|
||||
"content": "## Label Tools\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "16d28e54-ac27-462e-9316-efe2959dd48c",
|
||||
"name": "deleteDraft",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1300,
|
||||
280
|
||||
],
|
||||
"webhookId": "8eb35ae4-6517-421b-b54f-ba0610cf58f4",
|
||||
"parameters": {
|
||||
"resource": "draft",
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Draft_ID', ``, 'string') }}",
|
||||
"operation": "delete",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Delete an email draft. AI-configurable parameters: Draft_ID (string) - the ID of the draft to delete."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "cca355a2-2a90-4084-a65f-5a67b7732192",
|
||||
"name": "createDraft",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1300,
|
||||
100
|
||||
],
|
||||
"webhookId": "1cca6c42-ccd9-4144-a2b1-6266d848f6ab",
|
||||
"parameters": {
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {
|
||||
"ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
|
||||
"bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}",
|
||||
"attachmentsUi": {
|
||||
"attachmentsBinary": [
|
||||
{
|
||||
"property": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Attachment_Field_Name__in_Input_', ``, 'string') }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
|
||||
"resource": "draft",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Create an email draft. AI-configurable parameters: Subject (string) - the subject of the draft; Message (string) - the body of the draft; Attachment_Field_Name__in_Input_ (string) - input field name containing attachments; BCC (string) - comma-separated BCC recipients; CC (string) - comma-separated CC recipients."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "5c22063a-2480-4a57-9184-7cf26ff07caa",
|
||||
"name": "getDraft",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1480,
|
||||
100
|
||||
],
|
||||
"webhookId": "80eadc8e-9d6b-42e7-9ac4-5b26d21fb3c5",
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"resource": "draft",
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Draft_ID', ``, 'string') }}",
|
||||
"operation": "get",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve an email draft. AI-configurable parameters: Draft_ID (string) - the ID of the draft to retrieve."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "fba8022d-9b11-4bb6-b8c2-826e1fa9a8e6",
|
||||
"name": "getManyDrafts",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1480,
|
||||
280
|
||||
],
|
||||
"webhookId": "6aaf2777-d1c1-490b-a82f-eaab6caefe85",
|
||||
"parameters": {
|
||||
"options": {
|
||||
"includeSpamTrash": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Include_Spam_and_Trash', ``, 'boolean') }}"
|
||||
},
|
||||
"resource": "draft",
|
||||
"operation": "getAll",
|
||||
"returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve multiple email drafts. AI-configurable parameters: Return_All (boolean) - whether to return all drafts; Include_Spam_and_Trash (boolean) - whether to include drafts in spam or trash."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "af313dbf-f1d3-44b8-86b0-a8d8deb44359",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1220,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"color": 5,
|
||||
"width": 380,
|
||||
"height": 440,
|
||||
"content": "## Draft Tools\n\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "34fc23f5-8b5e-4dfb-b7bf-5eca839a1799",
|
||||
"name": "getManyThreads",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1260,
|
||||
620
|
||||
],
|
||||
"webhookId": "233fb55f-2575-4cbd-a327-e27858e98cd9",
|
||||
"parameters": {
|
||||
"filters": {
|
||||
"q": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Search', ``, 'string') }}",
|
||||
"receivedAfter": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_After', ``, 'string') }}",
|
||||
"receivedBefore": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_Before', ``, 'string') }}"
|
||||
},
|
||||
"resource": "thread",
|
||||
"returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve multiple email threads based on filters. AI-configurable parameters: Return_All (boolean) - whether to return all threads; Search (string) - Gmail query string to filter threads; Received_After (string) - datetime after which threads are received; Received_Before (string) - datetime before which threads are received."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "5803ff85-b894-4d9d-bcca-4877d3255dbd",
|
||||
"name": "getThread",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1420,
|
||||
620
|
||||
],
|
||||
"webhookId": "9ecfaf0c-8d43-4b46-86bb-de5117b657c1",
|
||||
"parameters": {
|
||||
"options": {
|
||||
"returnOnlyMessages": true
|
||||
},
|
||||
"resource": "thread",
|
||||
"threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
|
||||
"operation": "get",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Retrieve details of an email thread. AI-configurable parameters: Thread_ID (string) - the ID of the thread to retrieve."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "07547fdc-3524-45cf-89c1-d871008e5897",
|
||||
"name": "addLabelThread",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1580,
|
||||
620
|
||||
],
|
||||
"webhookId": "c7a99e26-cb22-4675-b5a8-fb7acd302983",
|
||||
"parameters": {
|
||||
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
|
||||
"resource": "thread",
|
||||
"threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
|
||||
"operation": "addLabels",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Add one or more labels to an email thread. AI-configurable parameters: Thread_ID (string) - the ID of the thread; Label_Names_or_IDs (string) - comma-separated label names or IDs to apply."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "2214607d-2ac2-4885-98b7-0c424f3c4af7",
|
||||
"name": "removeLabelThread",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1260,
|
||||
800
|
||||
],
|
||||
"webhookId": "cb63a038-73ba-4488-b70e-e3b8c48ee1b6",
|
||||
"parameters": {
|
||||
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
|
||||
"resource": "thread",
|
||||
"threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
|
||||
"operation": "removeLabels",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Remove one or more labels from an email thread. AI-configurable parameters: Thread_ID (string) - the ID of the thread; Label_Names_or_IDs (string) - comma-separated label names or IDs to remove."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "ed15784b-58e1-40c0-8c87-1d0667802188",
|
||||
"name": "replyThread",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
1420,
|
||||
800
|
||||
],
|
||||
"webhookId": "b10a9bfd-eca1-40fd-817e-3ab1caf94d97",
|
||||
"parameters": {
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {
|
||||
"ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
|
||||
"bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}"
|
||||
},
|
||||
"resource": "thread",
|
||||
"threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
|
||||
"operation": "reply",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "Reply to an email thread. AI-configurable parameters: Thread_ID (string) - the ID of the thread; Message (string) - the reply content; BCC (string) - comma-separated BCC recipients; CC (string) - comma-separated CC recipients."
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "67JzzUiB1dTa4vYU",
|
||||
"name": "iSJC Gmail"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "2f8ea31e-3582-4370-8756-3673a60fbe53",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1220,
|
||||
520
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 520,
|
||||
"height": 440,
|
||||
"content": "## Thread Tools\n\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "5beba186-3cf1-4d96-aa1a-69c3e0b729e5",
|
||||
"name": "Gmail MCP Server",
|
||||
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
|
||||
"position": [
|
||||
500,
|
||||
40
|
||||
],
|
||||
"webhookId": "a794310b-bca0-4272-99be-a2872c1cadb0",
|
||||
"parameters": {
|
||||
"path": "gmail-enhanced"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "25736cc4-06ac-4084-9aec-543ba3d2934b",
|
||||
"name": "Sticky Note4",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 280,
|
||||
"height": 240,
|
||||
"content": "## USAGE\n\nOpen the Gmail MCP Server node to obtain the SSE server URL.\n\nUse that to configure an N8N AI Agent flow or other AI tool."
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "29e40df2-6863-4f37-8068-5dba71c5bac8",
|
||||
"connections": {
|
||||
"get": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"reply": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"search": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getDraft": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getLabel": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"addLabels": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getLabels": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getThread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"markAsRead": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"createDraft": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"createLabel": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"deleteDraft": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"deleteLabel": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"replyThread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"markAsUnread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"removeLabels": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getManyDrafts": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"addLabelThread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getManyThreads": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"removeLabelThread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail MCP Server",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,399 @@
|
||||
{
|
||||
"name": "🤖Email Agent",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"model": "gpt-4o",
|
||||
"options": {}
|
||||
},
|
||||
"id": "c98bcc4d-20a9-4b29-a4aa-f6b6e7bb1f1b",
|
||||
"name": "OpenAI Chat Model",
|
||||
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
560,
|
||||
680
|
||||
],
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "BP9v81AwJlpYGStD",
|
||||
"name": "OpenAi account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"assignments": {
|
||||
"assignments": [
|
||||
{
|
||||
"id": "7ab380a2-a8d3-421c-ab4e-748ea8fb7904",
|
||||
"name": "response",
|
||||
"value": "Unable to perform task. Please try again.",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "0505c1f0-53d1-4988-843f-eb9eac2d7856",
|
||||
"name": "Try Again",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"position": [
|
||||
1640,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"assignments": {
|
||||
"assignments": [
|
||||
{
|
||||
"id": "39c2f302-03be-4464-a17a-d7cc481d6d44",
|
||||
"name": "=response",
|
||||
"value": "={{$json.output}}",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "97393469-bde9-4a13-8d89-68ac6a4305db",
|
||||
"name": "Success",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"position": [
|
||||
1640,
|
||||
320
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"promptType": "define",
|
||||
"text": "={{ $json.query }}",
|
||||
"options": {
|
||||
"systemMessage": "=# Overview\nYou are an email management assistant. All emails must be formatted professionally in HTML and signed off as \"Nate.\" \n\n**Email Management Tools** \n - Use \"Send Email\" to send emails. \n - Use \"Create Draft\" if the user asks for a draft. \n - Use \"Get Emails\" to retrieve emails when requested.\n - Use \"Get Labels\" to retrieve labels.\n - Use \"Mark Unread\" to mark an email as unread. You must use \"Get Emails\" first so you have the message ID of the email to flag.\n - Use \"Label Email\" to flag an email. You must use \"Get Emails\" first so you have the message ID of the email to flag. Then you must use \"Get Labels\" so you have the label ID.\n - Use \"Email Reply\" to reply to an email. You must use \"Get Emails\" first so you have the message ID of the email to reply to.\n\n## Final Notes\n- Here is the current date/time: {{ $now }}"
|
||||
}
|
||||
},
|
||||
"id": "0f7ba4a7-44b1-41ce-8904-9a78e8e03be4",
|
||||
"name": "Email Agent",
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"typeVersion": 1.6,
|
||||
"position": [
|
||||
1040,
|
||||
400
|
||||
],
|
||||
"onError": "continueErrorOutput"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"sendTo": "={{ $fromAI(\"emailAddress\") }}",
|
||||
"subject": "={{ $fromAI(\"subject\") }}",
|
||||
"message": "={{ $fromAI(\"emailBody\") }}",
|
||||
"options": {
|
||||
"appendAttribution": false
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
720,
|
||||
760
|
||||
],
|
||||
"id": "9e043f46-3e1a-431a-9495-b34e251de785",
|
||||
"name": "Send Email",
|
||||
"webhookId": "86c8c4b1-13bb-4ebe-acb9-30e1d7082d55",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "getAll",
|
||||
"limit": "={{ $fromAI(\"limit\",\"how many emails the user wants\") }}",
|
||||
"simple": false,
|
||||
"filters": {
|
||||
"sender": "={{ $fromAI(\"sender\",\"who the emails are from\") }}"
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
1360,
|
||||
860
|
||||
],
|
||||
"id": "fc850981-86fa-4714-a47a-27d5ed2f4944",
|
||||
"name": "Get Emails",
|
||||
"webhookId": "af4b3298-9037-44b0-aa12-2acbfbb5e66f",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "draft",
|
||||
"subject": "={{ $fromAI(\"subject\") }}",
|
||||
"emailType": "html",
|
||||
"message": "={{ $fromAI(\"emailBody\") }}",
|
||||
"options": {
|
||||
"sendTo": "={{ $fromAI(\"emailAddress\") }}"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
1200,
|
||||
880
|
||||
],
|
||||
"id": "c460b943-04a8-4598-9e70-be4f5d4d2303",
|
||||
"name": "Create Draft",
|
||||
"webhookId": "17016bce-d7d7-428a-a56c-f6ea122db8be",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "reply",
|
||||
"messageId": "={{ $fromAI(\"ID\",\"the message ID\") }}",
|
||||
"message": "={{ $fromAI(\"emailBody\") }}",
|
||||
"options": {
|
||||
"appendAttribution": false
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
880,
|
||||
820
|
||||
],
|
||||
"id": "500202a6-a9be-45ac-be3d-33e0928fb830",
|
||||
"name": "Email Reply",
|
||||
"webhookId": "114785e6-a859-432b-81b4-c490c1c35b1c",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "label",
|
||||
"returnAll": true
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
1480,
|
||||
800
|
||||
],
|
||||
"id": "b05ce6a1-ae44-4d46-a32b-c6d2250794b1",
|
||||
"name": "Get Labels",
|
||||
"webhookId": "9e08b59e-792d-4566-83f1-9263c9ad86ae",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "addLabels",
|
||||
"messageId": "={{ $fromAI(\"ID\",\"the ID of the message\") }}",
|
||||
"labelIds": "={{ $fromAI(\"labelID\") }}"
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
1040,
|
||||
860
|
||||
],
|
||||
"id": "88c2635f-5088-4f0c-b5f8-c4a5f73ffc79",
|
||||
"name": "Label Emails",
|
||||
"webhookId": "0e951529-2e6d-40bf-ac40-fc0947e242e2",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "markAsUnread",
|
||||
"messageId": "={{ $fromAI(\"messageID\") }}"
|
||||
},
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
1620,
|
||||
740
|
||||
],
|
||||
"id": "8f3771c3-cf3d-4481-8a6d-4ead60291649",
|
||||
"name": "Mark Unread",
|
||||
"webhookId": "a35af9d8-f67d-4ff9-803f-59ec6356e795",
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "MHutgNQIvAz7qMgP",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"inputSource": "passthrough"
|
||||
},
|
||||
"type": "n8n-nodes-base.executeWorkflowTrigger",
|
||||
"typeVersion": 1.1,
|
||||
"position": [
|
||||
800,
|
||||
400
|
||||
],
|
||||
"id": "053be115-2ecf-4d22-8f7f-93ad7271bf80",
|
||||
"name": "When Executed by Another Workflow"
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"OpenAI Chat Model": {
|
||||
"ai_languageModel": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_languageModel",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Email Agent": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Success",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Try Again",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Send Email": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Email Reply": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Emails": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Draft": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Labels": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Label Emails": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Mark Unread": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"When Executed by Another Workflow": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Email Agent",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "e76750a7-4129-45a9-83ff-321a6ba6d324",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "95e5a8c2e51c83e33b232ea792bbe3f063c094c33d9806a5565cb31759e1ad39"
|
||||
},
|
||||
"id": "C3hLlOS4O6ZJtVFy",
|
||||
"tags": []
|
||||
}
|
||||
174
workflows/Gmailtool/1909_Gmailtool_Automation_Triggered.json
Normal file
174
workflows/Gmailtool/1909_Gmailtool_Automation_Triggered.json
Normal file
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"id": "lYOQGMEJDxugrfrT",
|
||||
"meta": {
|
||||
"instanceId": "6d46e25379ef430a7067964d1096b885c773564549240cb3ad4c087f6cf94bd3",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "MCP_GMAIL",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "c13105ec-6ac3-4179-a331-da5214ced6e6",
|
||||
"name": "SEND_EMAIL",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
-260,
|
||||
540
|
||||
],
|
||||
"webhookId": "7ecc72c7-8968-4e5c-ae5a-a3d41823ca73",
|
||||
"parameters": {
|
||||
"sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {},
|
||||
"subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
|
||||
"descriptionType": "manual",
|
||||
"toolDescription": "envia menssagems via API google"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "qvvveZOGtqMK0yvU",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "0836faf7-59fd-41f5-9a54-3f467ed87db1",
|
||||
"name": "REPLY_EMAIL",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
-120,
|
||||
540
|
||||
],
|
||||
"webhookId": "30c6020e-eceb-4381-9874-be21f34ceea2",
|
||||
"parameters": {
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {},
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "reply",
|
||||
"descriptionType": "manual"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "qvvveZOGtqMK0yvU",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "892e89a7-8751-4c9f-87f3-a663ec0ca042",
|
||||
"name": "GET_EMAIL",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
0,
|
||||
540
|
||||
],
|
||||
"webhookId": "6b3f4e85-bdfe-4396-8ee7-5a73efc680fb",
|
||||
"parameters": {
|
||||
"simple": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify', ``, 'boolean') }}",
|
||||
"options": {},
|
||||
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
|
||||
"operation": "get"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "qvvveZOGtqMK0yvU",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "c1c2d8cd-6117-4238-b696-22da8f217f59",
|
||||
"name": "SEND_AND_WAIT",
|
||||
"type": "n8n-nodes-base.gmailTool",
|
||||
"position": [
|
||||
140,
|
||||
540
|
||||
],
|
||||
"webhookId": "1f8a82c1-cbd1-4f40-9820-2de005c0473f",
|
||||
"parameters": {
|
||||
"sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
|
||||
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
|
||||
"options": {},
|
||||
"subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
|
||||
"operation": "sendAndWait",
|
||||
"responseType": "freeText"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "qvvveZOGtqMK0yvU",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "89c8bc41-cbf9-4099-a3ac-6d5d7cd1a626",
|
||||
"name": "MCP_GMAIL",
|
||||
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"webhookId": "82a7a338-618c-44f5-a1c3-f2e32b6b4833",
|
||||
"parameters": {
|
||||
"path": "/mcp/:tool/gmail"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "2022464f-822f-4b3e-9425-4e938a95348c",
|
||||
"connections": {
|
||||
"GET_EMAIL": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "MCP_GMAIL",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"SEND_EMAIL": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "MCP_GMAIL",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"REPLY_EMAIL": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "MCP_GMAIL",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"SEND_AND_WAIT": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "MCP_GMAIL",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user