Collect packaging declarations from CSV with forms, AI agents and email
Needs changesWhat this workflow does
This AI workflow has 23 nodes and runs when someone submits an n8n form (“Send declaration requests”) (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Send declaration requests”) (plus 1 other trigger).
- Configuration (Edit Fields (Set)): sets 8 fields: company_name, form_url, from_email…
- Which form was it? (If): checks a condition and branches into true / false
- Find the attachment (Code): runs custom JavaScript code
- Find the list (Code): runs custom JavaScript code
- Declaration to text (Extract from File): extracts data from a file (pdf)
- CSV to rows (Extract from File): extracts data from a file
- Read the declaration (AI Agent): runs an AI agent
- Check the list (Code): runs custom JavaScript code
- Parse what was read (Code): runs custom JavaScript code
- Build the invitation (Code): runs custom JavaScript code
…plus 11 more steps. See the full node list below.
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Read the declaration (v1.7), Draft the covering paragraph (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Read the declaration (v1.7), Draft the covering paragraph (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Extract from File
n8n-nodes-base.extractFromFile - Send Email
n8n-nodes-base.emailSend - n8n Form
n8n-nodes-base.form - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Quick overview This workflow emails packaging declaration (PPWR) requests from an uploaded supplier CSV, collects supplier submissions via an n8n Form with a PDF attachment, uses agent to extract key fields from the PDF, runs a deterministic checklist, and…