Fill any PDF from JSON data with JustFill and Google Gemini vision
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when someone submits an n8n form (“Fill any PDF with JustFill (AI)”). It uses only n8n's built-in nodes. It also calls justfill.app and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Fill any PDF with JustFill (AI)”).
- Config (Edit Fields (Set)): sets 3 fields: apiKey, geminiKey, model
- Mint upload slot (HTTP Request): calls justfill.app (POST)
- Prepare upload (Code): runs custom JavaScript code
- Upload PDF (HTTP Request): calls an HTTP API (POST)
- Open PDF (HTTP Request): calls justfill.app (POST)
- Prepare page previews (Code): runs custom JavaScript code
- Render preview (HTTP Request): calls justfill.app (POST)
- Attach page preview (Code): runs custom JavaScript code
- Build mapping request (Code): runs custom JavaScript code
- Mapping vision model (HTTP Request): calls generativelanguage.googleapis.com (POST)
…plus 9 more steps. See the full node list below.
HTTP calls to: justfill.app, generativelanguage.googleapis.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - n8n Form
n8n-nodes-base.form
From the author
Quick overview This workflow collects a PDF and a JSON payload via an n8n form, uses JustFill to detect fields and render previews, then uses Google Gemini Vision to map data to field IDs and visually review the filled result before generating a downloadable…