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.
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.
Trusted by 500+ organizations to connect CRM, ERP, integration and AI into systems their teams actually use.








Platforms We Connect
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Layer | What we design | The decision it settles |
|---|---|---|
| Experience and workflow | Where 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 agents | Prompts, 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 access | Which 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 knowledge | Retrieval-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 pipelines | APIs, 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 access | Single 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 observability | Guardrails, 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. |
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.
| Option | Fits best when | Architecture trade-off |
|---|---|---|
| AI inside the CRM: Agentforce, HubSpot Breeze and Agent Hub | The 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 Foundry | Your 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 Claude | A 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 layer | Different 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.
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.
Agents and AI features that work on accounts, opportunities, cases and custom objects, grounded in CRM data and data unified in Data 360.
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.
Order, invoice, inventory and fulfilment context, so an agent answering a customer or a rep can see what finance and operations already know.
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.
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.
Google Cloud's Gemini platform, its Model Garden and Vector Search, often next to BigQuery when the analytics data already lives there.
Microsoft's platform for agents, models and tools, for organizations standardized on Azure and Microsoft Entra identity.
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.
Enterprise databases, data warehouses, document stores and knowledge repositories, indexed for retrieval so answers cite your current, approved sources.
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.
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.
Answers questions from your own policies, contracts, product data and records instead of the model's general knowledge, and shows the sources it used.
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.
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.
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.
| Control | How the architecture enforces it |
|---|---|
| Least-privilege access | Each 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 retrieval | Retrieval runs as, or is filtered for, the person asking, so a search index never becomes a way around CRM or ERP sharing rules. |
| Data classification | Which classes of data each use case may send to which model or external service, and where that data is stored and processed. |
| Guardrails | Input 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 injection | Retrieved 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 oversight | Consequential 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 inventory | Prompts, retrievals, tool calls and approvals are logged, and every agent is listed with its owner, purpose and risk class. |
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.
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
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
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
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
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
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
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.
| Measure | What we track | What it triggers |
|---|---|---|
| Quality | Scores 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. |
| Adoption | Active 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. |
| Operations | Latency, 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 outcome | The 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. |
| Risk | Guardrail triggers, blocked actions, approval overrides and incidents, by agent. | Control changes and a review of the agent's risk class and permissions. |
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.
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.
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.
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.
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 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.
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.
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