Workflow
Customer Support Agent
icon
Search documents
Stop Endless Back-and-Forth โ€” Add Model Call Limits in LangChainJS
LangChainยท 2025-11-18 16:30
Hi there, this is Christian from LChain. Here's a scenario. We want a customer support agent that handles routine questions.But if the user keeps going back and forth with it, maybe asking the same thing in three different ways, that's usually a sign that something is not working. Either the agent isn't resolving the issue or the user's drifting into a too long unproductive conversation that honestly the bot was never meant to handle in the first place. In both cases, we want the agent to stop trying to be ...