๐Ÿ”ฌ Generate and share professional PDFs with OpenAI, Google Docs, and Slack

โšก 3,442 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

Free PDF Generator in n8n โ€“ No External Libraries or Paid Services

> A 100% free n8n workflow for generating professionally formatted PDFs without relying on external libraries or paid converters. It uses OpenAI to create Markdown content, Google Docs to format and convert to PDF, and integrates with Google Drive and Slack for archiving and sharing, ideal for reports, BRDs, proposals, or any document you need directly inside n8n.

Watch the demo video below:

Watch the video

Whoโ€™s it for

How it works / What it does

  1. Manual trigger starts the workflow.
  2. LLM generates a sample Markdown document (via OpenAI Chat Model).
  3. Google Drive folder is configured for storage.
  4. Google Doc is created from the generated Markdown content.
  5. Document is exported to PDF using Google Drive. (Sample PDF generated from comprehensive markdown)
  6. PDF is archived in a designated Drive folder.
  7. Archived PDF is downloaded for sharing.
  8. Slack message is sent with the PDF attached.

How to set up

  1. Add nodes in sequence:
    • Manual Trigger
    • OpenAI Chat Model (prompt to generate sample Markdown)
    • Set/Manual input for Google Drive folder ID(s)
    • HTTP Request or Google Drive Upload (convert to Google Docs)
    • Google Drive Download (PDF export)
    • Google Drive Upload (archive PDF)
    • Google Drive Download (fetch archived file)
    • Slack Upload (send message with attachment)
  2. Configure credentials for OpenAI, Google Drive, and Slack.
  3. Map output fields:
    • data.markdown โ†’ Google Docs creation
    • docId โ†’ PDF export
    • fileId โ†’ Slack upload
  4. Test run to ensure PDF is generated, archived, and posted to Slack.

Requirements

How to customize the workflow

๐Ÿ”— Nodes Used

HTTP Request, Slack, Google Drive, AI Agent, OpenAI Chat Model

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup