Got it! You want to attach a resume stored on Google Drive to every email sent by your n8n workflow.
We can extend the previous workflow by adding a Google Drive node to download the resume file, then pass it to the SMTP node to send as an attachment.
Updated minimal node workflow:
| Node | Purpose |
|---|
| Trigger (Webhook or Schedule) | Start the workflow |
| OpenAI | Generate AI email content |
| Google Drive | Download the resume file from Google Drive |
| SMTP | Send email with AI-generated body + attached resume |
Step-by-step:
1. Trigger Node
Same as before — Webhook or Schedule.
2. OpenAI Node
Generate email content as before.
3. Google Drive Node — Download File
- Use
Google Drive node or Google Drive File node (depending on your n8n version).
- Authenticate with your Google account.
- Use the File ID of your resume.
(You can get the fileId from the Google Drive shareable link, it's the string after /d/ in the URL.)
Set action to:
- Download: true
- Specify the exact file ID of your resume.
4. SMTP node — Send Email with Attachment
- Attach the downloaded file from the Google Drive node.
- In the SMTP node, under Attachments, add an entry with:
- Binary Property: use the binary data coming from the Google Drive node (usually named
data or the binary property of the downloaded file).
- File Name: e.g.,
resume.pdf
How to link binary data between nodes:
- The Google Drive node outputs the file as binary.
- Pass that binary data to the SMTP node under the Attachments field.
Sample workflow JSON snippet for integration of Google Drive and attachment:
{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "send-ai-email"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"model": "text-davinci-003",
"prompt": "Write a professional follow-up email reminding the client about the meeting scheduled next week.",
"maxTokens": 150
},
"name": "OpenAI",
"type": "n8n-nodes-base.openai",
"typeVersion": 1,
"position": [450, 300]
},
{
"parameters": {
"fileId": "YOUR_FILE_ID_HERE"
},
"name": "Google Drive Download",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 1,
"position": [650, 300]
},
{
"parameters": {
"fromEmail": "your-email@example.com",
"toEmail": "client@example.com",
"subject": "Follow-up: Meeting Reminder",
"text": "={{$node[\"OpenAI\"].json[\"choices\"][0][\"text\"]}}",
"attachments": [
{
"binaryProperty": "data",
"fileName": "resume.pdf"
}
]
},
"name": "Send Email",
"type": "n8n-nodes-base.smtp",
"typeVersion": 1,
"position": [850, 300]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Google Drive Download",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Download": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
}
}
}
Notes:
- Replace
"YOUR_FILE_ID_HERE" with your actual Google Drive file ID.
- Make sure your Google Drive credentials are set up in n8n.
- The binary data property is usually
"data" when downloading files.
- SMTP credentials have to be set in the SMTP node.
If you want, I can guide you through setting up the Google Drive credentials and SMTP config! Just ask.