See llms.txt for all machine-readable content.

Back to Templates

Create and email secure AI resume PDFs with OpenAI, HTMLCSS2PDF and Gmail

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

  1. Receives a submission from an n8n Form with the user’s name, email, phone number, raw experience notes, and a password-protection choice.
  2. Sends the submitted details to OpenAI to produce a complete resume as a single, valid HTML document with inline CSS.
  3. Converts the generated HTML into a PDF file using the HTMLCSS2PDF service.
  4. Checks whether the user selected password protection for the PDF.
  5. If enabled, encrypts/locks the PDF with the user’s phone number using HTMLCSS2PDF PDF security.
  6. Sends the resulting PDF to the user’s email address via Gmail, using either the standard or secure email template.

Setup

  1. Add an OpenAI API credential and ensure the selected chat model (gpt-4o-mini) is available in your account.
  2. Add an HTMLCSS2PDF credential for both HTML-to-PDF conversion and PDF security/locking.
  3. Add a Gmail OAuth2 credential and confirm the workflow can send emails from the connected mailbox.
  4. Review the form fields (especially email and phone number) and customize the email subject/body content if needed before activating the workflow.