Skip to content

Turns Out · · 14 min read

What is AI integration? Patterns, costs and a decision tree for adding AI to existing systems

The four AI integration patterns, what drives cost and timeline, and a decision tree for adding AI to your existing CMS, CRM or ERP without a rebuild.

AI integration is the work of connecting a language model to a system you already run, so the model can read from it, write to it, or act on its behalf under rules you set. It is different from AI adoption, which is people opening ChatGPT in another tab. The request usually arrives in one sentence: “Can we add AI to the CMS?”, “Can the CRM write follow-ups?”, “Can an agent handle invoices in the ERP?”

That sentence hides a design decision. An AI integration takes one of four shapes, and they differ in effort by roughly an order of magnitude. The right one is usually settled by a short conversation about the process, before anyone picks a model.

What AI integration means in practice

Adoption is no longer the hard part. In McKinsey’s 2026 State of AI survey of 1,719 participants in 97 countries, nearly nine in ten say their organization uses AI in at least one business function. Impact still is: only 37% attribute any effect on EBIT (operating profit) to AI, essentially unchanged from 2025, and the high-performer group getting 5% or more of EBIT from AI stayed at about 6%.

What separates the 6% is not a model choice. McKinsey’s reading is that high performers redesign the workflow around the AI step: nearly three-quarters report doing so, against about a quarter of everyone else. The survey is self-reported, so treat that as a correlation rather than proof. Integrating AI is the part where a model stops being a chat window and becomes a step inside a process, with inputs it can trust, permissions it cannot exceed, and an output somebody checks.

Our working definition: an AI integration is a model call with three things attached. A source of truth it reads from, a boundary on what it can change, and an evaluation that tells you when it is wrong. The vendor, the framework and the “AI integration platform” in the proposal are implementation detail.

The four AI integration patterns

The first three are listed in order of effort, cheapest first; the fourth turns the direction around and sits between the second and third. Real AI integrations often combine two of them. The effort bands are rough orders of magnitude for a first production version on a system with a usable API. They separate a job that takes days from one that takes months, and they are not a quote.

Pattern 1: an API call inside an existing app

The model is a function. Your CMS, CRM or back office already has a place where the work happens; you add one model API call there.

  • Trigger — a user clicks “Suggest a summary”, saves an entry or opens a record.
  • Step — your code sends the relevant fields and a fixed instruction to the model API.
  • Step — the response is validated (schema, length, forbidden content) and written back as a draft, never as the final value.
  • Human — the editor or rep accepts, edits or discards it.

Typical uses: meta descriptions and alt text in a CMS, lead summaries in a CRM, ticket categorization, translation drafts. Effort band: days. The code is a few hundred lines, mostly validation. The risk is not technical. It is that the feature is quietly wrong some of the time and nobody measures it, which is why the write-back is always a draft.

Pattern 2: an event-driven workflow

The model is one node in a chain that runs with nobody at the keyboard. Something happens in system A, a queue picks it up, the model does one bounded job, the result lands in system B.

  • Trigger — a webhook, a new row, an incoming email, a nightly schedule.
  • Step — a queue (your own, or an n8n / Make flow) receives the event and fetches the context the model needs.
  • Step — the model classifies, extracts or drafts; the output is checked against rules before it moves on.
  • Step — the result lands in the destination, as a draft or a pending record when that destination is a system of record; failures go to a retry queue and a human inbox.

Typical uses: lead enrichment and routing, invoice field extraction, ticket triage, catalog tagging. Our guide to 12 workflows worth automating first is mostly this pattern. Effort band: 1 to 3 weeks. The risks are operational: idempotency (the same email processed twice), silent failures, and a flow nobody owns once its builder leaves.

Pattern 3: RAG or an agent on top of your data

The model answers questions or carries out multi-step tasks over your own content: documentation, product data, policies, past tickets. Retrieval-augmented generation (RAG) fetches the relevant passages first and has the model answer from them, which keeps answers grounded and citable.

  • Trigger — a question from a customer, a staff member, or another system.
  • Step — the question is matched against an index of your content, built from the CMS or database and refreshed when content changes.
  • Step — the model answers from the retrieved passages only, with citations.
  • Step — for an agent, the model may also call tools (look up an order, open a ticket) inside limits you define; anything that changes a record goes in as a draft or waits for approval.

Typical uses: support assistants, internal knowledge search, onboarding. Effort band: 4 to 10 weeks, because the index, the chunking, the evaluation set and the refresh pipeline are each real work. The mechanics are in how a RAG chatbot works and what it costs. The risks: a stale index, retrieval that returns the wrong passage with full confidence, and, for agents, actions taken on bad inputs. That includes prompt injection: text the model reads (a ticket, an email, a web page) can carry instructions, so retrieved content is handled as data, never as commands, and the tools an agent can reach stay narrow. This is the pattern that tends to get sold when pattern 1 would do.

Pattern 4: MCP exposing your systems to agents

The direction flips. Instead of your code calling a model, agents (Claude, ChatGPT, Copilot, your own internal agent) call your system through a standard interface. The Model Context Protocol (MCP) is that interface. It runs on JSON-RPC 2.0 messages, and in the current revision every request is stateless and self-contained. Your server offers tools (functions for the model to execute), resources (context and data for the user or the model) and prompts (templated messages and workflows) to any MCP client.

  • Step — you write an MCP server over the CMS, CRM or ERP API: search_entries, get_order, create_draft.
  • Step — each tool carries a description, an input schema and scoped credentials; writes are draft-only or require approval.
  • Step — a client (a chat app, an IDE, your own agent) connects, discovers the tools and calls them as needed.
  • Human — approval sits in the client: the specification says hosts must obtain explicit user consent before invoking any tool.

MCP stopped being one vendor’s project in December 2025, when Anthropic donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation that Anthropic co-founded with Block and OpenAI, with support from Google, Microsoft, AWS, Cloudflare and Bloomberg. The protocol then counted over 97 million monthly SDK downloads and 10,000 active servers. By November 2026 its SDKs had passed 5 billion total downloads, with more than 700 million in the last 30 days, and the current specification revision is dated 2026-07-28. OpenAI’s Responses API calls a remote MCP server directly as one tool entry:

{
  "tools": [{
    "type": "mcp",
    "server_label": "your-cms",
    "server_url": "https://mcp.example.com/",
    "require_approval": "always"
  }]
}

Effort band: 2 to 6 weeks for a useful server with scoped auth, draft-only writes, rate limits and an audit log. The specification itself warns that tools represent arbitrary code execution, and that a tool’s description of its own behavior should be considered untrusted unless it comes from a trusted server. Our addition: a write without a boundary is a liability. A production example is the server we built for Delight.ai inside Craft CMS: 61 tools on the official MCP PHP SDK, its own OAuth 2.1 server, and read-only and destructive annotations on every tool, so Claude Code, Claude Desktop and Cursor can read and edit CMS pages. Every edit lands in a draft, nothing an agent does can touch a live page without a human, and edits made by Claude become visible in about 2.5 seconds instead of 17–20. One distinction to keep straight: MCP is server-side, for agents calling your systems. Making your public website usable by agents in the browser is a different job, covered in our WebMCP and agent readiness guide.

Three of the four patterns in one CMS

Combining patterns is normal. The Delight.ai CMS above runs three of them side by side:

  • Pattern 2, a workflow — a comment left on a page becomes an AI-drafted Jira ticket: one bounded model job between two systems.
  • Pattern 3, an agent — a tool-calling agent drafts and edits pages from inside Craft CMS, next to a pgvector store fed by a sitemap crawler and PDF and DOCX ingest. It works under per-turn budgets and tool-run limits, with a Stop button, and an admin debug page logs prompts, tool calls and tokens.
  • Pattern 4, an MCP server — the 61 tools described above, for agents that work outside the CMS.

The agent and the MCP clients write through the same guarded path as a human editor, so the draft rule above is one boundary covering two patterns. That is the practical argument for building the boundary before the second integration, not after it.

What drives the cost of integrating AI

The cost drivers are the same four in every pattern, and none is the per-token price. We do not quote money here; it moves with these four far more than with the model.

  • Data readiness — the model inherits every inconsistency in the source. Gartner forecast in February 2025 that through 2026 organizations would abandon 60% of AI projects unsupported by AI-ready data. In its July 2024 survey of data management leaders, 63% of organizations either did not have the right data management practices for AI or were not sure. Our 10-point AI-ready data checklist is the pre-flight check; a fail does not stop pattern 1, but it should hold back patterns 3 and 4 until it is fixed.
  • Auth and permissions — the model acts with somebody’s credentials. Scoping those to the minimum (read-only, one site, drafts only) is often the longest ticket in the project, because the existing system was never asked to express such limits. In Craft CMS or WordPress it is a dedicated user and role; in an ERP it can be a change request to another vendor.
  • Evaluation — 50 to 200 real inputs with known-good outputs, scored before launch and after every prompt or model change. Without it you cannot tell an upgrade from a regression. Budget it as a deliverable rather than a test phase.
  • Monitoring — token spend per feature, latency, failure rate, the share of outputs humans reject. Patterns 2 and 4 fail silently by default; monitoring makes them fail loudly.

Timeline follows the same list. In our experience the model call works early in the schedule; the rest is these four items and review loops with the process owners.

A decision tree for adding AI to your CMS, CRM or ERP

Answer in order; each question settles the pattern or sends you to the next.

  • Are the steps of the task known in advance? If yes, you want a workflow (pattern 1 or 2), not an agent. Anthropic draws the same line: workflows orchestrate models “through predefined code paths”; agents are for open-ended problems where the number of steps cannot be predicted. If no, an agent (pattern 3) is a candidate, and the questions below decide whether it is worth it.
  • Does a person trigger the task, or an event? A person at the screen → pattern 1. A webhook or schedule → pattern 2.
  • Does the model need your content to answer, or just the record in front of it? The record alone → stay at pattern 1 or 2. A body of content, policies or history → pattern 3, provided the data checklist passes.
  • Will outside agents need to use the system, not just your own code? Yes → pattern 4, usually alongside another; a good MCP server is the reusable version of an integration you would otherwise write twice. No → skip it; none of the other patterns needs MCP.
  • Can a wrong output be caught before it matters? If not, add a reviewer or lower the ambition; no pattern is safe with an unchecked write to a system of record.
  • Does the flow run fewer than roughly 20 times a month? Then do it by hand with a template and a chat window; the integration will not pay back.
  • Is the real problem the data, not the model? Fix the data first. Every pattern gets cheaper afterwards, and the fix helps things unrelated to AI.

Many requests for AI automation and integration are settled by the first or second question. Far from a disappointing outcome, that is the cheap, reliable one.

What we advise against

  • An agent for a task with known steps. It costs more, fails in more interesting ways and is harder to evaluate. Anthropic’s advice in December 2024, after a year of working with dozens of teams building agents, was to find the simplest solution possible and add complexity only when needed; we have found no reason to disagree.
  • Buying the label. Gartner estimated in June 2025 that only about 130 of the thousands of vendors selling “agentic AI” offer the capability in substance, and it predicted that over 40% of agentic AI projects will be canceled by the end of 2027 over cost, unclear value and weak risk controls. Ask any AI integration platform what it does without a model attached.
  • Integrating before the workflow is mapped. MIT NANDA’s report The GenAI Divide, dated July 2025, found that only 5% of custom enterprise AI tools reached production and that 95% of organizations were seeing no business return. Its base is small (52 structured interviews, 153 survey responses and a review of some 300 public initiatives), and the headline travels further than that supports. But the failure mode it describes, tools that do not fit the workflow and cannot learn from it, is the one the decision tree above is built to catch.
  • Skipping the evaluation set because the demo looked good. The demo is one input; the evaluation set is the 150 arriving next month.
  • Letting the model write to a system of record without a draft state. A draft or pending state is cheap to add, and it is what keeps a model’s write reversible in every pattern above.
“It’s about driving business value through cost, quality, speed and scale.”
Anushree Verma, Senior Director Analyst, Gartner, June 2025

Questions readers ask

Which AI integration tools or platform do we need?

Fewer than the proposal says. Pattern 1 needs a model API key and your codebase; pattern 2 a queue or workflow engine you may already run, n8n and Make included; pattern 3 adds a vector index, for most sites Postgres with the pgvector extension is enough; pattern 4 needs an official MCP SDK for your backend language. A platform earns its place when it replaces several of those for a team that will not maintain code.

How long does an AI integration take?

As rough orders of magnitude for a first production version: days for a model call inside an existing screen, 1 to 3 weeks for an event-driven workflow, 2 to 6 weeks for an MCP server, 4 to 10 weeks for a RAG assistant or agent. That assumes usable data and process owners who show up for review; data that is not ready can easily double the band.

Is MCP the same as WebMCP?

No. MCP is a server-side protocol through which agents call your systems with scoped credentials. WebMCP is a draft browser API, in origin trials in Chrome and Edge as of December 2026, for exposing a website’s own functions (search, forms, checkout) to agents that visit it. A business can need both; they are built against different surfaces.

If you are weighing one of these patterns against a system you already run, the free AI readiness assessment ranks your candidate use cases by ROI and feasibility and checks the data and integrations each one depends on. The report names the use cases not worth building, and it says “not yet” when that is the honest verdict.

Working on something this touches?

A senior engineer reads every message — and will tell you honestly if it is not worth building.

TALK TO A DEV