The task: for a private chef service, generate a clean-looking PDF with each new form submission and push it back into an n8n workflow.
There weren’t any built-in HTML to PDF options (outside paid tools or self-hosting n8n and using an opensource app installed),
So with power of AI I coded my own small API that takes HTML, renders a PDF, and returns it to n8n. Deployed it on Vercel so the client can use it for free.
The annoying bit: CSS wouldn’t load in the PDF for more than 3 hours plus. No clear reason, but I worked around it and now have a working solution.
I used Claude Code to create the API.
Hosted on Vercel for free
Google Drive to upload the PDF to
n8n for the automation