Check an agent conversation for a loop
Evaluate whether an agent conversation is stuck in a loop — the customer re-asking the same thing while the agent repeats itself or sentiment keeps dropping — and return a deterministic assessment over the recent message window. This is a read-only check: it inspects the conversation but never mutates it or triggers a handoff. It powers the inbox “this conversation may be looping” banner so an operator can step in. The optional body tunes the detection thresholds. Requires an owner or admin role.
Authorizations
Dashboard JWT token from Clerk
Path Parameters
Agent conversation identifier.
Body
How many recent turns to inspect.
2 <= x <= 20Similarity above which two customer turns count as a re-ask.
0 <= x <= 1Sentiment below which the window is treated as negative.
-1 <= x <= 1Minimum customer turns required before a loop can be flagged.
1 <= x <= 20