{"product_id":"n8n-workflow-ai-write-word-docs-from-google-sheets-groq-pandoc","title":"n8n Workflow: AI Write Word Docs from Google Sheets (Groq + Pandoc)","description":"\u003ch3\u003eTurn Google Sheets topics into Word documents automatically (Groq + Pandoc)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow reads article topics and reference links from your Google Sheets, uses a Groq-powered LangChain agent to write a 1500+ word Markdown article, converts it to a \u003cstrong\u003e.docx\u003c\/strong\u003e with \u003cstrong\u003ePandoc\u003c\/strong\u003e on your machine, and uploads the finished Word files to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual trigger:\u003c\/strong\u003e You start the workflow when you’re ready to generate documents.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReads your Google Sheets rows:\u003c\/strong\u003e It pulls the \u003cem\u003etopic\u003c\/em\u003e, reference URLs (e.g., \u003cstrong\u003eAHREFLINKS\u003c\/strong\u003e), and an article identifier (e.g., an \u003cstrong\u003eART-001\u003c\/strong\u003e value used for filenames).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates long-form content:\u003c\/strong\u003e For each row, it sends the topic and links to a \u003cstrong\u003eLangChain agent\u003c\/strong\u003e backed by the \u003cstrong\u003eGroq Chat Model\u003c\/strong\u003e to produce a \u003cstrong\u003e1500+ word Markdown\u003c\/strong\u003e article.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves locally as Markdown:\u003c\/strong\u003e The workflow writes the generated \u003cstrong\u003e.md\u003c\/strong\u003e file to your configured local folder using the article ID as the filename.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConverts Markdown to Word:\u003c\/strong\u003e It runs a \u003cstrong\u003ePandoc\u003c\/strong\u003e command on the same machine to convert the local \u003cstrong\u003e.md\u003c\/strong\u003e into \u003cstrong\u003e.docx\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads to Google Drive:\u003c\/strong\u003e Finally, it loads the converted Word document from local storage and uploads it to the selected Google Drive folder.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eContent teams: bulk-generate article drafts from a Google Sheet and deliver them as \u003cstrong\u003eWord documents\u003c\/strong\u003e for editing.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators: create repeatable doc workflows for internal knowledge bases using topics + references stored in Sheets.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers: a practical n8n example combining \u003cstrong\u003eLLM writing\u003c\/strong\u003e (Groq via LangChain) with \u003cstrong\u003elocal file conversion\u003c\/strong\u003e (Pandoc) and Drive publishing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/credentials:\u003c\/strong\u003e Google Sheets, Google Drive, and the \u003cstrong\u003eGroq API\u003c\/strong\u003e for the LangChain agent.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore n8n nodes:\u003c\/strong\u003e Manual trigger, Set, Sticky Note, Google Sheets, Convert to File, Google Drive.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLocal requirements:\u003c\/strong\u003e n8n must run on a machine that can write to a local directory (e.g., \u003cstrong\u003eD:\\n8n-files\\\u003c\/strong\u003e), with \u003cstrong\u003ePandoc\u003c\/strong\u003e installed and available on the system PATH.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45899947671731,"sku":"N8N-18717","price":5.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Lspt8NVJCIYw6O142cW1O_kE0otylJ.png?v=1787735119","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-ai-write-word-docs-from-google-sheets-groq-pandoc","provider":"N8N Commerce","version":"1.0","type":"link"}