Quick overview
This workflow collects resume details via an n8n Form, uses OpenAI to generate a styled HTML resume, converts it to PDF with HTMLCSS2PDF, optionally password-protects the PDF using the user’s phone number, and emails the result to the user via Gmail.
How it works
- Receives a submission from an n8n Form with the user’s name, email, phone number, raw experience notes, and a password-protection choice.
- Sends the submitted details to OpenAI to produce a complete resume as a single, valid HTML document with inline CSS.
- Converts the generated HTML into a PDF file using the HTMLCSS2PDF service.
- Checks whether the user selected password protection for the PDF.
- If enabled, encrypts/locks the PDF with the user’s phone number using HTMLCSS2PDF PDF security.
- Sends the resulting PDF to the user’s email address via Gmail, using either the standard or secure email template.
Setup
- Add an OpenAI API credential and ensure the selected chat model (gpt-4o-mini) is available in your account.
- Add an HTMLCSS2PDF credential for both HTML-to-PDF conversion and PDF security/locking.
- Add a Gmail OAuth2 credential and confirm the workflow can send emails from the connected mailbox.
- Review the form fields (especially email and phone number) and customize the email subject/body content if needed before activating the workflow.