The agent cannot reach the data
The pilot ran on pasted text. In production the answer lives in Salesforce, HubSpot, NetSuite or a database nobody has exposed as a tool, so the agent guesses or stops.
AI agent integration connects an OpenAI-powered agent, built in ChatGPT or on the OpenAI API, to the applications, APIs, databases and approval steps your business already runs on, so it can read the right record, take an action you have allowed, and leave a trace of what it did. Twopir Consulting designs, builds and governs those integrations across Salesforce, HubSpot, NetSuite and your internal systems. Production automation, not another chatbot.
Trusted by 500+ organizations — software, legal, real estate and professional-services businesses that run their CRM, integrations and automation with Twopir Consulting.




What We Connect
An agent that answers well in a demo can still fail the day it meets your CRM, your ERP and your permission model. The failures are rarely about the model. They are about what the agent can reach, who it acts as, and what happens when a tool call goes wrong. These are the six we are most often asked to fix.
The pilot ran on pasted text. In production the answer lives in Salesforce, HubSpot, NetSuite or a database nobody has exposed as a tool, so the agent guesses or stops.
The agent connects with a single high-privilege account, so anyone who runs it can see or change what that account can. OpenAI's own documentation warns about shared connections for exactly this reason.
The agent updates records, sends emails or posts to a channel with nobody in the loop. One wrong tool call becomes bad data in the system of record, and nobody can say which run caused it.
Dozens of raw endpoints exposed as tools, with vague names and loose parameters. The model picks the wrong one, fills a field it should not, and every new endpoint makes it worse.
Real workflows have steps, state, retries and handoffs. A chat window that forgets the case when the tab closes cannot qualify a lead, chase a document or wait for an approval.
Nobody can tell whether a prompt change made the agent better or worse, because there is no test set and no run history. A custom GPT with actions is about to retire and nobody owns the rebuild.
AI agent integration is the engineering that lets an AI agent use your business systems as tools: reading records, calling APIs, running multi-step workflows and writing results back, inside the permissions and approval rules you set. An agent is a model that can plan a task, decide which tool to call next and act on the result. Without integration it can only talk. With it, it can qualify a lead in your CRM, pull an invoice from your ERP or turn a contract into structured fields.
Three parties are involved, and it helps to keep them apart. OpenAI provides the models and the agent platforms: ChatGPT workspace agents, the Responses API, the Agents SDK and support for tools such as function calling and MCP servers, all described in OpenAI's agent documentation. Your platforms, such as Salesforce, HubSpot and NetSuite, own the data, the APIs and the permission models the agent has to respect. Twopir Consulting does the work in between: the integration architecture, the tools and MCP servers, authentication and approvals, testing, monitoring and handover described on this page.
Do you need a partner? Connecting ChatGPT to an app that already has a ready-made connector is configuration your admins can do. A partner earns its place when the agent has to cross systems, write to a system of record, act on behalf of different users, or run unattended. For the wider programme, including ChatGPT Enterprise rollout and AI governance, see our OpenAI consulting services. This page covers the agent build and the integrations underneath it. If your agents should run natively inside Salesforce instead, see Agentforce AI agent development.
OpenAI offers two different ways to put an agent to work. ChatGPT workspace agents are shared agents your teams build and run inside eligible ChatGPT Business and Enterprise workspaces. API-based agents are built on the OpenAI API and run inside your own applications and processes. Many companies end up with both.
| Question | ChatGPT workspace agents | API-based agents |
|---|---|---|
| Where it runs | Inside ChatGPT, and in Slack when connected, for eligible ChatGPT Business and Enterprise workspaces. Enterprise admins switch workspace agents on. | Inside your own applications, back-office services and workflows, built on the Responses API, the Agents SDK (Python or TypeScript) or OpenAI's managed Agents API. |
| Who builds it | Team members with builder access, in ChatGPT's agent builder, from a template or a description. Admins decide who can build, publish and share. | Developers, in code. Your team controls the runtime, the stored state, the approval steps and the deployment. |
| Who runs it | Your people: kept private, shared by link or with groups, or published to the workspace directory. Runs on demand, on a schedule, from Slack, or through an API trigger. | Anyone or anything your application serves: a rep on a CRM screen, a customer in a portal, or a back-end job reacting to an event. |
| How it reaches your systems | Apps enabled in the workspace, such as Google Drive and SharePoint, plus custom MCP servers. Each connection runs as the person using the agent or as an agent-owned account. | Function calling to your own APIs, remote MCP servers, and hosted tools such as file search and web search. Authentication is whatever your integration layer implements. |
| Control over writes | Write actions are set to “Always ask” by default. Builders can add action constraints that narrow what an app action may do, such as one recipient domain. | Designed by you: approval steps, policy checks and input and output guardrails in code, with tool calls traced. |
| Best fit | A team workflow inside ChatGPT that uses apps the workspace already connects to: meeting follow-ups, request routing, research and reporting. | An agent that lives inside a product or process, serves people outside your ChatGPT workspace, or needs custom logic, data handling or volume. |
The people doing the work already use ChatGPT, the systems involved have an app or an MCP server, and the result is a draft, a summary or an action a person approves.
We configure the agent, its connections, approvals and sharing, and build the custom MCP server when an app does not exist.
The agent must run inside Salesforce, a portal or a back-end workflow, react to events without anyone opening ChatGPT, or apply logic and data rules a builder setting cannot express.
We design and build it on the Responses API or the Agents SDK, with your integration layer, approvals and monitoring around it.
Nine workstreams cover an agent from its first tool definition to a monitored production run. Most engagements use four or five of them; which ones depends on where the agent runs and what it has to touch.
An agent built for one job and the systems behind it: its instructions, model and reasoning settings, tools, state and failure handling, delivered as a working process rather than a prompt.
Shared agents your teams run inside ChatGPT, configured so they reach the right apps with the right identity and ask before they act.
The design decisions behind an API agent: which runtime, where state lives, how tools are exposed and how data is handled, written down before the build.
Agent applications built on the OpenAI Agents SDK, which supplies the agent loop, handoffs between specialist agents, guardrails, sessions and tracing.
Your APIs exposed to the model as well-named functions with JSON-schema parameters. The model asks for a call; your code runs it and returns the result.
Model Context Protocol servers that expose your systems once and serve both ChatGPT and API agents, with authentication and tool filtering built in.
Contracts, invoices, forms and policies turned into structured fields or grounded answers, with the source kept beside every result.
Agents that work through a process over minutes or days: triggered by an event, holding state, waiting for an approval and picking up where they left off.
OpenAI is retiring custom GPTs, and GPT custom actions do not transfer on migration. We rebuild the integrations behind them before they stop working.
An agent is only as useful as what it can reach. These are the connections we build most often, what each one is for, and what moves in which direction.
The agent reads accounts, opportunities and cases and writes back tasks, notes and field updates, through function tools on Salesforce's APIs or Salesforce's hosted MCP servers, which run every call as the signed-in user with their sharing and field-level security. Related: AI in Salesforce.
Contacts, companies, deals and tickets flow to the agent for scoring and summaries; notes, tasks and updates flow back. HubSpot's own ChatGPT connector updates at most 10 records at a time and skips custom validation rules, so larger or rule-bound writes go through a scoped private app. Related: AI in HubSpot.
Customer balances, invoices, orders and item availability are read from NetSuite, through Oracle's NetSuite AI Connector Service or custom tools, so sales and support can answer finance questions without a spreadsheet. Ledger writes stay behind a finance approval. Related: Salesforce and NetSuite integration.
Order status, receivables, payment status and contract terms from your ERP, billing or accounting system, read-only by default and exposed as narrow lookup tools rather than open queries.
SharePoint, Google Drive and similar repositories feed retrieval and extraction. Files come in; structured fields and cited answers go out to the CRM, the ERP or a review queue.
Product, usage and operational data reached through parameterised query tools or an MCP server on a read replica, never free-form SQL against production.
Case history, entitlements and knowledge articles from Service Cloud or HubSpot tickets go to the agent; a drafted reply, a classification or a routing decision comes back for the agent's human to accept.
Where an integration platform or internal API already moves your data, the agent calls it as a tool, so business rules stay in one place and every system keeps a single integration path. Related: MuleSoft integration.
Turning on an app the workspace already supports, choosing how each connection authenticates, setting write approvals and action constraints, sharing and scheduling a workspace agent.
We set these up so your admins can maintain them, and document every choice.
A custom MCP server for a system with no app, function tools over your APIs, an API agent inside Salesforce or a portal, a multi-step workflow on the Agents SDK, or the middleware between them.
That work uses each platform's documented APIs and permission model, never workarounds that break on the next release.
Each scenario is a pattern we design around, with the systems it touches, what the agent does on its own, and where a person stays in the loop.
A new lead is scored and routed before a rep has opened it, and the CRM shows why.
Calls and email threads become a CRM note, next steps and a drafted follow-up the rep can send.
Agents in support see the customer, the case history and the entitlement before they answer.
Sales and service get answers from NetSuite or the ERP without asking finance for an export.
Contracts, invoices and forms become structured fields on the right record, with the source attached.
Operations, onboarding and policy questions answered from your approved documents, not the open web.
Governance is designed before the first tool is built, because it decides how every tool is built. These are the controls we put in place, and the order a write action passes through them.
| Control | How we implement it |
|---|---|
| Identity and authentication | OAuth or scoped service credentials per system, held in a secrets store, never in a prompt or a tool description. |
| Acting on behalf of users | Where the agent should see only what its user can, each person connects with their own account. Shared agent-owned connections use a least-privilege service account. |
| Least-privilege tools | Read and write tools kept separate, each limited to the objects and fields its task needs. No admin-level tool exists just in case. |
| Human approval on writes | Any action that sends, edits, posts or deletes pauses for approval by default. Low-risk writes are released from approval only after testing shows they are safe. |
| Constraints and allowlists | Limits on what an action may do, such as an approved recipient domain, a single folder or an amount ceiling, enforced in the tool or the workspace setting. |
| Data handling | Only the fields a task needs are sent to the model. OpenAI states that API data is not used to train its models unless you opt in; retention controls are set to your policy. |
| Audit and traceability | Every run, tool call, approval and result is logged, so any change in a system of record traces back to the run and the person who approved it. |
A good answer in a demo proves the prompt, not the agent. We test the paths that go wrong, keep every run traceable, and treat each change as a release.
| Test | What it has to prove |
|---|---|
| Tool selection | For each task in the test set, the agent calls the right tool with valid arguments, and calls nothing it should not. |
| Grounding | Answers cite the record or document they came from; when the data is missing, the agent says so instead of guessing. |
| Permission boundaries | A user without access to a record cannot reach it through the agent, by any phrasing. |
| Failure paths | Timeouts, API errors, rate limits, empty results and duplicate events produce a safe outcome and a clear message. |
| Approval behaviour | Every write that needs approval stops for it; a rejected action leaves the system of record unchanged. |
| Adversarial input | Instructions hidden in emails, documents or tickets do not make the agent leave its task or its permissions. |
| Regression | The same test set runs after every prompt, model or tool change before it reaches production. |
We start with one workflow that matters and prove it end to end before widening the agent's reach. Scope and timeline are set in discovery, once we know which systems the agent touches and whether it reads, writes or runs unattended.
We pick one workflow worth automating, map the systems and people it touches, and agree how success will be measured before anything is built.
DeliverableUse-case brief, system map and success criteria
Workspace agent or API agent, runtime, tools, identity model, approval points and data handling, decided and written down.
DeliverableSigned-off agent architecture
Function tools, MCP servers and API connections to Salesforce, HubSpot, NetSuite and the rest, built and tested on their own in a sandbox.
DeliverableTested tool layer in a sandbox
Instructions, model settings and orchestration, run against the test set until tool selection, grounding and failure handling pass.
DeliverableAgent passing its test set
A small group runs the agent on real work with every write held for approval, so behaviour is proven before any autonomy is granted.
DeliverablePilot results and go-live decision
Wider access, monitoring and alerting, a runbook, and admin training, then ongoing optimization or support if you want it.
DeliverableProduction agent, runbook and support plan
Most agent projects fail at the edges, where the model meets the CRM, the ERP and the permission model. That edge is where we have spent our whole history.
We design data access, identity and approvals before the first agent is built, so the agent fits your CRM and revenue architecture instead of working around it.
We are a Salesforce Partner and a HubSpot Partner. When an agent reads or writes a CRM record, the people building it already know the object model, sharing rules and automation it touches.
ERP, data warehouses, document pipelines and integration platforms are everyday work for us, so an agent that spans four systems is an integration project we know how to run.
We have shipped OpenAI inside Salesforce in production, such as a GPT email and attachment automation built with Flow and Apex, and we bring the error handling that work taught us.
Architects lead the design and stay on the project; specialists build the tools and integrations. You get documented work your team can run, and support when you want it.
AI agent integration services connect an AI agent to the business systems it needs to do real work: CRM, ERP, document repositories, databases and internal APIs. The work covers the integration architecture, the tools or MCP servers the agent calls, authentication and permissions, human approval on write actions, testing and monitoring. Twopir Consulting provides these services for agents built on OpenAI, in ChatGPT workspaces or on the OpenAI API.
ChatGPT workspace agents are shared agents that teams build and run inside eligible ChatGPT Business and Enterprise workspaces, connected to workspace apps and custom MCP servers, and run on demand, on a schedule, in Slack or through an API trigger. API-based agents are built in code on the OpenAI API, for example with the Responses API or the Agents SDK, and run inside your own applications and business processes. Workspace agents suit team workflows inside ChatGPT; API agents suit agents embedded in a product, portal or back-end process.
Yes, through tools that call the Salesforce or HubSpot APIs, either as functions in your own application or through an MCP server. We build those tools with scoped credentials, respect the CRM's sharing and field-level permissions, validate every change in code, and hold write actions for human approval until testing shows they are safe to release.
The Model Context Protocol (MCP) is an open standard for connecting AI applications to external systems. An MCP server exposes a system's data and actions as tools that an AI client can call. You need a custom one when a system you want an agent to use has no ready-made app or connector, or when you want one governed integration that both ChatGPT and your API agents can use. ChatGPT workspaces and the OpenAI Responses API can both connect to custom MCP servers.
OpenAI has announced that custom GPTs will retire, with a standard retirement date of December 11, 2026, and later dates for some workspaces. GPTs can be migrated to plugins, but GPT custom actions do not transfer automatically, so any GPT that calls an external API needs its integration rebuilt and tested. We inventory your GPTs, rebuild their actions as MCP servers or apps, and move each one to a plugin or workspace agent.
With layers that do not depend on the model behaving. Each tool can only reach the objects and fields its task needs, write actions pause for human approval by default, constraints limit what an action may do, every change is validated in code before it runs, and every run is traced. We also test the agent against adversarial inputs, such as instructions hidden in an email or document, before it goes live.
OpenAI states that data sent to the OpenAI API is not used to train or improve its models unless you explicitly opt in, and that it does not train on business data from ChatGPT Business and Enterprise by default. Retention options depend on your agreement and the features you use, so we confirm the settings for your account during design and send the model only the fields each task needs.
A first conversation covers the workflow you want an agent to run, the systems it has to reach, who it should act as and where a person must approve: enough to say whether a workspace agent or an API agent fits, and what the integration would actually take. No obligation to proceed.
Talk to an architect who connects AI agents to Salesforce, HubSpot and your ERP