In a real B2B landscape, there is often no neat ready-made connector:
- legacy portal
- incomplete API
- closed banking client
- industry portal
- CIS marketplace
- CRM with outdated documentation
What to do if a service has no ready-made connector: API, files, queues, CLI, RPA/browser gateway, and MCP. Risks, security, and monitoring.
From a supported contract to a controlled fallback
Official contract
Scheduled exchange
Adapter
Fallback
In a real B2B landscape, there is often no neat ready-made connector:
But that means the integration cannot be designed as "the agent will log in and do everything itself."
You need to choose the most stable available contract, isolate it with an adapter, and define in advance where the system can fail.
First checkpoint: documentation, pricing, limits, scopes, sandbox, changelog, and terms of use. Even an incomplete API covers basic operations better than UI behavior.
CSV, XLSX, XML, SFTP, email notifications, and schedules often look boring, but they provide a sustainable back-office setup where real-time is not needed.
A thin command with flags and JSON output suits an agent well: the model calls a limited tool rather than getting arbitrary access to the shell or portal.
If the integration is needed by many agents and teams, it needs a governed contract: permissions, auditing, rate limiting, retries, data masking, and a stable tool description.
Useful for analyzing which requests the portal makes. But an internal endpoint can change without warning and is not required to be an approved integration method.
Playwright or an RPA approach is appropriate as a fallback for rare operations, reconciliations, migrations, and back-office scenarios. It is a poor foundation for a high-load SLA.
What we read or change, how often, which data is affected, and who owns the business process.
Look for API, webhook, export, import, SFTP, reports, SDK, CLI, and contractual constraints. It is cheaper than supporting someone else's UI.
Money, personal data, legally significant actions, bulk changes, and customer notifications require human approval and a separate log.
The external system should not leak into the core ERP, CRM, or PIM. The adapter normalizes data, errors, and retries.
Health checks, alerts, trace/HAR without secrets, error screenshots, and a fallback process are needed before production, not after the first failure.
The Network tab in Chrome DevTools shows which requests the page sends: URL, payload, headers, cookies, statuses, and latency.
This is useful for research: to understand pagination, data format, CSRF, rate limits, and the action sequence.
But repeating such requests in production is only possible after reviewing the service terms, contract, and security.
Internal endpoints are not a public contract: they can be renamed, shut down, restricted by IP, or tied to a new session.
That is why the correct wording is not "we found a hidden API"
, and "we found a fragile research layer that requires separate governance."
For a narrow, repeatable operation, CLI is often enough: `orders export --from 2026-07-01 --format json`, machine-readable output, tests, and clear errors. The agent invokes such a tool only when needed, and secrets and permissions remain outside the prompt. CLI-Anything and similar approaches help build agent-native interfaces faster, especially around existing code, but the production wrapper still requires manual review, tests, and an access policy.
MCP is needed later: when the same adapter is used by different agents, you need discovery, unified permissions, an audit trail, and a stable tools contract. More about this layer on the pages MCP and AI-native integrations.
Browser automation is appropriate when there are no other options and the business process still needs to be removed from manual work: reconcile a report, transfer a reference list, fetch a rare export, or perform a migration. But browser automation is more expensive than API integration: it requires stable selectors, session management, MFA procedures, cookie protection, error tracing, concurrency limits, and readiness for UI changes. In critical financial and legal scenarios, a headless browser must not click "confirm" without separate approval.
Separate service accounts, minimal scopes, tokens outside the repository, cookies, and MFA secrets do not end up in the prompt, logs, or agent artifacts.
The agent invokes approved commands/tools. No arbitrary shell, browser, or employee-like access without an accountability model.
A rerun must not duplicate documents, payments, statuses, submissions, or customer notifications.
Action logs, correlation IDs, health checks, alerts, traces without secrets, and clear diagnostics for rate limits, bans, UI changes, or network errors.
Payments, deletions, publications, bulk changes, and legally significant actions are confirmed by a human or a separate approval process.
The business has a procedure for when the portal changes, the endpoint disappears, the IP is blocked, or the service adds an extra check.
A separate practical problem is the network. The model may require foreign outbound access or a corporate proxy, while a CIS service may accept requests only from the CIS segment or from an IP allowlist. This cannot be solved with a prompt. You need separate processes and environments: one route for reaching the model, another for the CLI, MCP server, Playwright, or local adapter.
In Claude Code, this is designed through environment settings, proxy variables, allowlists, and wrapper scripts; it is important that the team can see which traffic goes where and which secrets are available to each process.
Sometimes the honest answer is not to build automation. If the service explicitly forbids the required access method, the operation is critical for money or legal compliance, the UI changes every week, the volume is high, and the vendor provides neither API, export, nor a contractual channel, integration through the portal may cost more than the manual process. In those cases, it is better to change the process, negotiate with the vendor, buy a supported connector, or move the data into a system where the business has a proper contract.
Cases
Integrations
We will review the available channels, choose the least risky contract, and build an adapter with tests, logs, permissions, monitoring, and a fallback process.
Integration without a ready-made connector is possible, but a mature approach does not start with "let's look at Network and replay the request."
First, look for a supported contract.
Then we check scheduled exchanges.
And only if there are no other options do we use browser automation as a controlled fallback.
The fewer guarantees the vendor provides, the more responsibilities your team has:
Verification date: 09.07.2026