Workflow: Summarize Google Drive Documents with Mistral AI and Send via Gmail
Integrations: gmail, googleDrive, manualTrigger, noOp, stopAndError

{"id": "Jy1RMuri0WJO5aO4", "meta": {"instanceId": "workflow-d1551dce", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:49.992474", "updatedAt": "2025-09-29T07:07:49.992488", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "Summarize Google Drive Documents with Mistral AI and Send via Gmail", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "680f9002-94fa-48c1-af5f-d2a5305b6291", "name": "When clicking \u2018Test workflow\u2019", "type": "n8n-nodes-base.manualTrigger", "position": [0, 0], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"id": "3fa4ad1a-ce87-44db-b016-bd172c2318eb", "name": "Mistral Cloud Chat Model", "type": "n8n-nodes-base.noOp", "position": [500, 240], "parameters": {"options": {}}, "credentials": {"mistralCloudApi": {"id": "temjibUluGywOSoS", "name": "Mistral Cloud account"}}, "typeVersion": 1, "notes": "This lmChatMistralCloud node performs automated tasks as part of the workflow."}, {"id": "124d62ae-3b46-4e75-a04e-155849fe280d", "name": "Download uploaded File from Google Drive", "type": "n8n-nodes-base.googleDrive", "position": [220, 0], "parameters": {"fileId": {"__rl": true, "mode": "list", "value": "1d0njBA2ZM0zYyJOEbUeFwQmHSYIO7IM2", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "Goods and Services Receipt(WCC).pdf"}, "options": {}, "operation": "download"}, "credentials": {"googleDriveOAuth2Api": {"id": "7xFbFgdSc78zERPk", "name": "Google Drive account"}}, "typeVersion": 3, "notes": "This googleDrive node performs automated tasks as part of the workflow."}, {"id": "69b7621b-a273-4b0a-be61-4d45bf87618d", "name": "Summarization Chain to summarize a file", "type": "n8n-nodes-base.noOp", "position": [480, 0], "parameters": {"options": {"binaryDataKey": "YOUR_CREDENTIAL_HERE"}, "chunkSize": 800, "chunkOverlap": 0, "operationMode": "nodeInputBinary"}, "typeVersion": 2, "notes": "This chainSummarization node performs automated tasks as part of the workflow."}, {"id": "573194cd-5f37-422f-b3fa-957187ac3538", "name": "Send Summarized text to Gmail", "type": "n8n-nodes-base.gmail", "position": [840, 0], "webhookId": "215c6c67-612c-4b8d-9849-0b796570003d", "parameters": {"sendTo": "swot.ai25@gmail.com", "message": "=<h1 style=\"color: #4CAF50;\">\ud83d\udccc Quick Summary of Your Document! \u2728</h1>\n<p>\n<h2>\ud83d\udcdd Summary:</h2>\n<p>\n{{ $json['response']['text'].replace(\"\\n\", \"<br>\") }}\n<p>\n\n<h3>\ud83d\udcc5 Date Processed: </h3>\n{{ new Date().toLocaleString('en-GB', { timeZone: 'Africa/Lagos' }) }}\n\n\n\n\n\n    ", "options": {"senderName": "Swot.AI", "appendAttribution": false}, "subject": "Here is Your Summarized Response"}, "credentials": {"gmailOAuth2": {"id": "G3K9RkKiyLHtyVzi", "name": "Gmail account"}}, "typeVersion": 2.1, "notes": "This gmail node performs automated tasks as part of the workflow."}, {"id": "error-fbc2e649", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [1000, 400], "parameters": {"message": "Workflow execution error", "options": {}}}], "active": false, "pinData": {}, "settings": {"callerPolicy": "workflowsFromSameOwner", "executionOrder": "v1", "saveManualExecutions": true, "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "8446e524-8468-4515-8778-be94db41d3e3", "connections": {"124d62ae-3b46-4e75-a04e-155849fe280d": {"main": [[{"node": "error-handler-124d62ae-3b46-4e75-a04e-155849fe280d-1d54b5cc", "type": "main", "index": 0}]]}}, "description": "Automated workflow: Summarize Google Drive Documents with Mistral AI and Send via Gmail. This workflow processes data and performs automated tasks.", "notes": "Excellent quality workflow: Summarize Google Drive Documents with Mistral AI and Send via Gmail. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}