From 35329cebceb8e184b02c5f8397ad8781d75c6ca9 Mon Sep 17 00:00:00 2001 From: nusquama Date: Fri, 14 Nov 2025 10:36:15 +0100 Subject: [PATCH] creation --- .../smart_email_responder_workflow_using_ai.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 workflows/ Smart Email Responder Workflow using AI-4807/smart_email_responder_workflow_using_ai.json diff --git a/workflows/ Smart Email Responder Workflow using AI-4807/smart_email_responder_workflow_using_ai.json b/workflows/ Smart Email Responder Workflow using AI-4807/smart_email_responder_workflow_using_ai.json new file mode 100644 index 000000000..6cc79c199 --- /dev/null +++ b/workflows/ Smart Email Responder Workflow using AI-4807/smart_email_responder_workflow_using_ai.json @@ -0,0 +1 @@ +{"id":"1RHsJldA8GlWFp1E","meta":{"instanceId":"c3caf872897344ae9095ede706e2c19a32f712f120ab7f143e26125462303491","templateId":"3277","templateCredsSetupCompleted":true},"name":"Smart Email Auto-Responder","tags":[],"nodes":[{"id":"e485ab21-6c33-4cb1-9bd1-3fea3a1d431a","name":"Gmail Trigger","type":"n8n-nodes-base.gmailTrigger","position":[1480,220],"parameters":{"simple":false,"filters":{"labelIds":["Label_43975351283257832"]},"options":{},"pollTimes":{"item":[{"mode":"everyHour"}]}},"credentials":{"gmailOAuth2":{"id":"cvHi0AAN9bE3lcij","name":"Gmail account"}},"typeVersion":1.2},{"id":"d52b02ce-95aa-495f-a6b4-d5dd791f2808","name":"Text Classifier","type":"@n8n/n8n-nodes-langchain.textClassifier","position":[1820,400],"parameters":{"options":{},"inputText":"={{ $('Gmail Trigger').item.json.subject }}\n{{ $('Gmail Trigger').item.json.text }}","categories":{"categories":[{"category":"Questions","description":"Use this category when the email is asking for information about our company, products, processes, pricing, timelines, legal terms or any other general inquiry that expects a factual explanation or guidance."},{"category":"Project Update","description":"Choose this category when the sender is notifying us about progress or changes: signing the agreement, submitting or revising scripts, updating requirements, sharing evaluation results, or any status report that moves an ongoing project forward"},{"category":"Feedback","description":"Select this category when the email contains compliments, complaints, suggestions, or any qualitative feedback about our service, product, communication or overall experience"}]}},"typeVersion":1},{"id":"adfca78f-9ce5-4345-baaa-017538e433be","name":"Google Gemini Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatGoogleGemini","position":[1840,680],"parameters":{"options":{},"modelName":"models/gemini-2.0-flash-exp"},"credentials":{"googlePalmApi":{"id":"vNACKKKe3OF1uS3Y","name":"Google Gemini(PaLM) Api account"}},"typeVersion":1},{"id":"e7c91741-20d6-4c54-8dd5-efec164c29b3","name":"Youtube Video Inquiry","type":"n8n-nodes-base.emailSend","position":[2260,580],"webhookId":"120f4cfb-cfd3-4792-b5f5-146e9f495f73","parameters":{"html":"=\n\n\n \n\n\n
\n
\n

Project Update Acknowledgement

\n
\n\n
\n

\n Hi {{ $json.from.value[0].name || $('Gmail Trigger').item.json.headers.from.split('<')[0].trim() || 'there' }},\n

\n\n

\n Thank you for your recent update on the project. We’ve reviewed the information you provided and have logged it in our system.\n

\n\n

What we received:

\n
    \n
  • Signed agreement / contract confirmation.
  • \n
  • Revised requirements or scope changes.
  • \n
  • Draft scripts or other deliverables for review.
  • \n
  • Evaluation results or performance reports.
  • \n
\n\n

Next steps:

\n
    \n
  • Our team will review the materials and integrate any changes within 2–3 business days.
  • \n
  • If clarifications are needed, we’ll reach out via email or schedule a quick call.
  • \n
  • You’ll receive the updated project timeline once the review is complete.
  • \n
\n\n

\n If you have additional files or questions, feel free to reply directly to this email.\n

\n\n

\n We appreciate your prompt communication and look forward to moving the project ahead smoothly.\n

\n\n

\n Best regards,
\n Sophia Mitchell
\n Project Coordinator | syncbricks.com
\n WhatsApp: +1  \n

\n
\n\n
\n © 2025 SyncBricks. All rights reserved.\n
\n
\n\n\n","options":{"appendAttribution":false},"subject":"=Re: {{ $('Gmail Trigger').item.json.subject }}","toEmail":"={{ $json.from.value[0].name }} <{{ $json.from.value[0].address }}>","fromEmail":"kulankur.work@gmail.com"},"credentials":{"smtp":{"id":"rSVeHz6kjwDIBOZ7","name":"SMTP account"}},"typeVersion":2.1},{"id":"61243957-40d1-4fb2-ad0a-6f923587c4db","name":"Send Email","type":"n8n-nodes-base.emailSend","position":[2260,760],"webhookId":"700cb9ed-bd54-4e96-8121-98a5dcffeebf","parameters":{"html":"=\n\n\n \n\n\n
\n
\n

Thank You for Your Feedback

\n
\n\n
\n

\n Hi {{ $json.from.value?.[0]?.name || $('Gmail Trigger').item.json.headers.from.split('<')[0].trim() || 'there' }},\n

\n\n

\n Thank you for taking the time to share your feedback about SyncBricks. We truly value every comment—whether a\n compliment, suggestion, or concern—because it helps us improve.\n

\n\n

What happens next:

\n
    \n
  • Your message has been logged in our system (Reference ID:\n {{ $json.id.slice(-6) }}).
  • \n
  • Our team will review it within 1 business day.
  • \n
  • If an action is required, the appropriate team member will follow up directly with you.
  • \n
\n\n

\n If you need to add more details, simply reply to this email—your message wil\n","options":{"appendAttribution":false},"subject":"=Re: {{ $('Gmail Trigger').item.json.Subject }}","toEmail":"={{ $json.from.value[0].name }} <{{ $json.from.value[0].address }}>","fromEmail":"kulankur.work@gmail.com"},"credentials":{"smtp":{"id":"rSVeHz6kjwDIBOZ7","name":"SMTP account"}},"typeVersion":2.1},{"id":"a2542d02-4018-45e5-a8f2-875e669c77a3","name":"Mark as Read","type":"n8n-nodes-base.gmail","position":[2780,460],"webhookId":"a5bea8d3-719e-4b2b-a43d-4c6248796267","parameters":{"messageId":"={{ $('Gmail Trigger').all()[0].json.id }}\n","operation":"markAsRead"},"credentials":{"gmailOAuth2":{"id":"cvHi0AAN9bE3lcij","name":"Gmail account"}},"typeVersion":2.1},{"id":"0a1d79a3-91cf-4bf6-93bb-1482549a74dd","name":"Apply Label","type":"n8n-nodes-base.gmail","position":[2960,460],"webhookId":"c3a2fc4e-d90c-463a-a356-db530e1b91b0","parameters":{"labelIds":["CATEGORY_UPDATES"],"messageId":"={{ $('Gmail Trigger').all()[0].json.id }}\n","operation":"addLabels"},"credentials":{"gmailOAuth2":{"id":"cvHi0AAN9bE3lcij","name":"Gmail account"}},"typeVersion":2.1},{"id":"28467e9f-a730-4545-89cb-7d2c629edd71","name":"Emails from Existing Contracts","type":"n8n-nodes-base.if","position":[1640,220],"parameters":{"options":{},"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"or","conditions":[{"id":"7cffe101-333d-4ec2-a822-181fe421745b","operator":{"type":"string","operation":"contains"},"leftValue":"={{ $json.headers.from }}","rightValue":"@syncbricks.com"}]}},"typeVersion":2.2},{"id":"b150ab4d-dcbb-4ae6-9503-5914e39f41ac","name":"Reply","type":"n8n-nodes-base.if","position":[1640,460],"parameters":{"options":{},"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"07a6d5e2-ffc5-41d8-b69a-abd6860879c0","operator":{"type":"string","operation":"notStartsWith"},"leftValue":"={{ $json.subject }}","rightValue":"Re:"}]}},"typeVersion":2.2},{"id":"1f043246-cbd0-466d-bbfd-b13131a66f03","name":"QuestionsReply","type":"n8n-nodes-base.emailSend","position":[2720,160],"webhookId":"ed01c3d4-1fad-4098-b431-4bc3d5e05434","parameters":{"html":"=

\n Hi {{ $json.senderName }} <{{ $json.senderEmail }}>,\n

\n\n

Thanks for reaching out with your questions. I’d love to cover everything face-to-face.

\n\n

Location:
\n123 Main St
\nLos Angeles, CA 90089\n

\n\n

We just sent you three calendar invitations for these time slots:

\n\n
    \n {{ $json.slotTimes.map(t => `
  • ${t}
  • `).join('') }}\n
\n\n

\n Click Yes on the invite that works best for you. \n Google will reserve that slot automatically; the other two will stay open.\n

\n\n

\n If none of the times work, reply with a couple of alternatives and I’ll find something that fits.\n

\n\n

Looking forward to meeting you!
— Corvin

\n","options":{"appendAttribution":false},"subject":"=Re: {{ $json.originalSub }}","toEmail":"={{ $json.senderName }} <{{ $json.senderEmail }}>","fromEmail":"kulankur.work@gmail.com"},"credentials":{"smtp":{"id":"rSVeHz6kjwDIBOZ7","name":"SMTP account"}},"typeVersion":2.1},{"id":"60d50fdc-4e7f-4ab1-a240-1be4c8ae7520","name":"Google Calendar","type":"n8n-nodes-base.googleCalendar","position":[2100,160],"parameters":{"limit":3,"options":{"query":"Available – Office Visit","orderBy":"startTime","recurringEventHandling":"expand"},"timeMax":"=","calendar":{"__rl":true,"mode":"list","value":"37f51d1c36997a7dacbba1d1470fe5f0213699c4d926e7a3104c35f1cb79cb75@group.calendar.google.com","cachedResultName":"Meeting slots"},"operation":"getAll"},"credentials":{"googleCalendarOAuth2Api":{"id":"De5XvcvX90kFuzvb","name":"Google Calendar account"}},"typeVersion":1.3},{"id":"48a8b613-54e3-4002-8830-1726a23d24aa","name":"Loop Over Items","type":"n8n-nodes-base.splitInBatches","position":[2280,160],"parameters":{"options":{}},"typeVersion":3},{"id":"de676780-43c8-476d-ab8a-a692ffe4e65f","name":"Google Calendar1","type":"n8n-nodes-base.googleCalendar","position":[2520,300],"parameters":{"eventId":"={{$json.id}}","calendar":{"__rl":true,"mode":"list","value":"37f51d1c36997a7dacbba1d1470fe5f0213699c4d926e7a3104c35f1cb79cb75@group.calendar.google.com","cachedResultName":"Meeting slots"},"operation":"update","updateFields":{"attendeesUi":{"values":{"attendees":["={{ $(\"Gmail Trigger\").item.json.from.value[0].address }}\n"]}},"sendUpdates":"all"}},"credentials":{"googleCalendarOAuth2Api":{"id":"De5XvcvX90kFuzvb","name":"Google Calendar account"}},"typeVersion":1.3},{"id":"df5552fc-910b-4b13-81fa-0c9d98ce82d7","name":"Code","type":"n8n-nodes-base.code","position":[2520,140],"parameters":{"jsCode":"const triggerJson = $('Gmail Trigger').item.json;\nconst headersFrom = triggerJson.headers.from; // \"Name \"\n\n// Split into name and address\nconst namePart = headersFrom.split('<')[0].replace(/^From:\\s*/i, '').trim();\nconst emailPart = headersFrom.match(/<([^>]+)>/)?.[1] || headersFrom;\n\nconst slotTimes = items.map(i =>\n new Date(i.json.start.dateTime || i.json.start.date).toLocaleString(\n 'en-US',\n { weekday:'short', month:'short', day:'numeric', hour:'numeric',\n minute:'2-digit', hour12:true }\n )\n);\n\nreturn [{\n json: {\n slotTimes,\n senderName: namePart,\n senderEmail: emailPart,\n originalSub: triggerJson.subject // pass the subject along\n }\n}];\n"},"typeVersion":2}],"active":false,"pinData":{},"settings":{"executionOrder":"v1"},"versionId":"2b74a94c-8a92-4a15-b0a4-5590afba0f39","connections":{"Code":{"main":[[{"node":"QuestionsReply","type":"main","index":0}]]},"Reply":{"main":[[{"node":"Text Classifier","type":"main","index":0}]]},"Send Email":{"main":[[{"node":"Mark as Read","type":"main","index":0}]]},"Mark as Read":{"main":[[{"node":"Apply Label","type":"main","index":0}]]},"Gmail Trigger":{"main":[[{"node":"Emails from Existing Contracts","type":"main","index":0}]]},"QuestionsReply":{"main":[[{"node":"Mark as Read","type":"main","index":0}]]},"Google Calendar":{"main":[[{"node":"Loop Over Items","type":"main","index":0}]]},"Loop Over Items":{"main":[[{"node":"Code","type":"main","index":0}],[{"node":"Google Calendar1","type":"main","index":0}]]},"Text Classifier":{"main":[[{"node":"Google Calendar","type":"main","index":0}],[{"node":"Youtube Video Inquiry","type":"main","index":0}],[{"node":"Send Email","type":"main","index":0}]]},"Google Calendar1":{"main":[[{"node":"Loop Over Items","type":"main","index":0}]]},"Youtube Video Inquiry":{"main":[[{"node":"Mark as Read","type":"main","index":0}]]},"Google Gemini Chat Model":{"ai_languageModel":[[{"node":"Text Classifier","type":"ai_languageModel","index":0}]]},"Emails from Existing Contracts":{"main":[[],[{"node":"Reply","type":"main","index":0}]]}}} \ No newline at end of file