One AI gateway instead of four AI integrations

By Hifsul · 2026-11-15 · 2 min read

When a SaaS suite has several products, each team naturally adds AI where it needs it: the inbox wants suggested replies, the CRM wants lead suggestions, the automation tool wants AI steps. Left alone, you end up with four separate integrations, each with its own keys, prompts, retry logic and cost. In the suite I led, we put one AI gateway in the middle instead.

What the gateway owns

  • Model access: products ask for a capability, the gateway decides which model and provider serve it.
  • Prompts: shared, versioned prompts instead of strings scattered across codebases.
  • Limits: usage limits per business, so one tenant cannot run up costs for everyone.
  • Logging: one place to see what was asked, what came back and what it cost.

What the products build on top

With the plumbing in one place, product features become small. The inbox drafts a reply from the business's own knowledge base and a person approves it before it is sent. The RAG chatbot answers customers from documents and catalogues that each business uploads. The CRM suggests the next step on a lead. The automation product offers AI actions as ordinary workflow steps, next to its Zapier and n8n apps and an MCP server that lets AI agents work with the data.

Keep people in control of customer-facing text

For anything a customer will read, the default is a draft that a person approves. It is slower than full automation, but it is what makes businesses comfortable turning AI on in the first place, and it produces the feedback you need to improve prompts.

Retrieval belongs to the tenant

In a multi-tenant product, retrieval must be scoped to the business asking. The gateway is the natural place to enforce that: every retrieval call carries the tenant, and documents from one business are never candidates for another.

When it is worth it

A gateway is overhead for a single feature in a single product. It pays off as soon as a second product or a second provider appears, because changing models, controlling cost and answering "what did the AI do?" become one change instead of several.

Related

All articles · Start a project