What I Learned Building an AI Customer Service Agent That Does More Than Answer Questions

2026-11-29来源 dev.toEnglish

When we started building Cevanos, there was already no shortage of AI customer support platforms.

Chatbase made it easy to build chatbots using company knowledge. Tidio combined live chat with AI automation. Freshdesk and Intercom offered established customer support infrastructure with increasingly capable AI features.

These are all useful products. However, the engineering problem that interested me was slightly different: how do you make an AI agent reliable enough to perform real business operations while respecting the rules of an organization?

For businesses evaluating Tidio alternatives, this distinction becomes particularly important as their customer support requirements grow from answering questions to completing increasingly complex requests across multiple channels.

Building Cevanos gave us an opportunity to explore this problem in depth. Here are some of my biggest engineering learnings.

1. Understanding intent doesn't mean the agent should execute it

Imagine a customer asking an AI agent to cancel an order.

The LLM correctly understands the request, identifies the cancellation tool and extracts the required parameters.

But several questions remain:

  • Has the customer's identity been verified?
  • Does the order belong to this customer?
  • Has the order already been shipped?
  • Is cancellation permitted under the company's policy?
  • Does this operation require human approval?

While building an AI agent for an ecommerce store, we realised that without proper identity verification, someone who knows another customer's email address could potentially cancel their order.

These aren't decisions that should depend entirely on an LLM's interpretation of a prompt.

A separate authorization and policy layer should determine whether an action is permitted before it reaches the execution layer.

This is where AI agent governance becomes particularly important. Identity verification, spending limits, business policies and approval requirements should be enforced independently of the language model.

The model can understand the customer's intent and propose an action. The system decides whether that action is authorized.

No amount of persuasion or clever prompting should allow a customer to bypass these restrictions.

2. Design tools around business operations

Giving an AI agent unrestricted access to an external API introduces unnecessary risk.

Instead, expose narrowly scoped business operations such as:

  • Get order status
  • Check refund eligibility
  • Cancel an eligible order
  • Update a delivery address
  • Reschedule an appointment

Each operation should have its own validation requirements, permissions and execution constraints.

One useful design pattern is to classify tools into three categories:

  • Reads: Operations that retrieve information without modifying anything.
  • Writes: Operations that modify records or business state.
  • Financial actions: Operations involving refunds, payments or other monetary transactions.

Each category requires different levels of authorization and safeguards.

For example, retrieving general product availability shouldn't require the same level of verification as issuing a $500 refund.

Developers implementing their own integrations should also think carefully about which API parameters the model can control and which response fields it can access.

Our custom API actions implementation guide provides a practical example of how these capabilities can be configured.

The objective is to give the AI enough flexibility to solve customer problems without giving it unrestricted access to business infrastructure.

3. Handle concurrency and duplicate requests

Consider a customer requesting a refund through website chat while simultaneously contacting customer support on WhatsApp.

Both conversations might independently determine that the refund is eligible.

Without idempotency and atomic checks at the execution layer, you could potentially process the same refund twice.

For operations involving money, I would consider the following essential:

  • Idempotency keys
  • Atomic transaction limits
  • State validation immediately before execution
  • Persistent audit logs
  • Consistent authorization across communication channels

Another important consideration is stale state.

Imagine an AI agent checking refund eligibility at the beginning of a conversation. By the time the customer confirms the refund, another support agent might have already processed it.

The system should revalidate the relevant business state immediately before executing the transaction, rather than relying on information retrieved earlier in the conversation.

These guarantees belong in the execution layer, not in the LLM's instructions.

4. Evaluate outcomes rather than responses

A traditional chatbot can be evaluated on the accuracy of its answers.

An AI agent needs a more comprehensive evaluation framework.

For example, when testing a refund request, check whether:

  • The correct customer was identified.
  • The correct order was selected.
  • The refund policy was respected.
  • The correct amount was processed.
  • No unintended operation was performed.
  • The customer received an accurate confirmation.

A perfectly written response means very little if the underlying operation was incorrect.

Our team evaluated 12 LLMs across 7,218 benchmark runs involving realistic customer support scenarios.

One of the most interesting findings was that selecting the correct tool initially does not necessarily translate into successful task completion.

There are several dimensions worth evaluating when selecting an LLM for production:

  • Tool selection accuracy
  • End-to-end task completion
  • Unwanted action rates
  • Instruction adherence
  • Operating costs

The results of our research into the best LLMs for AI customer service agents illustrate why model selection should depend on the complexity and risk of the business operations an agent performs.

An agent answering FAQs has very different requirements from one processing refunds or modifying customer accounts.

5. AI automation shouldn't necessarily require replacing your helpdesk

One of the challenges of designing a customer support platform is that most established businesses already have considerable infrastructure in place.

Their customer conversations, ticket history, internal workflows, reporting and integrations may all depend on an existing helpdesk.

Replacing that infrastructure simply to introduce AI can create unnecessary migration work.

For example, businesses researching Freshdesk alternatives should first determine whether they actually need a different helpdesk, additional AI capabilities or a more suitable pricing model.

These are three different problems that don't necessarily require the same solution. Freshdesk also has its own AI capabilities, which are worth evaluating before considering a replacement.

This influenced an important architectural decision behind Cevanos: the AI layer should be capable of operating independently of the helpdesk.

Businesses should be able to introduce AI agents while retaining their existing ticketing systems, CRM, ecommerce platforms and operational workflows.

From an engineering perspective, this separation also reduces coupling between the conversational interface and the underlying business systems.

6. Consider the economics of AI automation

Technical capabilities are only one part of selecting an AI customer service platform. The economics become equally important when conversation volumes increase.

Customer support platforms use several different pricing models:

  • Per human support agent
  • Per AI conversation
  • Per successful AI outcome
  • Usage-based credits
  • Flat monthly subscriptions

Each model has its own advantages and trade-offs.

For example, Intercom's pricing structure combines helpdesk seat subscriptions with outcome-based billing for its Fin AI agent.

This can make sense for businesses that prefer paying for qualifying outcomes. However, teams should model how their total expenditure changes as customer conversation volumes and automation rates increase.

When designing an AI system, I would track the cost per successfully completed customer request rather than looking exclusively at token consumption or cost per message.

A cheaper model that frequently requires retries, additional tool calls or human intervention may ultimately be more expensive than a stronger model.

Pricing decisions should reflect the entire workflow rather than just the cost of inference.

7. Building versus buying

Not every business needs to build its own agent infrastructure.

The current AI customer service landscape includes knowledge-based chatbots, ecommerce support platforms, traditional helpdesks with AI capabilities, developer-focused agent builders and autonomous AI agents.

For relatively straightforward knowledge-based support, a platform such as Chatbase may be sufficient. Businesses with more complex operational requirements might evaluate alternatives to Chatbase that offer different approaches to integrations, action execution, governance and voice support.

Before choosing an approach, I would evaluate the following:

  • How deeply does the platform integrate with existing business systems?
  • Can it execute business operations or only answer questions?
  • Can authorization and business policies be enforced independently of the LLM?
  • Does it support human approval workflows?
  • Can developers extend its capabilities through custom APIs?
  • What happens when the AI cannot resolve a customer request?

Building everything internally offers greater control, but it also introduces significant responsibilities around security, evaluation, monitoring, integrations and ongoing maintenance.

The right decision depends on the complexity of your business workflows, your engineering resources and the level of control you require.

8. Measure the impact on customers

Technical accuracy is only one part of the equation.

Businesses should also track whether customers are experiencing faster resolutions, fewer repeat conversations and better overall service.

Some metrics I would prioritize are:

  • Actual resolution rate
  • Repeat contact rate
  • Average time to resolution
  • Human escalation quality
  • Customer satisfaction
  • Net Promoter Score (NPS)

Alongside operational metrics, longer-term customer loyalty can be monitored using Net Promoter Score.

However, simply comparing NPS before and after implementing AI can be misleading, particularly when survey sample sizes are small or customer populations differ.

For example, an improvement from an NPS of 35 to 40 doesn't necessarily indicate a statistically meaningful change.

Tools such as our free NPS calculator with confidence intervals and industry benchmarks can help teams interpret survey results beyond the headline score.

The objective of AI implementation should be to improve customer experience while making business operations more efficient, not simply to increase ticket deflection.

9. Treat human escalation as part of the architecture

Not every customer conversation should be resolved autonomously.

There will always be situations involving ambiguous policies, exceptional requests, sensitive decisions or frustrated customers that benefit from human judgment.

Instead of treating escalation as an AI failure, design it as a first-class capability.

A good escalation should provide the human support agent with:

  • A summary of the conversation
  • Verified customer information
  • Relevant business records
  • Actions already attempted
  • The reason for escalation
  • Suggested next steps

The customer shouldn't have to explain everything again simply because the conversation has moved from AI to a human.

I believe the most effective customer support systems will be those where AI and humans complement each other rather than operate as completely separate systems.

Final thoughts

One of my biggest learnings while building AI agents is that intelligence and reliability are two very different things.

Better models will continue to improve intelligence.

Reliability, however, requires thoughtful engineering around permissions, business policies, execution, testing, concurrency and observability.

The challenge isn't just making an AI agent understand what a customer wants. It's making sure the agent can safely and correctly deliver that outcome.

That's the part of agentic AI development I find particularly interesting.

原文:https://www.a8q9.cn/en/article/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer--e6ed1f.html

相关文章