Skip to main content

Generate and share professional PDFs with OpenAI, Google Docs, and Slack

Workflow preview

Workflow preview
100%
Generate and share professional PDFs with OpenAI, Google Docs, and Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 converter...

Best for

  • Document Extraction automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.manualtrigger, n8n-nodes-base.slack, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.set, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.

Original n8n.io source

1.1 Workflow description

Title
Generate and share professional PDFs with OpenAI, Google Docs, and Slack
Workflow name
Generate and share professional PDFs with OpenAI, Google Docs, and Slack

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:

Who’s it for

  • Teams that need auto-generated documents (reports, guides, checklists) in PDF format.
  • Operations or enablement teams who want files archived in Google Drive and shared in Slack automatically.
  • Anyone experimenting with LLM-powered document generation integrated into business workflows.

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

  • Credentials:
    • OpenAI API key (or compatible LLM provider)
    • Google Drive (OAuth2) with read/write permissions
    • Slack bot token with files:write permission
  • Access:
    • Write access to target Google Drive folders
    • Slack bot invited to the target channel

How to customize the workflow

  • Change the prompt in the OpenAI Chat Model to generate different types of content (reports, meeting notes, checklists).
  • Automate triggering:
    • Replace Manual Trigger with Cron for scheduled document generation.
    • Use Webhook Trigger to run on-demand from external apps.
  • Modify storage logic:
    • Save both .md and .pdf versions in Google Drive.
    • Use separate folders for drafts vs. final versions.
  • Enhance distribution:
    • Send PDFs to multiple Slack channels or via email.
    • Integrate with project management tools for automated task creation.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Archiving PDF File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - Download attachment file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Create document file

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Convert document to PDF

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 6 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 7 - Send message

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 8 - Generate sample markdown document

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 9 - Configure Google Drive Folder

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate and share professional PDFs with OpenAI, Google Docs, and Slack
Complexity advanced
Nodes 20
Categories Document Extraction, Multimodal AI
Author Trung Tran
Published 12 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7288/7288.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate and share professional PDFs with OpenAI, Google Docs, and Slack do?

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 converter...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, Multimodal AI use case.