Skip to main content

2 posts tagged with "Function Calling"

Key topics and practices on Function 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.

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.