← Blog

Custom AI Integration With Existing Systems

A custom AI tool rarely needs new software around it. It needs a trigger from a system you already run, a model call and a place to write the result. The hard part is deciding what it receives, what it produces and where a person still decides.

We build custom AI tools through our AI integration service, so weigh that. Every fact below about Anthropic, OpenAI, Google, HubSpot, WooCommerce and WordPress was checked against their own documentation in October 2026.

Short answer: An event in your CRM, store or site, usually a webhook, starts the job. Your code sends only the needed fields to a model API, asks for an answer that matches a schema, writes it to a defined field and logs the result. Nothing gets replaced. Pick one workflow, define the input, output and handoff point, and test on real past cases first. Running costs follow the vendor’s published per-token prices.

What the Vendor Docs Say

As of October 2026, from Anthropic, OpenAI, HubSpot and WooCommerce documentation:

TopicWhat the docs say
Claude Sonnet 5.5$2 input, $10 output, per million tokens
Claude Haiku 5.5From $0.10 input, $0.50 output, per million tokens
Batch API50% off input and output tokens
Tool useYour code runs the tool and returns the result
Strict tool usestrict: true makes tool inputs match your schema
MCP connectorBeta; remote servers only; tool calls only
Claude retirementsAt least 60 days’ notice
OpenAI retirementsAt least 6 months for generally available models
HubSpot webhooksFailed sends retried up to 10 times over 24 hours
WooCommerce webhooksDisabled after more than five failures in a row

Sources: Anthropic pricing, Claude tool use, Claude MCP connector, Claude model deprecations, OpenAI deprecations, HubSpot webhooks, WooCommerce webhooks.

What AI Tool Integration Actually Means for a Small Business

For a small business, AI integration is narrower than the phrase suggests. It’s one workflow and one tool, running in production, reading from and writing to the systems your team already uses. Projects that try to touch every system at once tend to stall in scoping, because nobody can say what “done” looks like.

API Connection vs. Custom AI Build: The Real Difference

An API connection here means switching on an AI feature inside software you already use, like an assistant built into your CRM. You’re configuring someone else’s product. You can’t change the logic, and if the vendor changes the feature or its price, your workflow changes with it.

A custom AI build is code that calls a model API and wires it into your workflow. With Claude, you define a tool with an input schema; Claude returns a structured tool call, and your code runs the operation and sends back the result (source). The model suggests the action. Your code decides whether to write it, and where.

What “Owning” Your AI Tool Means (and Why It Matters)

Owning the tool means the source code, deployment setup, API keys and documentation are yours, in accounts held in your name. Another developer can pick it up without the original builder. Our guide to what an AI project handoff should include lists the pieces.

Ownership doesn’t remove every dependency. The model is still a service you pay for by the token, and vendors retire models. Anthropic gives at least 60 days’ notice before retiring a publicly released model, and requests to a retired model fail (source). So owning the code also means owning the upgrade. On data, Anthropic says it doesn’t use API inputs or outputs to train models by default (source).

The Right Starting Point: Mapping the Workflow Before Touching Any Tech

A tool built before anyone wrote down the workflow tends to miss how the team works, and nobody adopts it. Start on paper: who does the task today, what they look at, what they decide and where the result goes. Our post on mapping dependencies before building an AI pipeline covers that step.

How to Identify the One Workflow Worth Automating First

Look for a task that happens several times a week, follows a predictable pattern and needs repetitive reading, writing or sorting.

Good candidates:

  • Reading inbound enquiries and drafting a first reply for a person to approve
  • Pulling line items from supplier invoices into your accounting tool
  • Drafting a first proposal from a fixed set of client inputs
  • Tagging support tickets by category for a weekly summary

Poor candidates:

  • Judgment calls nobody can write a rule for
  • Tasks that happen once a month
  • Anything severe and irreversible with no review step

Defining Inputs, Outputs, and Handoff Points Before Any Build Begins

Before any code, write a one-page spec that answers three questions:

  1. Input: what does the tool receive, and what event sends it?
  2. Output: what does it produce, and in what shape? A draft email, a JSON record, one custom field.
  3. Handoff: when does a person take over? A missing field, an odd value, a complaint, a large amount.

For the output, Claude’s structured outputs take a JSON schema and return a response that follows it, so your code isn’t parsing free text (source). If you can’t answer all three questions, the project will drift. Our guide to defining AI automation inputs and outputs goes further.

How a Custom AI Integration Is Built, Step by Step

Stage length depends on your systems and spec, so we scope each project rather than quote a standard timeline.

  1. Spec: the input, output and handoff definition above.
  2. Model and prompt: test candidates against real past cases.
  3. Integration: trigger, model call, write-back, error handling, logging.
  4. Parallel run: the tool runs next to the manual process until results hold up.
  5. Handoff: code, keys, documentation and a named owner on your side.

Choosing the AI Model Layer: Claude, OpenAI and Gemini APIs

We don’t rank vendors. The docs show all three main APIs support the same core pattern: you describe a function with a schema and the model returns a structured call. That’s tool use at Anthropic, function calling at OpenAI, and function calling in the Gemini API.

Check model names before you build, because they change. Anthropic’s current lineup is Claude Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5 (source). GPT-4o is still in OpenAI’s model catalog, but OpenAI points new work to GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna (source), and the older gpt-4o-2024-05-13 snapshot shuts down on October 23, 2026 (source). Google lists Gemini 3.8 Flash among its latest models (source).

Test two or three on your own past cases, and keep the model call behind one function so switching is a one-place change.

Connecting to Your Existing Systems Without Replacing Them

The AI layer is additive: your CRM, store and site stay where they are. Most systems announce changes through webhooks. HubSpot apps can subscribe to CRM events such as contact, company and deal changes, and each subscription needs a matching scope, such as crm.objects.contacts.read for contact events. HubSpot signs requests with an X-HubSpot-Signature header you should verify, and it may send the same notification more than once (source). So your code must handle duplicates without writing twice. Our post on connecting Claude to your CRM covers that case.

WooCommerce can send a webhook when orders, products, coupons or customers change, hashed with a secret you set (source). The WordPress REST API sends and receives JSON, and since WordPress 5.6 Application Passwords can authenticate requests over HTTPS (source). Our custom WordPress development work often serves as the data layer for AI tools we build alongside it.

The Model Context Protocol (MCP) is an open-source standard for connecting AI applications to external systems (source). Anthropic’s MCP connector lets the API call remote MCP servers directly, but it’s in beta, supports only tool calls, can’t connect local STDIO servers, and leaves the OAuth flow to you (source).

Testing, Handoff, and Ongoing Maintenance

Test on real past cases, not invented ones. Run inputs the team has already handled through the tool and compare each output with what the person did. Agree the pass bar before you look: which errors are fine with review, and which stop the launch.

Maintenance is mostly about the systems around the tool. For example, WooCommerce disables a webhook after more than five consecutive delivery failures (source), so a broken endpoint can silently stop the flow. Log every call and failure so you know when to act.

Here’s our own worked example of running costs, not a quote: 500 enquiries a month at about 2,000 input and 400 output tokens each is 1 million input and 200,000 output tokens. On Claude Sonnet 5.5 at $2 and $10 per million, that’s about $4 a month. On Claude Haiku 5.5 at $0.10 and $0.50, about $0.20. The Batch API halves both for work that can wait (source). When estimating from word counts, note that Claude 4.7 and later models use a tokenizer that produces about 30% more tokens for the same text (source).

Common Integration Failure Modes (and How to Avoid Them)

The Pilot Trap: When a Project Never Moves Past Testing

A tool works well enough in testing, then sits while the team debates edge cases, until it’s shelved.

The fix is to define “done” before building starts: the pass bar from testing, and the review path for outputs that miss it. A tool live with a clear review queue beats one waiting for a perfect score.

Vendor Lock-In and the SaaS Subscription Problem

If your workflow depends on an AI feature inside someone else’s platform, decisions you don’t control can change it: a new price, a removed feature, a new limit.

A custom build reduces that risk but doesn’t remove it, because model APIs change too. OpenAI gives at least 6 months’ notice for generally available models, but preview models can be retired with much shorter notice, such as 2 weeks (source). Avoid preview models in business-critical work, and keep your test cases so a switch can be checked, not guessed.

When to Build Custom vs. When an Off-the-Shelf Tool Is Enough

If a standard tool already does what you need at a sensible price, use it.

Custom makes most sense when the workflow is specific to your business, when the output must land in a system the standard tool doesn’t support, or when you’ve tried off-the-shelf tools and none fit. In between sits a workflow tool calling a model API, covered in our post on Claude with Zapier and Make.

Frequently Asked Questions

How long does a custom AI tool integration take for a small business?

It depends on how clear the workflow is and how many systems the tool touches, so we don’t quote a standard timeline. The stages are always the same: spec, model testing, integration, a parallel run and handoff.

How much does it cost to build a custom AI tool integrated with existing systems?

The build depends on the number of systems, the output and the testing needed, so we scope each project individually. Running costs come from the model vendor’s per-token prices; in our worked example, 500 enquiries a month came to about $4 on Claude Sonnet 5.5. Talk to us about what your workflow would involve.

Do I need to replace my existing software to integrate AI?

No. The tool reads from and writes to your existing systems through their APIs and webhooks, which HubSpot, WooCommerce and WordPress all document.

Who owns the AI tool after it’s built?

With a proper custom build, you do: the code, deployment setup, keys and documentation, in accounts in your name. The model API is a direct, usage-billed account between you and the model vendor, under its terms.

What kinds of business workflows are best suited for custom AI integration?

Frequent, predictable tasks involving repetitive reading, writing or sorting: enquiry triage with draft replies, invoice extraction, first-draft proposals, ticket tagging, and checking documents against a checklist. Poor fits are judgment calls with no rules, rare tasks, and irreversible actions with no review.

Should I connect AI through MCP or build a direct integration?

MCP suits asking questions of a system whose vendor publishes an MCP server. Anthropic’s MCP connector is in beta and supports only tool calls on remote servers. For a workflow that fires on an event and writes a defined result every time, a direct build gives more control.

Have one workflow your team repeats every week? Tell us what it involves. We'll scope it and be direct about whether it's worth building. Start a conversation, or see how we build this through AI integration.