cd /news/ai-agents/what-i-learned-building-an-ai-custom… · home › topics › ai-agents › article
[ARTICLE · art-178134] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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

A developer behind Cevanos described building an AI customer service agent that executes business operations like order cancellations and refunds, arguing that authorization, identity verification and spending limits must be enforced in a separate policy layer rather than left to the LLM. The engineer outlined scoping external APIs to narrow business operations, classifying tools by risk level, and adding idempotency and atomic checks at the execution layer to prevent duplicate refunds across channels like web chat and WhatsApp. The system also revalidates business state immediately before executing a transaction to avoid acting on stale eligibility data.

recommendation

Put authorization and business-policy checks in a separate layer the model cannot prompt past, and revalidate state with idempotent, atomic execution before any money-moving action.

more in playbook: Securing agents and AI tools
by read7 min views4 publishedNov 29, 2026

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.

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:

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.

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

Instead, expose narrowly scoped business operations such as:

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

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

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.

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

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

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.

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

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.

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:

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.

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:

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.

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:

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.

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.

── more in #ai-agents 4 stories · sorted by recency
── more on @cevanos 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/what-i-learned-build…] indexed:0 read:7min 2026-11-29 · —