Skip to main content

3 posts tagged with "Tool Calling"

Key topics and practices on Tool Calling

View All Tags

Tool Calling for Business Operations: Making AI Support Safe at Taking Actions

· 4 min read
Jack Ning
Maintainer of Bytedesk

A chatty AI support bot that misspeaks earns a user complaint; an operational AI support bot that executes a wrong refund loses real money. Once the bot gains the ability to cancel orders, change addresses, and file returns, the first design principle shifts from "fluent answers" to "reliable operations".

This post is part of an experience-sharing series on "AI customer service product and engineering practice", drawn from hands-on practice at a global fast-fashion cross-border e-commerce platform. In this post I want to share how to design the tool-calling mechanism behind scenarios like canceling orders, changing addresses, applying for returns, and checking refunds, so that permission checks, timeouts, duplicate requests, abnormal states, and execution failures are all handled and business operations stay accurate and reliable.

Coordinating RAG Retrieval and Business Tool Calls: Static via Retrieval, Dynamic via API

· 4 min read
Jack Ning
Maintainer of Bytedesk

"Where is my rider?"—if the AI agent answers with a three-day-old delivery note from the knowledge base, the answer is guaranteed wrong. Order status, rider location, inventory counts—this information changes every second; refund policies, check-in rules, after-sales processes may change once every few months. Mixing these two kinds of information into one retrieval store is one of the most common architecture mistakes in smart customer service.

This is the seventh article in an experience-sharing series on "AI customer service product and engineering practice," drawn from hands-on practice as an AI Product Manager focused on IM intelligent customer service at a local-life services platform. In this post I want to share how to design the coordination between RAG retrieval augmentation and business tool calls when smart customer service must integrate merchant knowledge bases, platform rules, order data, and real-time fulfillment information simultaneously—solving knowledge-update lag, retrieval conflicts, and inaccurate model generation.

The design condenses to one sentence: static via retrieval, dynamic via API. But the boundary division, conflict resolution, and traceability mechanisms behind that sentence are where the real work lies.

Designing Safe Business API Calls for AI Agents: Parameter Validation, Permissions, Idempotency, and Error Handling

· 5 min read
Jack Ning
Maintainer of Bytedesk

When an AI agent graduates from "chat only" to "actually doing things," the risk profile escalates too. Letting a large model call real business APIs — order lookup, logistics tracking, refund requests — means a wrong parameter, an overstepped permission, or a duplicated request no longer produces a wrong sentence but real financial loss. I have seen teams eagerly wire a dozen tools into their agent without ever answering one question: why should a model-generated call request be executable as-is?

This is the third post in an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an AI product manager at a Southeast Asian cross-border e-commerce platform. In this post I want to share how to design tool definitions, parameter validation, permission control, idempotency, and error handling so that model-generated requests to business APIs such as order lookup, logistics tracking, refund requests, and after-sales tickets execute safely and accurately.