interrupt() solves the pausing part of human-in-the-loop well: the graph stops on its checkpointer and waits. What it leaves to you is everything around the human: who gets told, on which channel, what happens at 3 a.m. in their time zone, and what happens if nobody answers for two days. Once several graphs run in the background, there’s a second problem: each one is polite on its own, but together they page the same person over and over.
I maintain Cue, a self-hosted (MIT) service that handles that outbound side, and it has a small LangGraph adapter. The node interrupts as usual:
def delete_accounts(state):
decision = interrupt({"title": "Delete 1,204 inactive accounts?",
"body": "No login since 2024."})
if not decision["approved"]:
return {"result": "kept"}
...
After invoke, hand any pending interrupts to Cue, which notifies the reviewers on their own channels (Slack, Telegram, email, push or a signed webhook) with a personal one-time link to approve or reject:
from cue_client.langgraph import approval_request, resume
result = graph.invoke(inputs, config)
for pending in result.get("__interrupt__", []):
cue.request_approval(**approval_request(pending, thread_id, ["lead"]))
When someone decides, Cue posts a signed approval.decided callback; resume the thread with it:
thread_id, command = resume(payload)
graph.invoke(command, {"configurable": {"thread_id": thread_id}})
The node gets {"approved": ..., "status": ..., "comment": ..., "decided_by": ...}. A request nobody decides on before its deadline comes back as expired, so the graph can treat silence as a no instead of waiting forever. The notifications go through Cue’s normal policy: the reviewer’s quiet hours, per-agent budgets per person, and an importance ceiling per agent, so only trusted agents can wake someone up.
- Repo: GitHub - murtazox04/Cue: Per-person attention budgets for AI agents and background automations: agent budgets, quiet hours in each person's time zone, digests and human approval in front of every agent. Self-hosted, Postgres or SQLite, MIT. · GitHub
- Approval requests: Approval requests - Cue
- Agents and budgets: Agents - Cue
Curious how others handle this today. Do you notify from inside the node, from whatever calls invoke, or from a separate service? And how do you deal with interrupts that nobody answers?