AI automation / Manufacturing / 2026–present

From Order PDF to Production List: AI Agents for Order Processing at a German Manufacturer

Lionscraft built and runs an AI-agent pipeline that reads customer orders arriving by email and turns each one into production documents, a delivery-note table and a sorted production list, without retyping the order by hand.

BuildOperate
3
specialised AI agents, one per output
18
columns in the generated production list
1 min
until a new order email is picked up
On this page

The story in brief

01 — Situation

Customer orders arrive as PDF attachments by email. Positions, dimensions, materials, drawing numbers and delivery dates had to be transferred by hand into the documents that production and logistics work from.

02 — Role

Lionscraft designed, built and operates an automated data pipeline with three specialised AI agents, delivered with a seven-person team.

03 — Work

An n8n workflow that watches the order inbox, checks senders, recognises genuine order PDFs, reads order and project numbers and uses Google Gemini agents to produce three outputs for every order.

04 — Outcome

The pipeline runs in production and is developed in versioned releases, currently v10.5. The next stage brings the agents into production itself and automates invoicing.

Client
Mid-sized industrial manufacturer, Germany (not named)
Industry
AI automation · Industrial parts manufacturing
Period
2026–present
Project
AI agents for order processing, from order PDF to production list
Team
Seven people
Technical stack
n8n, Google Gemini agents, JavaScript, Gmail, Google Drive, Google Docs, Google Sheets API, XLSX export, Telegram
Services
Build · Operate

The challenge

Order data was copied by hand from PDF into production and logistics documents

The manufacturer receives its customers' orders as PDF documents. A single order can contain many positions: parts with quantities, dimensions, materials, drawing numbers, manufacturing notes and delivery dates.

Production needs that information as job documents and as a production list sorted the way the shop floor works. Logistics needs it as a delivery-note table. Transferring it manually takes time, invites errors, and the sort order depends on rules that differ by part type.

The requirement was not a chatbot. It was a dependable pipeline from the inbox to finished documents, with checks at every step and people still in control of what reaches the shop floor.

The story

01

From inbox to order folder

The workflow checks the order inbox every minute. It accepts only messages from an allow-list of known senders, keeps the PDF attachments and confirms that each document contains the terms that mark a genuine order.

Every order is stored in Google Drive. The workflow reads the order number and the project number from the document and creates a dedicated folder for that order, so all outputs end up in one place.

Short Telegram messages report when a run starts, which order was processed and when it has finished.

02

Three agents, three outputs

Instead of one general-purpose prompt, the pipeline uses three agents, each with a narrow task and a fixed output format:

Production documents. One agent prepares every part as a block for the job documents. A fixed page layout keeps three parts per page, so no part is split across a page break. The result is written to a Google Doc.

Delivery-note table. A second agent produces the logistics view: position, customer order number, item text, part code, quantity, unit and delivery date, with a free column for remarks.

Production list. A third agent extracts every order position as structured JSON: position, quantity, material, description, dimensions, drawing number, material grade, manufacturing note and delivery date.

03

A production list that follows shop-floor rules

The structured data is written to Google Sheets through the Sheets API, formatted, exported as an Excel file and saved in the order folder. The temporary working file is removed afterwards.

The production list has 18 columns and follows the sort order the shop floor uses, with rules per part type: compensation pieces by thickness, segments by their S value, support plates by A3, spacers in their own block by A, and spacer rings and unassignable sizes at the end. Equal values keep the order of the original document.

All dimensions are retained, and the full manufacturing notes appear under them. The latest release adds a delivery date for every order position, including partial quantities, taken directly from the order; missing dates stay empty rather than being guessed.

04

Guardrails before automation

An automated pipeline is only useful if it stops when something is wrong. The workflow therefore checks its inputs and outputs at several points:

Documents without the required order keywords are rejected. Agent output must be valid JSON. If no production positions are recognised, the workflow stops instead of creating an empty production list.

The order text is treated strictly as data: instructions that appear inside a document are not followed. New releases are tested locally against previous orders and targeted test cases for each part type, then with real order PDFs in the live workflow.

05

In production, and still growing

The pipeline has run in production since early 2026. It is developed in versioned releases as the client's requirements evolve; the most recent change request added the delivery date for each order position.

The next stage extends the agents beyond order intake: into production itself and into automated invoicing.

What Lionscraft did

Results and impact

01

In production: Orders arriving by email are processed automatically, from the inbox to a dedicated order folder.

02

Three outputs per order: Production documents, a delivery-note table and an Excel production list with delivery dates per position.

03

Shop-floor logic encoded: Part-specific sorting rules applied consistently to every order.

04

Guardrails: Sender allow-list, order-keyword check, JSON validation and protection against instructions hidden in documents.

05

Next stage: AI agents for production and automated invoicing.

No figure for hours saved is claimed; the client is not named.

Discuss a similar challenge

Orders, delivery notes or invoices still typed in by hand?

Lionscraft builds AI-agent workflows that read the documents you already receive, turn them into the formats your teams work with and check every step before anything reaches production.

Discuss your workflow