{"slug": "what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer", "title": "What I Learned Building an AI Customer Service Agent That Does More Than Answer Questions", "summary": "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.", "body_md": "When we started building Cevanos, there was already no shortage of AI customer support platforms.\n\nChatbase 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.\n\nThese 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?\n\nFor businesses evaluating [Tidio alternatives](https://cevanos.ai/blog/tidio-alternatives), this distinction becomes particularly important as their customer support requirements grow from answering questions to completing increasingly complex requests across multiple channels.\n\nBuilding [Cevanos](https://cevanos.ai/) gave us an opportunity to explore this problem in depth. Here are some of my biggest engineering learnings.\n\nImagine a customer asking an AI agent to cancel an order.\n\nThe LLM correctly understands the request, identifies the cancellation tool and extracts the required parameters.\n\nBut several questions remain:\n\nWhile 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.\n\nThese aren't decisions that should depend entirely on an LLM's interpretation of a prompt.\n\nA separate authorization and policy layer should determine whether an action is permitted before it reaches the execution layer.\n\nThis is where [AI agent governance](https://cevanos.ai/ai-agent-governance) becomes particularly important. Identity verification, spending limits, business policies and approval requirements should be enforced independently of the language model.\n\nThe model can understand the customer's intent and propose an action. The system decides whether that action is authorized.\n\nNo amount of persuasion or clever prompting should allow a customer to bypass these restrictions.\n\nGiving an AI agent unrestricted access to an external API introduces unnecessary risk.\n\nInstead, expose narrowly scoped business operations such as:\n\nEach operation should have its own validation requirements, permissions and execution constraints.\n\nOne useful design pattern is to classify tools into three categories:\n\nEach category requires different levels of authorization and safeguards.\n\nFor example, retrieving general product availability shouldn't require the same level of verification as issuing a $500 refund.\n\nDevelopers implementing their own integrations should also think carefully about which API parameters the model can control and which response fields it can access.\n\nOur [custom API actions implementation guide](https://cevanos.ai/docs/integrations/custom-actions) provides a practical example of how these capabilities can be configured.\n\nThe objective is to give the AI enough flexibility to solve customer problems without giving it unrestricted access to business infrastructure.\n\nConsider a customer requesting a refund through website chat while simultaneously contacting customer support on WhatsApp.\n\nBoth conversations might independently determine that the refund is eligible.\n\nWithout idempotency and atomic checks at the execution layer, you could potentially process the same refund twice.\n\nFor operations involving money, I would consider the following essential:\n\nAnother important consideration is stale state.\n\nImagine 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.\n\nThe system should revalidate the relevant business state immediately before executing the transaction, rather than relying on information retrieved earlier in the conversation.\n\nThese guarantees belong in the execution layer, not in the LLM's instructions.\n\nA traditional chatbot can be evaluated on the accuracy of its answers.\n\nAn AI agent needs a more comprehensive evaluation framework.\n\nFor example, when testing a refund request, check whether:\n\nA perfectly written response means very little if the underlying operation was incorrect.\n\nOur team evaluated 12 LLMs across 7,218 benchmark runs involving realistic customer support scenarios.\n\nOne of the most interesting findings was that selecting the correct tool initially does not necessarily translate into successful task completion.\n\nThere are several dimensions worth evaluating when selecting an LLM for production:\n\nThe results of our research into the [best LLMs for AI customer service agents](https://cevanos.ai/blog/best-llm-for-ai-customer-service-agent) illustrate why model selection should depend on the complexity and risk of the business operations an agent performs.\n\nAn agent answering FAQs has very different requirements from one processing refunds or modifying customer accounts.\n\nOne of the challenges of designing a customer support platform is that most established businesses already have considerable infrastructure in place.\n\nTheir customer conversations, ticket history, internal workflows, reporting and integrations may all depend on an existing helpdesk.\n\nReplacing that infrastructure simply to introduce AI can create unnecessary migration work.\n\nFor example, businesses researching [Freshdesk alternatives](https://cevanos.ai/blog/freshdesk-alternatives) should first determine whether they actually need a different helpdesk, additional AI capabilities or a more suitable pricing model.\n\nThese 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.\n\nThis influenced an important architectural decision behind Cevanos: the AI layer should be capable of operating independently of the helpdesk.\n\nBusinesses should be able to introduce AI agents while retaining their existing ticketing systems, CRM, ecommerce platforms and operational workflows.\n\nFrom an engineering perspective, this separation also reduces coupling between the conversational interface and the underlying business systems.\n\nTechnical capabilities are only one part of selecting an AI customer service platform. The economics become equally important when conversation volumes increase.\n\nCustomer support platforms use several different pricing models:\n\nEach model has its own advantages and trade-offs.\n\nFor example, [Intercom's pricing structure](https://cevanos.ai/blog/intercom-pricing) combines helpdesk seat subscriptions with outcome-based billing for its Fin AI agent.\n\nThis 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.\n\nWhen 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.\n\nA cheaper model that frequently requires retries, additional tool calls or human intervention may ultimately be more expensive than a stronger model.\n\nPricing decisions should reflect the entire workflow rather than just the cost of inference.\n\nNot every business needs to build its own agent infrastructure.\n\nThe 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.\n\nFor relatively straightforward knowledge-based support, a platform such as Chatbase may be sufficient. Businesses with more complex operational requirements might evaluate [alternatives to Chatbase](https://cevanos.ai/blog/chatbase-alternatives) that offer different approaches to integrations, action execution, governance and voice support.\n\nBefore choosing an approach, I would evaluate the following:\n\nBuilding everything internally offers greater control, but it also introduces significant responsibilities around security, evaluation, monitoring, integrations and ongoing maintenance.\n\nThe right decision depends on the complexity of your business workflows, your engineering resources and the level of control you require.\n\nTechnical accuracy is only one part of the equation.\n\nBusinesses should also track whether customers are experiencing faster resolutions, fewer repeat conversations and better overall service.\n\nSome metrics I would prioritize are:\n\nAlongside operational metrics, longer-term customer loyalty can be monitored using Net Promoter Score.\n\nHowever, simply comparing NPS before and after implementing AI can be misleading, particularly when survey sample sizes are small or customer populations differ.\n\nFor example, an improvement from an NPS of 35 to 40 doesn't necessarily indicate a statistically meaningful change.\n\nTools such as our [free NPS calculator with confidence intervals and industry benchmarks](https://cevanos.ai/tools/nps-calculator) can help teams interpret survey results beyond the headline score.\n\nThe objective of AI implementation should be to improve customer experience while making business operations more efficient, not simply to increase ticket deflection.\n\nNot every customer conversation should be resolved autonomously.\n\nThere will always be situations involving ambiguous policies, exceptional requests, sensitive decisions or frustrated customers that benefit from human judgment.\n\nInstead of treating escalation as an AI failure, design it as a first-class capability.\n\nA good escalation should provide the human support agent with:\n\nThe customer shouldn't have to explain everything again simply because the conversation has moved from AI to a human.\n\nI believe the most effective customer support systems will be those where AI and humans complement each other rather than operate as completely separate systems.\n\nOne of my biggest learnings while building AI agents is that intelligence and reliability are two very different things.\n\nBetter models will continue to improve intelligence.\n\nReliability, however, requires thoughtful engineering around permissions, business policies, execution, testing, concurrency and observability.\n\nThe 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.\n\nThat's the part of agentic AI development I find particularly interesting.", "url": "https://wpnews.pro/news/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer", "canonical_source": "https://dev.to/amol_walunj_d2ca1ae7a2241/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer-questions-2e74", "published_at": "2026-11-29 13:37:26+00:00", "updated_at": "2026-11-29 13:44:14.570097+00:00", "lang": "en", "topics": ["ai-agents", "artificial-intelligence", "large-language-models", "ai-tools"], "entities": ["Cevanos", "Chatbase", "Tidio", "Freshdesk", "Intercom", "WhatsApp"], "also_reported_by": [], "takeaway": "Enforce identity verification, spending limits and approval rules in a policy layer outside the LLM, and add idempotency plus pre-execution state revalidation so an agent cannot double-process refunds across channels.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer", "markdown": "https://wpnews.pro/news/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer.md", "text": "https://wpnews.pro/news/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer.txt", "jsonld": "https://wpnews.pro/news/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer.jsonld"}}