Templates / Generate HR offer letters and contracts with GPT-4.1-mini and Google Docs

Generate HR offer letters and contracts with GPT-4.1-mini and Google Docs

Ready for 3.0

by isaWOW ✓ · 304 views · created 2026-02-06 · HR, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs when someone submits an n8n form (“Basic Details”). Along the way it connects Google Docs and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Basic Details”).

  1. Split Documents and Calculate Dates (Code): runs custom JavaScript code
  2. Extract Text from Aadhar and Resume (Extract from File): extracts data from a file (pdf)
  3. Merge Extracted Document Texts (Aggregate): combines items into one
  4. Check Document Type Selection (If): checks a condition and branches into true / false
  5. Load Offer Letter Template (Edit Fields (Set)): sets 1 field: template_offer
  6. Load Contract Template (Edit Fields (Set)): sets 1 field: template_contract
  7. Fill Template with AI (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 Mini Model
  8. Save Document to Google Docs (Google Docs): update

Services it uses

Google DocsOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Description An intelligent AI-powered workflow that automates HR document creation for new hires. Upload candidate documents via form, and the system extracts details, auto-calculates joining dates, fills professional templates using GPT-4, and saves the…

Excerpt from isaWOW's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.