ChanlChanl

The Chanl Blog

Insights on building, connecting, and monitoring AI agents for customer experience — from the teams shipping them.

All Articles

307 articles · Page 1 of 26

A writer at a warm handheld screen in a softly lit evening apartment sweeps older conversation lines into a small drawer, faded transcript pages curl in a wastebasket nearby, and a slim meter sinks from red toward green, in a Her-style terra-cotta watercolor palette
Knowledge & Memory·16 min read

Build Context Editing Into Your Agent and Cut Token Use 84%

Stale tool results pile up in long conversations, raising cost and hurting accuracy. Context editing and the memory tool fix both. Here's how to build them.

Read More
Two glowing documents sit in a dim interrogation room: a machine-printed receipt stamped with a red error seal beside a cheerful summary claiming success, while an examiner traces the mismatch with a pen light, in a Blade Runner-style warm-plum palette
Testing & Evaluation·15 min read

How to Test Agents That Call the Right Tool and Still Get It Wrong

Tool-use benchmarks check whether an agent picks the right tool. They miss agents that call correctly, then mishandle the result. Here's how to test for it.

Read More
An archivist with lantern and ledger in a misty dawn library of glowing memory cards, some pinned bright with brass clips, others dissolving into motes; she presses a protective seal onto a card marked with a wheelchair glyph (Arrival film style, dusty-blue watercolor palette)
Knowledge & Memory·16 min read

How to Build a Forgetting Policy for Agent Memory

An agent that remembers everything eventually surfaces the wrong fact. Here's how decay, eviction, and supersession keep memory useful instead of just large.

Read More
A wood-paneled mission control room in amber light; an operator magnifies two punched instruction cards that both fit the same slot but one row of holes sits offset; gauges and a trembling docking sequence behind (Interstellar style, golden-amber palette)
Testing & Evaluation·15 min read

How to Test Tool Argument Correctness in AI Agents

The most common production agent bug isn't picking the wrong tool. It's picking the right tool and passing the wrong arguments. Here's how to catch it.

Read More
A small tinkering robot at a sunlit cluttered workbench fitting a bright new engine into a hand-built wooden frame of pulleys, guards and safety latches that dwarfs the engine (WALL-E film style, sage-olive watercolor palette)
Agent Architecture·11 min read

Your Agent Is Only as Good as Its Harness

Upgrading the model rarely fixes a failing agent. The harness, the code that manages tools, memory, and context, is where agent quality actually lives.

Read More
A slender android at a bare desk in a glass-walled studio at dusk writing one flowing branching script on a translucent pane, while behind the glass a wall of dozens of small labeled levers sits untouched (Ex Machina style, teal-copper palette)
Tools & MCP·12 min read

How to Build an Agent That Writes Code Instead of Calling Tools

One JSON tool call per turn is slow, token-heavy, and brittle. A short script that orchestrates tools in a sandbox is faster and cheaper. Here's how it works.

Read More
A Contract Document Overlaid on an AI Agent Decision Loop Diagram
Agent Architecture·13 min read

Agent Behavioral Contracts: Stop Drift Before It Hits Callers

Behavioral drift happens with no prompt change and no failing test. Agent behavioral contracts enforce rules at runtime and flag drift before callers do.

Read More
Waveform Visualization Showing Emotional Tone Patterns in a Live Voice Conversation
Voice & Conversation·14 min read

Voice Agents That Sense Frustration Before Callers Hang Up

Real-time emotion detection turns acoustic signals into agent decisions mid-call. How the pipeline works, which signals are reliable, and how to wire it up.

Read More
Graph visualization showing customer entity nodes connected to order, issue, and conversation nodes with relationship labels and timestamps
Knowledge & Memory·16 min read

Your agent doesn't need more memory. It needs a graph.

Session memory forgets. RAG retrieves but doesn't reason. Context graphs give your CX agent a persistent, queryable model of every customer, issue, and relationship it's ever encountered -- at a fraction of the token cost.

Read More
Sequence diagram showing an MCP client re-issuing a tool call after collecting user input through InputRequiredResult
Tools & MCP·14 min read

MCP now uses round-trips, not streams, for user input

The July 28 spec deprecated elicitation and sampling. Multi Round-Trip Requests (SEP-2322) replace both with a stateless pattern: the server returns InputRequiredResult, the client collects input, the client re-submits. Here's how to migrate.

Read More
Diagram showing agent configuration flowing from a git repository through dev, staging, and production environments
Operations·14 min read

How to manage AI agent configs across environments

Your AI agent's system prompt, model settings, and tool definitions are config — and they deserve the same version control, review, and promotion workflow as your code. Here's how to build it.

Read More
Diagram showing a multi-agent system with red failure indicators at context handoff and error propagation points
Agent Architecture·16 min read

Why 40% of multi-agent systems fail in production

Nearly half of multi-agent CX pilots fail within six months of production — not because the AI is wrong, but because teams don't understand how multi-agent systems break. Here are the five failure modes and how to diagnose each.

Read More

Learn Agentic AI

Weekly. Patterns for shipping agents that work. MCP, scorecards, regression tests, prompts, model comparisons.

500+ builders subscribed