AI Automation

Automating the Reading, Sorting and Typing Your Team Does All Day

Plenty of business processes are stuck on manual work because the input is messy: emails written in different styles, attachments in different formats, requests that need someone to read them before anything can happen. A language model can handle the reading. Everything else in the pipeline should stay as plain, predictable code.

What is AI Automation?

AI automation is the use of language or vision models inside a business workflow to handle steps that previously needed a person to read or interpret content, such as classifying an email or extracting fields from a document. The surrounding steps, like routing, validation and writing to systems, remain deterministic, and uncertain cases go to human review.

Who it's for

  • Operations teams processing a high volume of emails, forms or requests by hand
  • Finance and admin teams keying data from documents into accounting or ERP systems
  • Sales and support teams that triage inbound messages before anyone can respond
  • Businesses whose existing automation breaks whenever the input format varies

Problems it solves

  • Skilled staff spend hours a day reading and categorising messages before doing real work
  • Rule-based parsers fail whenever a sender changes their template
  • Backlogs build up during busy periods because triage cannot scale with volume
  • Nobody knows how accurate the current manual process actually is
Scope

What can be delivered

  • Process map with model and rule steps

    A clear split of which steps are deterministic and which need a model, agreed before building.

  • Intake and classification pipeline

    Ingestion from inboxes, forms or uploads, with structured classification and extraction output.

  • Review queue

    A simple interface where low-confidence or flagged items are checked, corrected and released.

  • Integrations

    Writes into your CRM, helpdesk, accounting or database through their APIs.

  • Accuracy reporting

    Ongoing measurement of automation rate, correction rate and error types from reviewed items.

Technical approach

Split deterministic steps from model steps

A typical pipeline has more ordinary steps than AI steps. Receiving an email, looking up the sender, checking a PO number against the database and posting a record are all deterministic. Only reading the free-text body or the attached document needs a model. Keeping that split explicit makes the system cheaper, faster and much easier to debug, and it means a model change only affects the steps that use it.

  1. Ingest and normalise the input (email, PDF, form submission).
  2. Apply cheap rules first: known senders, exact matches, duplicates.
  3. Model step: classify intent and extract fields into a fixed schema.
  4. Validate the extracted data in code against your records.
  5. Route by confidence: automatic, review queue or reject.

Confidence thresholds and human review

Models are wrong some of the time, so the design question is what happens when they are. Each output gets a confidence signal from a combination of sources: validation results, agreement with business rules, and the model's own classification. Items above the threshold proceed, the rest go to a queue where a person can correct them in seconds. Thresholds start conservative and are adjusted using the corrections reviewers make.

Queues, retries and measuring accuracy

Model APIs time out and rate-limit, so each step runs as a background job with retries, backoff and idempotency, using something like BullMQ on Redis or a cloud queue. Failed jobs land somewhere visible rather than disappearing. Accuracy is measured continuously from the review queue: how many items were automated, how many were corrected and which fields fail most often. That data shows where to improve prompts or rules next. I cover evaluation and structured output further in building AI features that ship.

Technology

Technologies for AI Automation

Models

  • OpenAI API
  • Anthropic API
  • Google Gemini

Pipeline and queues

  • Node.js
  • NestJS
  • Bull Queues
  • Redis
  • GCP Pub/Sub

Document input

  • Email APIs
  • PDF parsing
  • OCR services

Storage and review

  • PostgreSQL
  • MongoDB
  • Next.js
Process

How the work runs

  1. 01

    Sample real inputs

    Collect a few hundred real emails or documents, including the messy ones, and record what the correct outcome was.

  2. 02

    Design the split

    Decide which steps are rules and which need a model, and define the extraction schema.

  3. 03

    Build with review on

    Launch with every item going through review, so accuracy is measured on live data before anything is automatic.

  4. 04

    Raise automation gradually

    Move categories to automatic processing as their measured accuracy justifies it.

  5. 05

    Maintain

    Watch correction trends, update prompts and rules, and retest when models or input formats change.

Trade-offs

Decisions worth making early

  • Rules may be enough

    If inputs come from a small set of fixed templates, conventional workflow automation without a model is simpler and cheaper.

  • Cost scales with volume

    Per-item model costs are small but multiply quickly. Running cheap rules first and using smaller models for simple classification keeps them in check.

  • Scanned documents need OCR quality

    Poor scans limit what any model can extract. See computer vision and OCR for handling image quality.

  • Personal data in transit

    Emails and documents often contain personal information. Redacting what the model does not need and reviewing provider terms is part of the build.

Related work

Projects involving this work

From my portfolio. Descriptions are the same as on the projects page.

  • Instantly.ai preview

    Web

    Instantly.ai

    B2B CRM for cold-email outreach with AI-powered personalization, deliverability and warm-up. Built core CRM modules, AI prompt tooling and real-time updates.

    • Next.js
    • NestJS
    • OpenAI
    • WebSockets
    • Postgres
    View product
  • All projects
Further reading

Related articles

Related services
  • Custom Software

    Workflow Automation

    Turning manual, repetitive processes into reliable automated workflows with queues, events and integrations, or a no-code tool when that's all you need.

  • AI & Data

    Computer Vision & OCR

    Document OCR and layout extraction for invoices, IDs and forms, with validation, human review and privacy controls for real-world image quality.

  • AI & Data

    AI Agent Development

    Agents that call your tools, read your data and take bounded actions, with permissions, approvals and monitoring designed in from the start.

  • AI & Data

    NLP Development

    Text classification, extraction, summarisation, search and sentiment, including multilingual text, using LLMs or smaller fine-tuned models as the task requires.

FAQs

Regular workflow automation follows fixed rules on structured input; AI automation adds model steps for input that needs reading or interpretation. In practice the best systems combine both, using rules wherever they work and a model only for unstructured text or documents.