{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "langchain-ai-langgraph--add-human-approval-to-an-agent",
 "repo": "langchain-ai/langgraph",
 "repo_url": "https://github.com/langchain-ai/langgraph",
 "repo_slug": "langchain-ai-langgraph",
 "title": "Pause an agent for human approval before it acts",
 "page_title": "How to pause an agent for human approval before it acts with Langgraph",
 "summary": "Use LangGraph interrupts to inspect and edit an agent's state before a risky step runs.",
 "who": "A team building an agent that sends emails, edits records or spends money and wants a person to sign off first.",
 "problem": "Fully autonomous agents can take an action you cannot undo before anyone has looked at it.",
 "outcome": "An agent that stops at chosen points, shows its state for review and continues only after a person approves or edits it.",
 "steps": [
  "Install with `pip install -U langgraph`",
  "Model the agent as a LangGraph graph, putting the risky action in its own step",
  "Follow the Human-in-the-loop guide (interrupts) to pause before that step",
  "Inspect and, if needed, modify the agent state at the pause, then resume the run",
  "Pair it with persistence so a paused run can wait for a reviewer without losing its place"
 ],
 "agent_prompt": "With langchain-ai/langgraph, add a human-in-the-loop interrupt before the <risky action> step of my agent. When it pauses, print the pending state, let me edit it, and only resume after I approve.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Interrupt syntax lives in the docs, not the README, and it changes between releases, so match the docs to your installed version.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python and pip",
  "An LLM provider for your agent's model calls",
  "Optional: a LangSmith account for tracing and the LangSmith Deployment platform",
  "For JavaScript or TypeScript, the separate LangGraph.js library"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/langchain-ai-langgraph/add-human-approval-to-an-agent/",
 "md": "https://dedupedai.com/use-cases/langchain-ai-langgraph/add-human-approval-to-an-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/langchain-ai-langgraph--add-human-approval-to-an-agent.json",
 "api_version": "v1"
}
