Building AI Agents for Customer support: How to Connect Agents to Legacy Systems
AI support agents that need to look up orders, process refunds, update accounts, and resolve tickets in backend systems. Here's how workflow APIs give AI customer support agents the ability to act in systems that have no API.
TL;DR
AI agents for customer support can reason and decide, but they can only act through APIs. Many customer support systems — especially legacy platforms — have no API for the workflows agents need to perform. Workflow APIs bridge this gap by capturing human-operated workflows and exposing them as stable endpoints that agents can call autonomously.
The customer support agent opportunity
AI support agents that need to look up orders, process refunds, update accounts, and resolve tickets in backend systems. The intelligence to handle these tasks already exists in modern AI models. What's missing is the ability to execute actions in the systems where the work actually happens.
Why legacy systems block customer support agents
Most customer support workflows involve interacting with systems that were built for human operators:
- Web portals with login screens and multi-step forms
- Internal tools that require clicking through specific UI sequences
- Third-party platforms that don't expose the needed functionality through their API
- Older systems that have no API at all
Without programmatic access to these systems, AI agents can plan and recommend — but they can't act.
The integration pattern
Workflow APIs give customer support agents hands:
AI Agent → decides what action to take
→ calls workflow API endpoint
→ workflow API executes in legacy system
→ returns structured result to agent
The agent's tool definition simply includes the workflow API endpoint with its expected inputs and outputs. The agent calls it like any other API tool.
How the workflow API is created
1. A human demonstrates the customer support workflow once in the actual system
2. The platform captures the real HTTP request behavior — authentication, state management, form submissions, and validation logic
3. A stable API endpoint is produced with structured inputs and outputs
The agent never needs to know about the underlying system's UI, authentication flow, or session management. It just makes an API call.
What makes this production-ready
For customer support agents to operate reliably, the workflow API layer handles:
- Authentication management — maintaining sessions in target systems without agent involvement
- Error recovery — automatic retries and re-authentication when sessions expire
- Consistent responses — structured JSON output regardless of the underlying system's behavior
- Monitoring — every agent action is logged for debugging and compliance
Getting started
The fastest path to customer support agent automation:
1. Identify the 2-3 most common customer support tasks that are currently manual
2. Determine which systems those tasks happen in
3. Assess whether those systems have adequate API coverage
4. For workflows stuck behind a UI, create workflow API endpoints through observation
Once the endpoints exist, integrating them into your AI agent is standard tool/function calling — the same pattern used for any API integration.