Use this comprehensive n8n workflow to generate professional, formatted PDFs from AI-driven Markdown content using Google Docs, archive the result in Google Drive, and instantly share it on Slack. This n8n workflow eliminates external libraries.
Download this n8n workflow template and start using it instantly.
This powerful n8n workflow provides a 100% free solution for creating professionally formatted PDF documents without relying on external libraries or paid conversion services. It leverages the robust formatting capabilities of Google Docs and the content generation power of OpenAI.
The process begins with an n8n trigger, where an AI model generates highly structured Markdown content. The core innovation of this n8n workflow is the seamless conversion: the Markdown is uploaded to Google Drive using a specific HTTP Request n8n node, which automatically converts it into a Google Document. This Google Document is then exported as a high-quality PDF, archived in Google Drive, and finally distributed instantly via a dedicated Slack channel. This full-circle n8n automation is perfect for generating reports, technical guides, or proposals directly within your business processes.
The entire process is managed sequentially through several critical n8n node steps:
mimeType, this n8n node forces Google Drive to interpret the Markdown and convert it into a new, formatted Google Document.application/pdf), effectively generating the PDF file on the fly.To deploy this comprehensive n8n workflow template, follow these steps:
files:write permission and be invited to the target channel.Drive Folder ID with the ID of the Google Drive folder where you want to archive the generated PDFs.Channel ID matches the channel where the PDF should be posted. This completes the setup for this powerful n8n template. When clicking ‘Execute workflow’ (Manual Trigger n8n trigger): The starting point of the n8n workflow, allowing manual testing. For automation, replace this n8n trigger with a Webhook or Cron n8n node.
Generate sample markdown document (LangChain Agent n8n node): Uses a complex prompt instructing the connected OpenAI Chat Model to generate a full Markdown document showcasing various formatting elements.
Configure Google Drive Folder (Set n8n node): Defines two key variables: Drive Folder ID (the destination for archiving) and Today (a timestamp used for unique file naming).
Create document file (HTTP Request n8n node): This node is critical. It performs a POST request to the Google Drive upload endpoint, bundling the Markdown content in a multipart/related body. Key configuration includes using application/vnd.google-apps.document as the MIME type to initiate the Markdown-to-Google Docs conversion.
Convert document to PDF (Google Drive n8n node): Operates on the generated Google Doc ID. The operation is 'download', but the 'Google File Conversion' option is set to convert the document to application/pdf before downloading.
Archiving PDF File (Google Drive n8n node): Uploads the newly created PDF file into the designated Drive Folder ID for permanent storage.
Download attachment file (Google Drive n8n node): Downloads the archived file's binary data for subsequent steps, ensuring the Slack n8n node has the necessary payload.
Send message (Slack n8n node): The final action, uploading the PDF file to a specified Slack channel (C097VAKKPUP) with a static initial comment.
Use this powerful n8n workflow to automatically generate personalized contracts using Typeform submissions, fill Google Docs templates, export as PDF, and send via Gmail.

Use this comprehensive n8n workflow to automatically generate structured, high-quality AI news newsletters using an AI Agent (GPT-4) and send them with perfect HTML formatting via the Gmail n8n node. Download the n8n templates today.

Automate daily Reddit discussion posts using this robust n8n workflow. It leverages GPT-4o to generate unique questions, archives used content in Airtable, and posts via the Reddit n8n node.

Generate sample data records using the n8n Code node (JS/Python) and split them into individual items using the n8n Split Out node. Essential for testing complex n8n workflows and prototyping logic.

Use this comprehensive n8n workflow to automate AI image generation via OpenAI (DALL-E) and seamlessly manage the resulting files in Azure Blob Storage. Perfect for learning n8n templates.

Use this powerful n8n workflow to generate 'Image to Image' AI art via the Sora GPT API, automatically convert base64 output, store files in Google Drive, and log all generation activity in Google Sheets. Perfect for scaling content creation.

Empowering small and medium businesses with smart automation and practical AI, no big tech team required.







































