AI Services · Architecture & Adoption

Enterprise AI architecture for the systems you already run

Enterprise AI architecture is the design that lets AI models, agents and retrieval work inside the systems you already run: connected to your CRM, ERP and data, secured by your identity and access rules, and monitored once people depend on it. Twopir Consulting designs, integrates, deploys and scales it across Salesforce, HubSpot, NetSuite and the AI platforms you choose. One architecture that every AI use case reuses, not a new project for each one.

Enterprise AI Architecture
REFERENCE ARCHITECTURE 01 · EXPERIENCE Inside the tools people use Salesforce · HubSpot · Slack · Portals 02 · ORCHESTRATION Agents, prompts and actions Agentforce · Breeze · Custom agents 03 · MODELS Foundation models, chosen per task OpenAI · Claude · Bedrock · Gemini · Foundry 04 · GROUNDING Your knowledge, retrieved with permissions RAG · Vector search · Knowledge bases 05 · INTEGRATION & DATA Systems of record, connected NetSuite · Warehouses · MuleSoft · Celigo · Workato GOVERN 2πr Identity Access Guardrails Evaluation Monitoring Audit logs ADOPTION LOOP Pilot → Integrate → Test → Train → Monitor Production use, measured against a baseline
500+
Clients Served Across Global Markets
12+
Years of Salesforce & HubSpot delivery
10+
Countries Served
15+
Certified Platform Partnerships

Trusted by 500+ organizations to connect CRM, ERP, integration and AI into systems their teams actually use.

Mitratech
Kacific
RChilli
Amberscript
LegalZoom
Magnus Health
Leverage Companies
Bernstein Liebhard LLP

Platforms We Connect

  • Salesforce Partner
  • HubSpot Partner
  • Agentforce
  • HubSpot Breeze
  • Amazon Bedrock
  • Google Cloud Gemini
  • Microsoft Foundry
  • OpenAI API
  • Anthropic Claude
  • MuleSoft · Celigo · Workato
Where Pilots Break

The pilot worked. The architecture did not.

A proof of concept can run on a single API key, a copied spreadsheet and a developer's laptop. Production cannot. When an AI use case has to serve hundreds of users across live systems, these are the six technical gaps that stop it, and each one is an architecture decision rather than a model problem.

Grounded in a copy of the data

The pilot answered from an export taken in week one. In production the answer has to come from live CRM, ERP and document data, kept current by a pipeline, or it is confidently out of date.

No identity, so no permissions

A shared service account sees everything. Once real users arrive, retrieval and actions have to respect the same record access, sharing rules and roles each person already has in Salesforce, HubSpot or the ERP.

Point-to-point model calls

Every team wires its own prompt to its own model endpoint. Without a shared integration and orchestration layer, the tenth use case costs as much as the first, and nobody can change models without touching ten codebases.

Agents with unbounded actions

An agent that can update records, send emails or create orders needs scoped tools, approval steps for consequential actions and a log of what it did. Bolted on after the demo, those controls send the project back to design.

No evaluation, no monitoring

Nobody wrote down what a good answer looks like, so nobody can tell when a prompt change, a new model version or a data change made it worse. Quality, cost and latency go unmeasured until a user complains.

Built beside the workflow

A separate chat tab is easy to build and easy to ignore. Adoption depends on AI appearing in the record, the queue or the approval step where the work already happens, with a person able to check and correct it.

Definition

Enterprise AI architecture, defined

Enterprise AI architecture is the technical design that connects AI models, agents and retrieval to an organization's business systems, data and security controls, so AI can run in production across many teams rather than in one isolated pilot. It decides which platforms and models are used, how they are grounded in company data, how they reach CRM, ERP and other applications through APIs and integration platforms, how identity and access are enforced, and how quality, cost and risk are monitored once people rely on it. AI adoption is the other half: moving a use case from proof of concept to everyday use through a pilot, workflow integration, testing, human oversight, training and continuous optimization.

It is not the same work as AI strategy or AI readiness. Strategy decides where AI should create value and which use cases come first. Readiness checks whether your data, systems and people are prepared for them. Architecture and adoption, the subject of this page, is how the chosen use cases are designed, built, integrated, deployed and scaled. If you are still choosing use cases, start with our enterprise AI consulting and strategy work.

Three parties are involved, and it helps to keep them apart. The platform vendors (Salesforce, HubSpot, OpenAI, Anthropic, AWS, Google Cloud and Microsoft) provide the models, AI services and agent frameworks, and own their capabilities and roadmaps. Your organization owns the data, the processes, the risk decisions and the people who will use the result. Twopir Consulting does the architecture, integration, implementation and adoption work in between, and connects AI to your CRM, ERP, revenue operations and enterprise workflows instead of leaving it as another isolated application.

Reference Architecture

Seven layers every AI use case shares

The point of an enterprise AI architecture is that the second use case does not start from zero. AWS's guidance on building an enterprise-ready generative AI platform groups the shared foundation into data and infrastructure, foundation model access, security and governance, and repeatable application patterns. We design the same foundation as seven layers, each built once and reused by every use case after the first.

The target architecture document records each layer, the decision made for it and the reason. It is the first thing a new AI use case is checked against.
LayerWhat we designThe decision it settles
Experience and workflowWhere people meet the AI: a Salesforce or HubSpot record page, a service console, Slack, a customer portal or an approval step, and how a person reviews, accepts or corrects the output there.Whether AI is used daily inside the work, or opened occasionally in a separate tab.
Orchestration and agentsPrompts, instructions, agent topics and the tools an agent may call, built on Agentforce, HubSpot's agents or a custom agent framework, with consequential actions routed through an approval.What the AI is allowed to do on its own, and what always needs a person.
Model accessWhich foundation models are approved, through which provider or cloud platform, with routing by task, fallbacks, quotas and cost tracking per use case.Whether you can change or add a model without rebuilding every application that uses one.
Grounding and knowledgeRetrieval-augmented generation over your records, documents and knowledge bases: what is indexed, how it is chunked and refreshed, and how each retrieval is filtered by the user's permissions.Whether answers come from your current, approved data or from the model's general knowledge.
Integration and data pipelinesAPIs, MCP servers and integration platforms that let AI read from and write to CRM, ERP, warehouses and document stores, with the direction, frequency and owner of every data flow written down.Whether AI connects through one governed layer or a different point-to-point connection per team.
Identity and accessSingle sign-on, service identities per agent, least-privilege scopes, and how CRM and ERP record access is enforced on retrieval and on every action.Whether the AI can ever show or change something the person using it could not.
Governance, evaluation and observabilityGuardrails, evaluation sets, logging of prompts, retrievals and actions, monitoring of quality, latency and cost, an inventory of every agent with its owner, and incident response.Whether you can prove what the AI did, and notice when it gets worse.
Platform Selection

Choosing the AI platform by where the work runs

Most organizations end up with more than one of these, and that is fine when the architecture plans for it. The question is not which vendor is best, but which option fits each use case's data, users and controls, and how the options share one identity, integration and governance layer.

OptionFits best whenArchitecture trade-off
AI inside the CRM: Agentforce, HubSpot Breeze and Agent HubThe use case lives on CRM records and users: sales, service and marketing work. Salesforce grounds Agentforce in CRM data and external data from Data 360; HubSpot's agents are built on HubSpot CRM data.Fastest route to the record page and the CRM's own permissions. Data held in ERP, warehouses or documents still has to be brought in through integration or Data 360.
Cloud AI platforms: Amazon Bedrock, Google Cloud's Gemini platform, Microsoft FoundryYour data and engineering already sit in that cloud, or you need a choice of models with the cloud's own identity, networking and guardrails. Microsoft Foundry offers more than 10,000 models; Google's Model Garden includes Anthropic's Claude models.Strong central controls and model choice. The AI has to be integrated back into the CRM and ERP screens where people work, which is where most of the build effort goes.
Direct model APIs: OpenAI and Anthropic ClaudeA custom application, agent or integration needs a specific model's capabilities, and your team will own the orchestration, retrieval and monitoring around it.Maximum flexibility and the newest models first. Every control the platforms above provide, from logging to guardrails, becomes something the architecture has to supply.
More than one, behind a shared layerDifferent use cases suit different platforms, which is the usual situation in organizations running both Salesforce and HubSpot, or CRM plus a cloud data platform.Needs the shared identity, integration and observability layers designed first, so each new platform plugs into them rather than arriving with its own.

Comparing specific vendors for a use case you have already chosen? Our enterprise AI consulting page compares the platforms side by side. This page is about making whichever you choose work inside your systems.

Enterprise AI Integration

How AI connects to CRM, ERP and your data

An AI capability that cannot read the customer record or update the order is a demo. These are the connections we design most often, what each one is for, and what moves across it. How the connection is built, through MCP servers, direct APIs or middleware, is covered on our AI integration services page.

Salesforce and Agentforce

Agents and AI features that work on accounts, opportunities, cases and custom objects, grounded in CRM data and data unified in Data 360.

Reads
Records, activity, knowledge articles, Data 360 profiles
Writes
Summaries, field updates and tasks, through defined agent actions
Controls
Salesforce sharing, permission sets and the Einstein Trust Layer

HubSpot, Breeze and Agent Hub

HubSpot's own AI, Breeze Assistant, Breeze Intelligence and the agents grouped under Agent Hub, fed by a CRM model clean enough for them to act on.

Reads
Contacts, companies, deals, tickets and engagement
Writes
Enrichment, scores, sequences and service replies
Controls
HubSpot users, teams and permissions; property design

Oracle NetSuite and ERP

Order, invoice, inventory and fulfilment context, so an agent answering a customer or a rep can see what finance and operations already know.

Reads
Orders, invoices, payments, items and stock
Writes
Only through approved actions, never a free-form update
Controls
ERP roles, an integration user per flow, approval steps

OpenAI and Anthropic APIs

Direct model access for custom applications, agents and document workflows. Anthropic's Model Context Protocol gives agents one standard way to reach tools and data through MCP servers.

Sends
Prompts with only the context the task needs
Returns
Generated text, structured output or tool calls
Controls
Key management, data-use terms, logging and evaluation

AWS and Amazon Bedrock

Foundation model access inside your AWS account, next to the Lambda, Textract and storage services the rest of the workload already uses, with Bedrock Guardrails filtering what goes in and out.

Reads
Documents and data held in your AWS environment
Returns
Answers, extractions and summaries to CRM or apps
Controls
IAM, network isolation and Bedrock Guardrails

Google Cloud AI

Google Cloud's Gemini platform, its Model Garden and Vector Search, often next to BigQuery when the analytics data already lives there.

Reads
BigQuery tables, Cloud Storage and indexed documents
Returns
Grounded answers, classifications and extractions
Controls
Google Cloud IAM, private connectivity, evaluation

Microsoft Foundry on Azure

Microsoft's platform for agents, models and tools, for organizations standardized on Azure and Microsoft Entra identity.

Reads
Azure data services and connected Microsoft sources
Returns
Agent responses and actions to business apps
Controls
Entra ID, RBAC, content filters and Azure Policy

MuleSoft, Celigo and Workato

The integration platform you already run becomes the governed path between AI and your systems. MuleSoft, for example, can expose APIs to Agentforce as agent topics and actions.

Carries
API calls and synced data between CRM, ERP and AI
Adds
Mapping, retries, error handling and monitoring
Controls
One managed connection per system, not per team

Databases, warehouses and knowledge

Enterprise databases, data warehouses, document stores and knowledge repositories, indexed for retrieval so answers cite your current, approved sources.

Reads
Tables, documents, policies and knowledge articles
Refresh
A pipeline on a schedule or change event, not an export
Controls
Source permissions carried into every retrieval

Each of these is also a practice of its own: MuleSoft integration, Celigo implementation, Workato integration, Salesforce and NetSuite integration architecture, Salesforce Data 360 and AI in HubSpot.

Architecture Patterns

Three patterns behind most production AI

Most enterprise generative AI and AI agent work is a variation on three patterns. We build each one once, document it, and reuse it, so a new use case is an assembly of known parts rather than a new architecture.

Retrieval-Augmented Assistant

Answers questions from your own policies, contracts, product data and records instead of the model's general knowledge, and shows the sources it used.

  • Source selection, chunking and refresh pipeline
  • Vector or hybrid search with permission filters
  • Retrieval tested before any prompt is tuned
  • Citations a user can open and check
  • Answers placed in the record or console

AI Agent with Actions

An agent that plans steps and calls tools: updates a case, drafts a quote, books a follow-up. Built on Agentforce agent development or a custom agent.

  • A tool per action, each with a scoped permission
  • Read, retrieve, then act with approval
  • Human approval on consequential actions
  • Every call and decision logged
  • An owner and risk class in the agent inventory

Document & Data Extraction

AI that reads images, PDFs and attachments and writes structured data back to the CRM. In one manufacturing build this cut manual data entry by 60%; another law firm build summarizes email attachments into case notes.

  • Asynchronous processing that never blocks a user
  • Field mapping held in configuration, not code
  • Confidence checks and review queues
  • Results written to the right record
  • Volume, error and cost monitoring
Secure Architecture

Governance designed in, not reviewed in afterwards

Microsoft's Cloud Adoption Framework guidance on AI agents makes the point we design to: extend the architecture and governance you already have rather than build a separate system for AI, and set controls by how autonomous an agent is and how much a wrong action would cost. Policy, ownership and risk management are covered on our AI governance and security page; these are the controls the architecture itself has to carry.

ControlHow the architecture enforces it
Least-privilege accessEach agent gets the permissions for the actions it is meant to take, not the maximum its platform allows: an agent that summarizes tickets reads them and cannot edit them.
Permission-aware retrievalRetrieval runs as, or is filtered for, the person asking, so a search index never becomes a way around CRM or ERP sharing rules.
Data classificationWhich classes of data each use case may send to which model or external service, and where that data is stored and processed.
GuardrailsInput and output filtering for denied topics, personal data and prompt attacks, using the platform's own tools where they exist, such as Amazon Bedrock Guardrails.
Prompt injectionRetrieved content and user input are treated as data, never as instructions, and tool calls are checked against what the agent is allowed to do.
Human oversightConsequential actions, such as a refund, a contract change or an external message, wait for a person's approval, and every output can be corrected where it appears.
Audit and inventoryPrompts, retrievals, tool calls and approvals are logged, and every agent is listed with its owner, purpose and risk class.
Adoption Path

From proof of concept to production use

Adoption is designed, not hoped for. Each phase has an exit test, and a use case only moves on when it passes. How long that takes depends on how many systems the use case touches, how sensitive its data is, and how many people change the way they work, so we scope each phase after discovery rather than quoting a fixed timeline.

Phase 01

Architecture & Baseline

We map the systems, data, identities and integrations the use case depends on, choose the platform and model pattern, and record today's numbers so the result can be measured against them.

Exit testSigned-off target architecture and baseline

Phase 02

Pilot Implementation

A working slice on real, permission-filtered data in a non-production environment, with a small group of the people who will use it, and an evaluation set that defines a good answer before anyone tunes a prompt.

Exit testPilot meets its evaluation thresholds

Phase 03

Workflow Integration

The pilot moves into the record page, queue, approval or customer channel where the work happens, connected through the integration layer and placed under the identity and access model rather than a shared key.

Exit testRuns inside the target workflow

Phase 04

Testing & Human Oversight

Functional, integration, security and adversarial tests, plus a review of where a person must approve, correct or override the output. Consequential actions get an approval step and an audit trail.

Exit testTest plan passed and risk sign-off

Phase 05

Rollout, Training & Change

A staged release by team or region, role-based training on what the AI does and does not do, clear ownership, and a feedback route so users can flag a wrong answer in the place they found it.

Exit testAdoption targets met for each group

Phase 06

Monitor & Optimize

Quality, usage, cost, latency and business metrics are watched against the baseline. Prompts, retrieval, models and workflows are tuned on evidence, and the patterns proven here become the template for the next use case.

Exit testMeasured outcome against baseline

Measurable Outcomes

What we measure once AI is live

A use case is finished when it moves a number the business already tracks, against a baseline taken before the build. That is how a data foundation for an asset management firm could report an 80% cut in manual data preparation time per cycle, and a US AI SaaS platform a 3× improvement in trial-to-paid conversion after behavioral scoring went live. Five families of measures run from launch onwards.

MeasureWhat we trackWhat it triggers
QualityScores against the evaluation set, groundedness of answers in their sources, and how often users correct or reject an output.Retrieval, prompt or model changes, tested against the same set before release.
AdoptionActive users by team, the share of eligible work that uses the AI, and where people stop using it.Workflow placement fixes, training and changes to what the AI is asked to do.
OperationsLatency, throughput, error rates and cost per inference, with cost allocated to each use case and business unit.Model routing changes, such as moving a proven task to a smaller model, and capacity plans.
Business outcomeThe process metric the use case was built for: cycle time, manual effort, conversion, resolution time or cash collected, against the baseline.The decision to scale the use case, change it or retire it.
RiskGuardrail triggers, blocked actions, approval overrides and incidents, by agent.Control changes and a review of the agent's risk class and permissions.
Why Twopir

AI architects who already know your systems

Enterprise AI succeeds or fails in the CRM, the ERP and the integrations between them. A team that only knows models can build an impressive assistant and still leave you with one more system nobody connects to the rest.

The architecture comes first

Data flows, the integration layer and the access model are designed before a model is chosen. That order decides whether your tenth AI use case reuses a platform or becomes another one-off project. Enterprise CRM and revenue architecture is our core discipline.

Salesforce-first, with HubSpot and connected platforms

Most enterprise AI runs on customer data, and most customer data lives in the CRM. We know Salesforce in depth, including AI in Salesforce and Agentforce, HubSpot alongside it, and the platforms both connect to, so AI lands inside the records and permissions you already have.

Built for multi-system complexity

Multi-system integrations, ERP connections, automation and AI are the work we are called in for. A use case that reads three systems and writes to two is an integration problem we already know how to solve, on MuleSoft, Celigo, Workato or direct APIs.

Real implementation experience

Our recommendations come from implementations delivered for global clients across law, SaaS, manufacturing, fintech, real estate and asset management, not from a framework that has never met a production org. See them in our success stories.

Senior-led, specialist delivery

Senior architects lead the design and stay through the build, with specialists brought in for data, integration and platform work. You get documented architecture your own team can run, not a black box only we can touch.

Common Questions

AI architecture questions, answered plainly

Enterprise AI architecture is the technical design that connects AI models, agents and retrieval to an organization's business systems, data and security controls. It covers platform and model choice, grounding in company data, integration with CRM, ERP and other applications, identity and access, and the evaluation and monitoring that keep AI reliable once many teams depend on it.

AI strategy decides where AI should create value and which use cases come first. A readiness assessment checks whether your data, systems and people are prepared. Architecture and adoption is the next step: designing, integrating, deploying and scaling the chosen use cases, then making sure people actually use them. Many organizations run all three with Twopir Consulting, but you can start here if your use cases are already chosen.

Yes, and most organizations do: Agentforce on Salesforce data, HubSpot's agents for marketing and service, and a cloud platform or a direct OpenAI or Anthropic API for custom work. It works when the architecture gives every platform the same identity, integration, logging and evaluation layers, so adding or switching a model does not mean rebuilding the applications that use it.

Retrieval-augmented generation (RAG) is a pattern in which the system first retrieves relevant passages or records from your own sources, then gives them to the model to answer from. You need it whenever answers must reflect your current policies, products, contracts or customer records rather than the model's general knowledge. The architecture decides what is indexed, how it stays current, and how each retrieval respects the user's permissions.

Through defined actions with their own scoped permissions, not a shared administrator account. Each agent can read what its task needs, writes only through approved actions, and asks a person to approve anything consequential. Every call is logged, and every agent is listed with an owner and a risk class. The connection itself runs through APIs, MCP servers or the integration platform you already use, such as MuleSoft, Celigo or Workato.

That depends on each provider's terms, which is why data use is checked in the architecture rather than assumed. OpenAI states that by default it does not use business data from its API Platform and business products to train its models, and HubSpot states that its third-party AI providers are contractually prohibited from training on customer data. We document the terms for every provider and data class in the design, and keep sensitive data away from services whose terms do not fit.

Six things a pilot usually skips: live, permission-filtered data instead of a copied export, integration into the workflow where the work happens, an identity and access model, an evaluation set and monitoring, human oversight for consequential actions, and a rollout plan with training and change management. We run these as gated phases, and a use case moves on only when it passes each gate.

Next Step

Start with one use case, plan for the tenth

A first conversation covers the use case, the systems and data it depends on, the platforms you already license and the controls your security team will ask about: enough to say what the architecture needs, what can be reused, and what moving it to production would take. No obligation to proceed.

Talk to an architect who connects AI to CRM, ERP and revenue operations