AutomationFlowsEmail & Gmail › Summarize Google Drive Documents with Mistral AI and Send via Gmail

Summarize Google Drive Documents with Mistral AI and Send via Gmail

Summarize Google Drive Documents with Mistral AI and Send via Gmail. Uses manualTrigger, lmChatMistralCloud, googleDrive, chainSummarization. Event-driven trigger; 5 nodes.

Event trigger★★☆☆☆ complexityAI-powered5 nodesLm Chat Mistral CloudGoogle DriveChain SummarizationGmail
Email & Gmail Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ AI nodes: yes

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "Jy1RMuri0WJO5aO4",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Summarize Google Drive Documents with Mistral AI and Send via Gmail",
  "tags": [
    {
      "id": "USkRpjRpntFcI8VH",
      "name": "working",
      "createdAt": "2025-03-09T00:24:01.723Z",
      "updatedAt": "2025-03-09T00:24:01.723Z"
    }
  ],
  "nodes": [
    {
      "id": "680f9002-94fa-48c1-af5f-d2a5305b6291",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3fa4ad1a-ce87-44db-b016-bd172c2318eb",
      "name": "Mistral Cloud Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        500,
        240
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "mistralCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "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": "https://drive.google.com/file/d/1d0njBA2ZM0zYyJOEbUeFwQmHSYIO7IM2/view?usp=drivesdk",
          "cachedResultName": "Goods and Services Receipt(WCC).pdf"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "69b7621b-a273-4b0a-be61-4d45bf87618d",
      "name": "Summarization Chain to summarize a file",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        480,
        0
      ],
      "parameters": {
        "options": {
          "binaryDataKey": "data"
        },
        "chunkSize": 800,
        "chunkOverlap": 0,
        "operationMode": "nodeInputBinary"
      },
      "typeVersion": 2
    },
    {
      "id": "573194cd-5f37-422f-b3fa-957187ac3538",
      "name": "Send Summarized text to Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        840,
        0
      ],
      "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": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "8446e524-8468-4515-8778-be94db41d3e3",
  "connections": {
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain to summarize a file",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Download uploaded File from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarization Chain to summarize a file": {
      "main": [
        [
          {
            "node": "Send Summarized text to Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download uploaded File from Google Drive": {
      "main": [
        [
          {
            "node": "Summarization Chain to summarize a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Summarize Google Drive Documents with Mistral AI and Send via Gmail. Uses manualTrigger, lmChatMistralCloud, googleDrive, chainSummarization. Event-driven trigger; 5 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →