Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Adding AI to a System Already in Use
Python & Django

Adding AI to a System Already in Use

Adding AI to a Django application safely: classification, extraction and drafting, called from a background task and stored as data with a review queue.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Classification, extraction and drafting. Call the model from a background task, store the result as structured data with a confidence, and keep a review queue.

Three things that fit

  1. Classification — routing, categorising, prioritising
  2. Extraction — documents and free text into structured fields
  3. Drafting — replies and summaries for a person to review
All three produce output a person can check in seconds, which is what makes them safe to add to a system people already depend on.

Call from a task, not a view

Model calls are slow and occasionally fail. Making one during a request means a user waiting and a request that sometimes times out.

  • Queue the work, process it, store the result
  • The interface shows pending, then the result
  • Retries handled by the queue
  • A provider outage delays rather than breaks

Store it as data on the model

The output should land as structured fields with a confidence value, not be regenerated each time it is displayed. That makes it queryable, auditable, correctable and cheap.

Add fields for the model version and prompt version too, so an output can be explained months later.

Keep the human path

RequirementWhy
Review queue for uncertain outputErrors reach a person
In-place correctionFixing must be easy
Corrections captured as dataThey improve the system
A switch to disable the AI stepWhen something goes wrong
Original input preservedReprocessing and disputes

Controls

A hard daily cost cap, a per-user cap, cost per item tracked, and prompts in configuration rather than in code so they can be changed and rolled back.

None of that is difficult, and all of it is what makes an AI feature safe to run in a system the business depends on.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Does this need a rewrite?

No. It is usually a background task, a few model fields and a review screen alongside what you already have.

How long to add?

Four to eight weeks for a first capability including the evaluation set and review interface.

What about our data leaving?

A decision to make deliberately: which provider, which region, what retention, and whether to redact first.

What if it gets things wrong?

It will sometimes. That is what confidence routing and the review queue are for.

Keep reading

More on Python & Django

Python & Django

An API Other Systems Can Depend On

Designing a Python API service others can depend on: validation at the boundary, consistent errors and status codes, early versioning and documentation.

Python & Django

Moving and Transforming Data Reliably

Building data pipelines in Python that cope with malformed input: restartable stages, quarantining failures, reconciling counts and alerting on absence.

Start here

Have a Django system that could classify or extract automatically?

Tell us what people currently do by hand and we will tell you whether it fits.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →