Hi everyone,
I’m working on an n8n workflow where I want to generate custom company policy documents using OpenAI. Here’s the idea:
- The system prompt contains a predefined policy template.
- The user provides a query, and sometimes uploads supporting documents about their company.
- The goal is to generate a final policy document (e.g. PDF or DOCX) tailored to the user’s input and the template.
I was told that one option is to instruct the OpenAI node to output the result in HTML format, then use a node (or tool) to convert that HTML into a downloadable PDF.
My questions:
- What is the best way in n8n to convert HTML (from OpenAI) into a PDF or Word document?
- Are there any native or community nodes that make this process easier (e.g.
HTML to PDF, Google Docs, etc.)? - Is this the most reliable approach, or do you recommend another workflow for document generation?
Appreciate any ideas or node suggestions!
Information on my n8n setup:
- n8n version: Version 1.100.1
- Database :default: SQLite
- n8n EXECUTIONS_PROCESS setting: default: own, main)
- Running n8n vian8n cloud,
- Operating system: Windows