Create AI-written Word docs from Google Sheets with Groq and Pandoc
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Groq Chat Model, Google Sheets and Google Drive.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Content Topics (Google Sheets) (Google Sheets): uses Google Sheets
- Batch Processor (Topics Loop) (Loop Over Items (Split in Batches)): loops over the items in batches
- AI Article Generator (LangChain Agent) (AI Agent): runs an AI agent, with model: Groq Chat Model
- Convert to MD File (Convert to File): converts data to a file (to text)
- Set File Metadata (Path & Filename) (Edit Fields (Set)): sets 2 fields: path, file_name
- Save MD File (Read/Write Files from Disk): writes a file to disk
- Prepare Pandoc Conversion Command (Edit Fields (Set)): sets 2 fields: file_name, command
- Load Converted DOCX File (Read/Write Files from Disk): reads a file from disk
- Upload Final Document to Google Drive (Google Drive): uses Google Drive
Services it uses
Other Google Drive + Google Sheets templates (720) · Other Groq + Google Sheets templates (156) · Other Groq + Google Drive templates (31)
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 (9)
- Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Google Drive
n8n-nodes-base.googleDrive - Convert to File
n8n-nodes-base.convertToFile
From the author
Quick overview This workflow pulls article topics and reference links from Google Sheets, uses a Groq-powered LangChain agent to generate long-form Markdown articles, converts them to Word documents with Pandoc on the local machine, and uploads the final…