Streamline team communication by automating updates from Gmail to Discord using OpenAI GPT. This integration leverages the Gmail API to extract important information and utilizes OpenAI's advanced AI capabilities to format responses. Perfect for teams seeking efficient collaboration. Requires 4 accounts: Gmail O Auth2, OpenAI API Key, Discord Webhook, etc. Save hours weekly by instantly transforming email updates into engaging Discord messages!
Categories
APIs
AI Features
Credentials
Copy or download to import into your n8n instance
{ "id": "0dJGxDEyYBhoWZKZ", "meta": { "instanceId": "fde77289ba885eff1acfff8950f1956f282c58222d86c2f5ecc5c2f504d85960", "templateCredsSetupCompleted": true }, "name": "tell about form", "tags": [], "nodes": [ { "id": "71158c38-aa83-4be5-b788-4b1d62c1af31", "name": "Gmail Trigger", "type": "n8n-nodes-base.gmailTrigger", "position": [ 0, 200 ], "parameters": { "simple": false, "filters": { "q": "=has:attachment AND filename:pdf and to:oleksandr@instafill.ai" }, "options": { "downloadAttachments": true }, "pollTimes": { "item": [ { "mode": "everyMinute" } ] } }, "credentials": { "gmailOAuth2": { "id": "48AQhTJEfo6JwAV9", "name": "Gmail account" } }, "typeVersion": 1.2 }, { "id": "65f46d2e-19ed-466b-ae04-fbc95236a714", "name": "OpenAI", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [ 220, 200 ], "parameters": { "options": {}, "resource": "file", "binaryPropertyName": "={{ $('Gmail Trigger').item.binary ? Object.keys($('Gmail Trigger').item.binary)[0] : '' }}" }, "credentials": { "openAiApi": { "id": "aoCOEmn2ZnfaANR7", "name": "OpenAI account" } }, "typeVersion": 1.8 }, { "id": "96902dff-a9b4-4d9d-9c6c-361c9b28841b", "name": "Discord", "type": "n8n-nodes-base.discord", "position": [ 1100, 200 ], "webhookId": "a4afb282-f29d-4d80-9d75-5eae9623c058", "parameters": { "content": "=🗃️{{ $('Gmail Trigger').item.binary.attachment_0.fileName }}\n\n{{ $('Markdown').item.json.content }}", "options": {}, "authentication": "webhook" }, "credentials": { "discordWebhookApi": { "id": "JdL6mp2eNrs5r7Af", "name": "#Forms to fill" } }, "typeVersion": 2 }, { "id": "066d3187-9402-4bf8-b30d-7720f3394e41", "name": "Send email", "type": "n8n-nodes-base.gmail", "position": [ 880, 200 ], "webhookId": "05906bf0-5716-4e8c-86bf-a2d54a68fee6", "parameters": { "sendTo": "oleksandr@instafill.ai", "message": "={{ $json.data }}", "options": {}, "subject": "=🗃️{{ $('Gmail Trigger').item.binary.attachment_0.fileName }}" }, "credentials": { "gmailOAuth2": { "id": "48AQhTJEfo6JwAV9", "name": "Gmail account" } }, "typeVersion": 2.1 }, { "id": "be317c96-b5ae-4494-bbf7-e1c93dd94c45", "name": "Markdown", "type": "n8n-nodes-base.markdown", "position": [ 660, 200 ], "parameters": { "mode": "markdownToHtml", "options": {}, "markdown": "={{ $json.choices[0]?.message?.content }}" }, "typeVersion": 1 }, { "id": "7232dff3-e372-405e-a38a-d858ef49d9f3", "name": "ChatGPT", "type": "n8n-nodes-base.httpRequest", "position": [ 440, 200 ], "parameters": { "url": "https://api.openai.com/v1/chat/completions", "method": "POST", "options": {}, "jsonBody": "={\n \"model\": \"gpt-4o\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"file\",\n \"file\": {\n \"file_id\": \"{{ $json.id }}\"\n }\n },\n {\n \"type\": \"text\",\n \"text\": \"What is the document about? Is this form filled out usually once or multiple times? Who fills this form out? What organization this form is filled for? I need to understand the use case.\"\n }\n ]\n }\n ]\n}\n", "sendBody": true, "specifyBody": "json", "authentication": "predefinedCredentialType", "nodeCredentialType": "openAiApi" }, "credentials": { "openAiApi": { "id": "aoCOEmn2ZnfaANR7", "name": "OpenAI account" } }, "typeVersion": 4.2 } ], "active": true, "pinData": {}, "settings": { "executionOrder": "v1" }, "versionId": "d9f47507-180e-4111-b42d-bc0abc2666f8", "connections": { "OpenAI": { "main": [ [ { "node": "ChatGPT", "type": "main", "index": 0 } ] ] }, "ChatGPT": { "main": [ [ { "node": "Markdown", "type": "main", "index": 0 } ] ] }, "Markdown": { "main": [ [ { "node": "Send email", "type": "main", "index": 0 } ] ] }, "Send email": { "main": [ [ { "node": "Discord", "type": "main", "index": 0 } ] ] }, "Gmail Trigger": { "main": [ [ { "node": "OpenAI", "type": "main", "index": 0 } ] ] } } }
This workflow utilizes the OpenAI API to facilitate seamless AI-powered chat interactions. By using HTTP requests to gather data and OpenAI's advanced GPT features to generate intelligent responses, this integration is perfect for AI-powered automation users looking to enhance customer engagement. Requires 1 account: OpenAI API. Save hours by automating chat responses and improve user satisfaction with instant, tailored interactions.
Automate data retrieval from Google Drive using the Google Drive API, enrich it with AI embeddings from OpenAI GPT, and store vectors in Pinecone's Vector Database. Ideal for AI-powered automation users looking to streamline workflows. Requires 3 accounts: Pinecone API, OpenAI API, Google Drive OAuth. Save hours on data management while enhancing decision-making with AI-driven insights.
Utilize the Telegram Bot API to automatically transcribe YouTube videos using n8n's YouTube Transcriber node and deliver transcripts directly to your Telegram chat. This workflow is perfect for AI-powered automation users looking to streamline content consumption. Requires 1 account: Telegram Bot Token. Save hours on manual transcription and easily access video summaries for enhanced productivity.
This workflow leverages OpenAI's GPT and AI Chat to analyze form submissions, providing actionable insights for conversion rate optimization. Perfect for AI-powered automation users looking to enhance user engagement. Requires 1 account: OpenAI API. Increase conversion rates by 20% and save hours on manual analysis!
Configure credentials and update service-specific settings before executing the workflow. Review required credentials in the Technical Details section above.