Draft LinkedIn comment reply drafts with Gmail, Mistral AI and Google Sheets
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every 30 minutes). Along the way it connects Gmail and Google Sheets. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: On a schedule (every 30 minutes).
- Fetch LinkedIn Notification Emails (Gmail): get many
- Parse Comment Details (Code): runs custom JavaScript code
- Read Logged Comments (Google Sheets): uses Google Sheets
- Keep Only New Comments (Code): runs custom JavaScript code
- Configure Reply Style (Edit Fields (Set)): sets 1 field: persona
- Draft Reply with Mistral AI (HTTP Request): calls api.mistral.ai (POST)
- Append Comment with Draft (Google Sheets): append
Services it uses
HTTP calls to: api.mistral.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow runs every 30 minutes, searches Gmail for LinkedIn comment notification emails, extracts the commenter and comment details, uses Mistral AI to draft a short reply, and appends the comment plus draft to a Google Sheets inbox for…