OpenAI · AI Agent Integration

AI agent integration services for OpenAI-powered agents

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.

Agent Run Trace
ONE AGENT RUN · INBOUND LEAD TRIGGER New form fill in HubSpot A webhook starts the agent run READ get_contact · search_accounts HubSpot and Salesforce, read-only scopes REASON Score against your ICP rules Structured output, checked against a schema PROPOSE update_lead · create_task Write actions held until a person approves Lead owner Approve Reject APPROVE 2πr DONE CRM updated, task assigned Every tool call and approval kept in the trace Scoped Access Approval on Writes Every Step Traced CHATGPT WORKSPACE AGENTS · OPENAI API · AGENTS SDK · MCP
500+
Clients Served Across Global Markets
12+
Years of Salesforce & HubSpot delivery
10+
Countries Served
15+
Certified Platform Partnerships

Trusted by 500+ organizations — software, legal, real estate and professional-services businesses that run their CRM, integrations and automation with Twopir Consulting.

Hey Market
Platform9
Mitratech
Spinify
LegalZoom
Ultra Consultant
Leverage Companies

What We Connect

  • Salesforce Partner
  • HubSpot Partner
  • OpenAI API
  • Agents SDK
  • Workspace Agents
  • MCP Servers
  • NetSuite & ERP
Where Agent Projects Stall

The model works. The integration is what breaks.

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 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.

One admin credential for everyone

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.

Writes with no checkpoint

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.

Tools shaped like APIs, not tasks

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.

A conversation where a process was needed

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.

No tests, no traces, no owner

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.

Definition

AI agent integration, defined

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.

Choosing the Build

Workspace agents or API agents: which one fits the job

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.

ChatGPT workspace agents and API-based agents compared. Plan eligibility and features are OpenAI's, as described in the workspace agents help article; check it for your workspace.
QuestionChatGPT workspace agentsAPI-based agents
Where it runsInside 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 itTeam 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 itYour 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 systemsApps 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 writesWrite 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 fitA 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.
Choose a workspace agent

When the work happens in ChatGPT

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.

Choose an API agent

When the work happens in your process

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.

What We Build

OpenAI agent development, from tool to production

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.

OpenAI Agent Development

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.

  • Use-case and success criteria
  • Instructions and model selection
  • Tool set scoped to the task
  • Error, retry and fallback paths
  • Handover documentation

ChatGPT Workspace Agent Configuration

Shared agents your teams run inside ChatGPT, configured so they reach the right apps with the right identity and ask before they act.

  • Agent builder setup and templates
  • Apps and custom MCP connections
  • End-user or agent-owned authentication
  • Write approvals and action constraints
  • Sharing, schedules, Slack and API triggers

OpenAI API Agent Architecture

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.

  • Responses API, Agents SDK or Agents API
  • Conversation and session state
  • Tool and data-access boundaries
  • Retention and data-handling settings
  • Cost and latency budget

Agents SDK & Tool-Based Workflows

Agent applications built on the OpenAI Agents SDK, which supplies the agent loop, handoffs between specialist agents, guardrails, sessions and tracing.

  • Python or TypeScript builds
  • Specialist agents with handoffs
  • Input and output guardrails
  • Human-in-the-loop approval points
  • Built-in tracing of every run

Function Calling & API Integration

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.

  • Task-shaped function design
  • Strict schemas for reliable arguments
  • Wrappers over Salesforce, HubSpot and NetSuite APIs
  • Validation before any write
  • Rate-limit and timeout handling

MCP Servers & Enterprise Connectivity

Model Context Protocol servers that expose your systems once and serve both ChatGPT and API agents, with authentication and tool filtering built in.

  • Custom MCP server design and build
  • OAuth and scoped credentials
  • Read and write tools kept separate
  • Approval rules on sensitive tools
  • Secure MCP Tunnel for systems behind your firewall

Document Processing & Knowledge Retrieval

Contracts, invoices, forms and policies turned into structured fields or grounded answers, with the source kept beside every result.

  • Extraction to a fixed schema
  • File search over approved collections
  • SharePoint and Google Drive sources
  • Confidence checks and review queues
  • Results written to CRM or ERP

Multi-Step Workflow Orchestration

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.

  • Event, schedule and webhook triggers
  • State across steps and sessions
  • Approval pauses and resumption
  • Retries and dead-letter handling
  • Hand-off to a person or another agent

Custom GPT & Action Migration

OpenAI is retiring custom GPTs, and GPT custom actions do not transfer on migration. We rebuild the integrations behind them before they stop working.

  • Inventory of GPTs and their actions
  • Actions rebuilt as MCP servers or apps
  • Move to a workspace agent or plugin
  • Side-by-side testing on real prompts
  • Access and sharing set up again
CRM, ERP & Data Integration

Connected to the systems where the work lives

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.

Salesforce + OpenAI

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.

HubSpot + OpenAI

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.

NetSuite + OpenAI

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.

ERP & financial systems

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.

Document management

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.

Internal databases & warehouses

Product, usage and operational data reached through parameterised query tools or an MCP server on a read replica, never free-form SQL against production.

Support & service platforms

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.

Middleware & internal APIs

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.

Configuration

Connected apps and settings

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.

Development

Tools, servers and agents in code

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.

Business Scenarios

Six workflows agents can run today

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.

Inbound lead qualification

A new lead is scored and routed before a rep has opened it, and the CRM shows why.

Trigger
Form fill or new lead in HubSpot or Salesforce
Agent does
Reads the record and account history, scores it against your rules, drafts the update and a follow-up task
Person decides
The lead owner approves the update and the routing

Meeting summaries & sales follow-up

Calls and email threads become a CRM note, next steps and a drafted follow-up the rep can send.

Trigger
A meeting ends or a thread is tagged
Agent does
Summarizes the interaction, updates next steps and drafts the follow-up email
Person decides
The rep edits and sends; nothing goes out unreviewed

Support with case context

Agents in support see the customer, the case history and the entitlement before they answer.

Trigger
A new or updated case or ticket
Agent does
Pulls the account, past cases and knowledge articles, classifies the case and drafts a reply
Person decides
The support agent accepts, edits or escalates

ERP & finance lookups

Sales and service get answers from NetSuite or the ERP without asking finance for an export.

Trigger
A question in ChatGPT, Slack or the CRM
Agent does
Looks up balances, invoices, order status or stock through read-only tools and cites the record
Person decides
Finance owns any change; the agent only reads

Document processing & extraction

Contracts, invoices and forms become structured fields on the right record, with the source attached.

Trigger
A file lands in a folder, inbox or record
Agent does
Extracts the fields to a fixed schema, checks them against rules and writes them to the record
Person decides
Low-confidence or out-of-policy results go to a review queue

Knowledge retrieval for teams

Operations, onboarding and policy questions answered from your approved documents, not the open web.

Trigger
A question from an employee
Agent does
Searches only the collections that person may see and answers with the source cited
Person decides
Content owners keep the collection current; gaps are logged
Authentication, Permissions & Approvals

Agents that act only where you allow

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.

ControlHow we implement it
Identity and authenticationOAuth or scoped service credentials per system, held in a secrets store, never in a prompt or a tool description.
Acting on behalf of usersWhere 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 toolsRead 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 writesAny 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 allowlistsLimits 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 handlingOnly 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 traceabilityEvery 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.
Testing, Monitoring & Optimization

How we prove an agent before it touches live data

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.

TestWhat it has to prove
Tool selectionFor each task in the test set, the agent calls the right tool with valid arguments, and calls nothing it should not.
GroundingAnswers cite the record or document they came from; when the data is missing, the agent says so instead of guessing.
Permission boundariesA user without access to a record cannot reach it through the agent, by any phrasing.
Failure pathsTimeouts, API errors, rate limits, empty results and duplicate events produce a safe outcome and a clear message.
Approval behaviourEvery write that needs approval stops for it; a rejected action leaves the system of record unchanged.
Adversarial inputInstructions hidden in emails, documents or tickets do not make the agent leave its task or its permissions.
RegressionThe same test set runs after every prompt, model or tool change before it reaches production.
Delivery Process

Six phases from use case to a governed agent in 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.

Phase 01

Use-Case Discovery

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

Phase 02

Architecture & Governance

Workspace agent or API agent, runtime, tools, identity model, approval points and data handling, decided and written down.

DeliverableSigned-off agent architecture

Phase 03

Tools & Integrations

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

Phase 04

Agent Build & Evaluation

Instructions, model settings and orchestration, run against the test set until tool selection, grounding and failure handling pass.

DeliverableAgent passing its test set

Phase 05

Pilot with Approvals

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

Phase 06

Rollout & Handover

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

Why Twopir

An integration team that already knows your CRM

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.

The architecture comes first

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.

Salesforce-first, HubSpot-connected

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.

Built for multi-system complexity

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.

Real implementation experience

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.

Senior-led, specialist delivery

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.

Common Questions

AI agent integration questions, answered plainly

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.

Next Step

Bring one workflow, we will map the agent

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