PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Learning paths> Agentic Engineering with Promptise Foundry
Lesson 74 / 100
74%

What Is Human in the Loop AI? Approvals for AI Agents

What human in the loop AI means for agents: a person approves risky tool calls before they run. How approval gates work, an example, and common mistakes.

Beginner7 minHuman-in-the-Loop
All 100 lessons↓
  1. ✓What Is an AI Agent? Definition, How It Works, Examples
  2. ✓How to Build an AI Agent in Python (2026 Guide)
  3. ✓Build a Personal AI Agent: Memory, Reminders, Chat
  4. ✓What Is an Agent Harness? Parts and How to Build One
  5. ✓System Prompt Best Practices for AI Agents in Python
  6. ✓Best LLM for AI Agents (2026): Picks, Prices, How to Test
  7. ✓AI Agent YAML: Define and Run an Agent From a Config File
  8. ✓Streaming LLM Responses with FastAPI: Tokens and Tool Calls
  9. ✓Best Local LLM for AI Agents: Ollama Models by GPU (2026)
  10. ✓Claude AI Agent with MCP: Use Anthropic Models in Promptise
  11. ✓Gemini AI Agent with MCP: Use Google Models in Promptise
  12. ✓Azure OpenAI Agent with MCP: Use Deployments in Promptise
  13. ✓OpenRouter AI Agent with MCP: Many Models in Promptise
  14. ✓Ollama AI Agent with MCP: Run Local Models in Promptise
  15. ✓LLM Semantic Cache and Model Fallback in Python
  16. ✓What Is MCP (Model Context Protocol)? A Developer's Guide
  17. ✓What Is Tool Calling? LLM Function Calling Explained
  18. ✓MCP Tools vs Resources vs Prompts (With Python Examples)
  19. ✓How to Connect MCP Servers to Your AI Agent in Python
  20. ✓Build a Production MCP Server in Python (Step by Step)
  21. ✓MCP Transports: stdio vs Streamable HTTP vs SSE (Python)
  22. ✓MCP 2026-07-28 Migration: Make Your MCP Server Stateless
  23. ✓OpenAPI to MCP: Turn Any REST API into an MCP Server
  24. ✓MCP Authentication in Python: API Keys, JWT and OAuth
  25. ✓Build an Authenticated MCP Server for Your AI Agent (Python)
  26. ✓MCP Security Best Practices: A Checklist for MCP Servers
  27. ✓Testing MCP Servers in Python: pytest Without a Live Server
  28. ✓Too Many MCP Tools? How to Fix LLM Tool Selection in Python
  29. ✓Idempotent Tool Calls: Make AI Agent Retries Safe
  30. ✓AI Agent Tool Failures: Stop Unsafe Workarounds
  31. ✓MCP Server Caching, Timeouts and Circuit Breakers in Python
  32. ✓MCP Middleware for Servers: Auth, Logging, Rate Limits
  33. ✓MCP vs CLI for AI Agents: Tokens, Security, When to Use Each
  34. ✓LangChain vs MCP: Differences and How They Work Together
  35. ✓FastMCP Alternatives for Production MCP Servers (2026)
  36. ✓AI Agent Audit Logging: Tamper-Evident Logs in Python
  37. ✓AI Agent Human in the Loop: Approve Tool Calls in Python
  38. ✓AI Agent Prompt Injection: How to Defend Against It
  39. ✓Hidden Text Prompt Injection: Sanitize Pages for AI Agents
  40. ✓Build a Multi-Agent System in Python (and When Not To)
  41. ✓Context Engineering for AI Agents: Context Window Management
  42. ✓Context Compaction for AI Agents: Trim vs Summarize
  43. ✓How to Deploy an AI Agent with Docker (2026 Guide)
  44. ✓LLM Tool Rate Limiting: Per-Client Limits for MCP Servers
  45. ✓MCP Long-Running Tasks: Background Jobs in Python
  46. ✓MCP Server Monitoring: Prometheus, OpenTelemetry and Logs
  47. ✓Best AI Agent Frameworks (2026): Python Options Compared
  48. ✓Self-Improving AI Agent: Learn From Tool Failures in Python
  49. ✓AI Agent Identity: Authenticate Agents to MCP Servers
  50. ✓Code-Action Agents in Python: One Program vs 37 Tool Calls
  51. ✓Multi-Tenant AI Agents: Keep Each Customer's Data Apart
  52. ✓What Is Agentic RAG? How It Differs from Classic RAG
  53. ✓AI Agent Memory in Python: Short-Term and Long-Term
  54. ✓Per-User Agent Memory Isolation: Stop Leaks Between Users
  55. ✓Agentic RAG in Python: Give Your AI Agent a Search Tool
  56. ✓AI Agent Reasoning Patterns in Python: From ReAct to Debate
  57. ✓Plan-and-Execute Agents in Python: Beyond the ReAct Loop
  58. ✓Self-Modifying AI Agent in Python: Open Mode & Limits
  59. ✓CrewAI Alternatives: 7 Options and How to Migrate (2026)
  60. ✓Migrate from AutoGen: Agent Framework, AG2 and More
  61. ✓What Is an LLM Guardrail? Types, Examples and Limits
  62. ✓Best LLM Guardrails Tools (2026): 9 Platforms Compared
  63. ✓AI Agent Guardrails in Python: Block Injection, Redact PII
  64. ✓NeMo Guardrails vs Guardrails AI: Which to Choose (2026)
  65. ✓AI-Based PII Detection and Redaction Tools for LLM Apps
  66. ✓Stop Secrets Leaking Into LLM Logs and Traces
  67. ✓AI Agent Code Execution Sandbox: Run LLM Code Safely
  68. ✓AI Agent Network Egress: Limit Where Agents Can Connect
  69. ✓AutoGen Docker Task Isolation: Secure the Code Executor
  70. ✓SPIFFE for AI Agents: Workload Identity Without API Keys
  71. ✓On-Behalf-Of Auth for AI Agents: Act as Each User
  72. ✓AI Agent Production Checklist: What to Check Before Launch
  73. ✓Approval Fatigue: Auto-Approve Safe AI Agent Actions
  74. 74What Is Human in the Loop AI? Approvals for AI Agents
  75. 75AI Agent Notifications: Webhook and Slack Alerts in Python
  76. 76AI Agent Observability: Trace Tool Calls, Tokens and Cost
  77. 77Best AI Agent Observability Tools (2026), Compared
  78. 78AI Agent Stuck in a Loop? How to Detect and Stop It
  79. 79How to Run, Debug and Deploy an AI Agent in Python
  80. 80AI Agent Cost Tracking: Tokens and Cost per Run and User
  81. 81How to Evaluate AI Agents: Evals, LLM Judges and pass^k
  82. 82AI Agent Cost Control: Budgets That Stop Runaway Spend
  83. 83How to Test LLM Prompts and AI Agents in Python
  84. 84AI Agent Evals in CI: Run Them on Every Pull Request
  85. 85What Is an Agentic Runtime? AI Agent Runtimes Explained
  86. 86Autonomous AI Agent Runtime: Budgets, Crash Recovery, API
  87. 87Event-Driven AI Agents: Webhook, Cron and File Triggers
  88. 88AI Agent Cron Jobs: Run an Agent on a Schedule
  89. 89AI Agent Webhook Trigger: Run an Agent on HTTP Events
  90. 90AI Agent File Watcher: Process New Files Automatically
  91. 91Custom AI Agent Triggers: Wake an Agent From Any Source
  92. 92AI Agent Event Filters: Skip Runs Before the LLM
  93. 93AI Agent Retries and a Dead Letter Queue for Failed Runs
  94. 94Run Multiple AI Agents: One Runtime, Many Processes
  95. 95AI Agent Manifest: Declare a Long-Running Agent in YAML
  96. 96AI Agent CLI: Start, Stop and Inspect Running Agents
  97. 97AI Agent Monitoring Dashboard in the Terminal
  98. 98Multi-Agent Event Bus: Chain Agents With Events
  99. 99Distributed AI Agents: Run Agents Across Many Machines
  100. 100Pause and Resume an AI Agent: Lifecycle States Explained

Lessons in this path

  1. ✓What Is an AI Agent? Definition, How It Works, Examples
  2. ✓How to Build an AI Agent in Python (2026 Guide)
  3. ✓Build a Personal AI Agent: Memory, Reminders, Chat
  4. ✓What Is an Agent Harness? Parts and How to Build One
  5. ✓System Prompt Best Practices for AI Agents in Python
  6. ✓Best LLM for AI Agents (2026): Picks, Prices, How to Test
  7. ✓AI Agent YAML: Define and Run an Agent From a Config File
  8. ✓Streaming LLM Responses with FastAPI: Tokens and Tool Calls
  9. ✓Best Local LLM for AI Agents: Ollama Models by GPU (2026)
  10. ✓Claude AI Agent with MCP: Use Anthropic Models in Promptise
  11. ✓Gemini AI Agent with MCP: Use Google Models in Promptise
  12. ✓Azure OpenAI Agent with MCP: Use Deployments in Promptise
  13. ✓OpenRouter AI Agent with MCP: Many Models in Promptise
  14. ✓Ollama AI Agent with MCP: Run Local Models in Promptise
  15. ✓LLM Semantic Cache and Model Fallback in Python
  16. ✓What Is MCP (Model Context Protocol)? A Developer's Guide
  17. ✓What Is Tool Calling? LLM Function Calling Explained
  18. ✓MCP Tools vs Resources vs Prompts (With Python Examples)
  19. ✓How to Connect MCP Servers to Your AI Agent in Python
  20. ✓Build a Production MCP Server in Python (Step by Step)
  21. ✓MCP Transports: stdio vs Streamable HTTP vs SSE (Python)
  22. ✓MCP 2026-07-28 Migration: Make Your MCP Server Stateless
  23. ✓OpenAPI to MCP: Turn Any REST API into an MCP Server
  24. ✓MCP Authentication in Python: API Keys, JWT and OAuth
  25. ✓Build an Authenticated MCP Server for Your AI Agent (Python)
  26. ✓MCP Security Best Practices: A Checklist for MCP Servers
  27. ✓Testing MCP Servers in Python: pytest Without a Live Server
  28. ✓Too Many MCP Tools? How to Fix LLM Tool Selection in Python
  29. ✓Idempotent Tool Calls: Make AI Agent Retries Safe
  30. ✓AI Agent Tool Failures: Stop Unsafe Workarounds
  31. ✓MCP Server Caching, Timeouts and Circuit Breakers in Python
  32. ✓MCP Middleware for Servers: Auth, Logging, Rate Limits
  33. ✓MCP vs CLI for AI Agents: Tokens, Security, When to Use Each
  34. ✓LangChain vs MCP: Differences and How They Work Together
  35. ✓FastMCP Alternatives for Production MCP Servers (2026)
  36. ✓AI Agent Audit Logging: Tamper-Evident Logs in Python
  37. ✓AI Agent Human in the Loop: Approve Tool Calls in Python
  38. ✓AI Agent Prompt Injection: How to Defend Against It
  39. ✓Hidden Text Prompt Injection: Sanitize Pages for AI Agents
  40. ✓Build a Multi-Agent System in Python (and When Not To)
  41. ✓Context Engineering for AI Agents: Context Window Management
  42. ✓Context Compaction for AI Agents: Trim vs Summarize
  43. ✓How to Deploy an AI Agent with Docker (2026 Guide)
  44. ✓LLM Tool Rate Limiting: Per-Client Limits for MCP Servers
  45. ✓MCP Long-Running Tasks: Background Jobs in Python
  46. ✓MCP Server Monitoring: Prometheus, OpenTelemetry and Logs
  47. ✓Best AI Agent Frameworks (2026): Python Options Compared
  48. ✓Self-Improving AI Agent: Learn From Tool Failures in Python
  49. ✓AI Agent Identity: Authenticate Agents to MCP Servers
  50. ✓Code-Action Agents in Python: One Program vs 37 Tool Calls
  51. ✓Multi-Tenant AI Agents: Keep Each Customer's Data Apart
  52. ✓What Is Agentic RAG? How It Differs from Classic RAG
  53. ✓AI Agent Memory in Python: Short-Term and Long-Term
  54. ✓Per-User Agent Memory Isolation: Stop Leaks Between Users
  55. ✓Agentic RAG in Python: Give Your AI Agent a Search Tool
  56. ✓AI Agent Reasoning Patterns in Python: From ReAct to Debate
  57. ✓Plan-and-Execute Agents in Python: Beyond the ReAct Loop
  58. ✓Self-Modifying AI Agent in Python: Open Mode & Limits
  59. ✓CrewAI Alternatives: 7 Options and How to Migrate (2026)
  60. ✓Migrate from AutoGen: Agent Framework, AG2 and More
  61. ✓What Is an LLM Guardrail? Types, Examples and Limits
  62. ✓Best LLM Guardrails Tools (2026): 9 Platforms Compared
  63. ✓AI Agent Guardrails in Python: Block Injection, Redact PII
  64. ✓NeMo Guardrails vs Guardrails AI: Which to Choose (2026)
  65. ✓AI-Based PII Detection and Redaction Tools for LLM Apps
  66. ✓Stop Secrets Leaking Into LLM Logs and Traces
  67. ✓AI Agent Code Execution Sandbox: Run LLM Code Safely
  68. ✓AI Agent Network Egress: Limit Where Agents Can Connect
  69. ✓AutoGen Docker Task Isolation: Secure the Code Executor
  70. ✓SPIFFE for AI Agents: Workload Identity Without API Keys
  71. ✓On-Behalf-Of Auth for AI Agents: Act as Each User
  72. ✓AI Agent Production Checklist: What to Check Before Launch
  73. ✓Approval Fatigue: Auto-Approve Safe AI Agent Actions
  74. 74What Is Human in the Loop AI? Approvals for AI Agents
  75. 75AI Agent Notifications: Webhook and Slack Alerts in Python
  76. 76AI Agent Observability: Trace Tool Calls, Tokens and Cost
  77. 77Best AI Agent Observability Tools (2026), Compared
  78. 78AI Agent Stuck in a Loop? How to Detect and Stop It
  79. 79How to Run, Debug and Deploy an AI Agent in Python
  80. 80AI Agent Cost Tracking: Tokens and Cost per Run and User
  81. 81How to Evaluate AI Agents: Evals, LLM Judges and pass^k
  82. 82AI Agent Cost Control: Budgets That Stop Runaway Spend
  83. 83How to Test LLM Prompts and AI Agents in Python
  84. 84AI Agent Evals in CI: Run Them on Every Pull Request
  85. 85What Is an Agentic Runtime? AI Agent Runtimes Explained
  86. 86Autonomous AI Agent Runtime: Budgets, Crash Recovery, API
  87. 87Event-Driven AI Agents: Webhook, Cron and File Triggers
  88. 88AI Agent Cron Jobs: Run an Agent on a Schedule
  89. 89AI Agent Webhook Trigger: Run an Agent on HTTP Events
  90. 90AI Agent File Watcher: Process New Files Automatically
  91. 91Custom AI Agent Triggers: Wake an Agent From Any Source
  92. 92AI Agent Event Filters: Skip Runs Before the LLM
  93. 93AI Agent Retries and a Dead Letter Queue for Failed Runs
  94. 94Run Multiple AI Agents: One Runtime, Many Processes
  95. 95AI Agent Manifest: Declare a Long-Running Agent in YAML
  96. 96AI Agent CLI: Start, Stop and Inspect Running Agents
  97. 97AI Agent Monitoring Dashboard in the Terminal
  98. 98Multi-Agent Event Bus: Chain Agents With Events
  99. 99Distributed AI Agents: Run Agents Across Many Machines
  100. 100Pause and Resume an AI Agent: Lifecycle States Explained
← Path overview

Human in the loop AI means a person approves an AI system's risky steps before they take effect. An AI agent that can refund orders, send emails or delete records will eventually try one of those things when it shouldn't. An approval gate stops it at that point. This page shows how HITL approvals work for agents with a real run, compares human in the loop with related terms, and covers the design mistakes that make approvals useless.

[01]

What is human in the loop AI?

Human in the loop (HITL) AI is a design in which a person reviews and decides on an AI system's actions before they take effect. For AI agents, it usually means an approval gate: when the agent asks for a risky tool call, such as a refund, the run pauses until a human approves, edits or rejects it.

Key takeaways:

  • Gate actions, not answers. The useful place for a human is before a tool call that changes something, not after every message.

  • The agent should learn the decision. A rejection, ideally with a reason, comes back to the model as the tool's result, so it can explain or choose another path.

  • Decide what happens on silence. Every approval needs a timeout and a default. The safe default is to deny.

  • Too many approvals are as bad as none. Reviewers who approve dozens of routine requests a day stop reading them.

The term is older than AI agents. In machine learning it also describes people labeling data or rating model outputs during training, as in reinforcement learning from human feedback. This page is about the run-time meaning: a human deciding on an agent's actions while it works.


[02]

How does human in the loop work for AI agents?

The approval gate sits between the model's tool request and the tool itself. Because the model only requests tool calls and your code executes them, the code can stop and wait.

A tool call that needs approval goes to a human reviewer and waits with a timeout. Approved calls run, rejected calls return "DENIED: <reason>" as the tool result, a timeout usually denies, and the model then answers or tries another way.
FigureAn approval gate between the model's tool request and the tool

Three choices define a gate. Which calls need approval: a list of tool names or patterns, sometimes with rules on the arguments, such as refunds over $100. Where the request goes: a chat message with buttons, a web dashboard, a queue or a webhook. What happens while waiting: a short wait can block the run, but a wait of hours needs state that survives a restart, which is a different problem; see durable AI agents.


[03]

A human in the loop example

The agent below has a refund tool behind an approval policy. The reviewer function stands in for the human: in production it would post to Slack or a dashboard and wait. Here it approves refunds up to $100 and rejects the rest, with a reason.

Pythonapproval.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import asyncio

from promptise import build_agent, tool
from promptise.approval import ApprovalDecision, ApprovalPolicy


@tool
def get_order(order_id: str) -> dict:
    """Look up an order by its ID."""
    return {"order_id": order_id, "total": 840.00, "status": "delivered"}


@tool
def issue_refund(order_id: str, amount: float) -> str:
    """Refund part or all of an order."""
    return f"Refunded ${amount:.2f} on {order_id}"


async def reviewer(request):
    # In production this posts to Slack, a web UI or a queue and waits.
    # Here the "human" approves refunds up to $100 and rejects the rest.
    print(f"APPROVAL NEEDED {request.tool_name} {request.arguments}")
    if request.arguments["amount"] <= 100:
        print("REVIEWER        approved")
        return ApprovalDecision(approved=True, reviewer_id="sam")
    print("REVIEWER        rejected")
    return ApprovalDecision(
        approved=False, reviewer_id="sam", reason="Refunds over $100 need a manager."
    )


async def main():
    agent = await build_agent(
        model="openai:gpt-5-mini",
        instructions="You are a support agent. Answer in one sentence.",
        extra_tools=[get_order, issue_refund],
        approval=ApprovalPolicy(tools=["issue_refund"], handler=reviewer, timeout=120),
    )
    try:
        for question in [
            "Refund $40 on order A-7 for the late delivery.",
            "Refund order A-8 in full.",
        ]:
            print(f"\nUSER            {question}")
            result = await agent.ainvoke({"messages": [{"role": "user", "content": question}]})
            print(f"AGENT           {result['messages'][-1].content}")
    finally:
        await agent.shutdown()


asyncio.run(main())

Real output from one run with gpt-5-mini:

Output

USER            Refund $40 on order A-7 for the late delivery.
APPROVAL NEEDED issue_refund {'order_id': 'A-7', 'amount': 40.0}
REVIEWER        approved
AGENT           Done — $40 refunded to order A-7.

USER            Refund order A-8 in full.
APPROVAL NEEDED issue_refund {'order_id': 'A-8', 'amount': 840.0}
REVIEWER        rejected
AGENT           I attempted to refund order A-8 for $840 but it was denied because refunds over $100 require manager approval—would you like me to escalate to a manager for full approval or issue a partial refund of up to $100 now?

The model never saw the policy. For each refund it asked for the tool as usual, and the gate paused the call and handed the reviewer the tool name and arguments. The $40 refund ran. The $840 refund didn't, and the reviewer's reason came back to the model as the tool result, so the agent could tell the user why and offer to escalate or refund up to $100. In Promptise Foundry a rejected call returns DENIED: plus the reason, the default timeout is 300 seconds, and a timeout or an error in the approval handler denies the call. The approval docs list webhook, queue and callback handlers for real reviewers.


[04]

Human in the loop vs related terms

Term

What the human does

When

Fits

Human in the loop

Approves, edits or rejects each gated action

Before the action runs

Refunds, payments, deletes, external emails

Human on the loop

Watches the agent and can stop or correct it

During or after the run

High-volume, low-risk actions with good monitoring

Human out of the loop

Nothing at run time

Never

Read-only tools and fully reversible actions

Risk-based (auto) approval

Reviews only calls that rules flag as risky

Before risky actions

Agents with many routine calls

RLHF and data labeling

Rates or labels outputs to train a model

During training

Model development, not agent operation

Most production agents mix these: read-only tools run freely, routine writes are auto-approved by rules, and only rare, costly or irreversible actions reach a person. Approval fatigue shows how to set up those rules.

Whatever the mix, a human check only works if the reviewer can really stop or change the action, and knows that people tend to over-trust a system's output. Some uses of AI are regulated in some places; ask your legal and compliance team what applies to you.


[05]

Common misconceptions about human in the loop

"Approving everything makes the agent safe." If a reviewer sees fifty requests a day and all of them are fine, they start clicking approve without reading. The one bad request gets the same click. Gate fewer, riskier calls, and show the reviewer what matters.

"The reviewer can judge the call from the tool name." "issue_refund" says little. Show the arguments, the user's request and recent context, and redact secrets and personal data the reviewer doesn't need.

"A rejection ends the run." It shouldn't. The model should get the decision and the reason as a tool result, so it can tell the user, ask for missing information, or take a safer path. A bare error leads the model to retry or to make up an explanation.

"Approval in the agent is enough." An agent-side gate protects one agent. If several agents or apps call the same tools, put the gate on the tool server too, so every caller goes through it. See AI agent human in the loop for both options.


[06]

Frequently asked questions

What does human in the loop mean for AI agents?

It means a person approves, edits or rejects an agent's risky actions before they run. The agent asks for a tool call, the call pauses, a reviewer decides, and the agent continues with the result. Low-risk actions such as lookups usually run without approval.

Which AI agent actions should need human approval?

Gate actions that are expensive, irreversible or visible to others: payments and refunds, deleting data, sending emails or messages outside the company, changing permissions, and deploying code. Let read-only tools run freely, and use rules to auto-approve routine low-value writes so reviewers see only the calls that matter.

What happens if nobody approves in time?

The gate applies its timeout action. The safe default is to deny the call, so the agent tells the user it couldn't complete the action. Allowing on timeout only makes sense for low-risk tools. For approvals that may take hours, the run's state must be saved so the agent can resume later.

What is the difference between human in the loop and human on the loop?

With human in the loop, a person decides before each gated action runs. With human on the loop, the agent acts on its own while a person monitors it and can intervene or undo. The first gives more control at the cost of speed; the second scales better but relies on good monitoring and reversible actions.

How do you avoid approval fatigue?

Send fewer, better requests. Auto-approve routine calls with rules, such as refunds under a set amount, and keep humans for large, unusual or irreversible actions. Show reviewers the arguments and context they need, and log every decision with who made it and why.


[07]

Next steps

  • Build it: AI agent human in the loop.

  • Fewer, better approvals: Approval fatigue.

  • Send approvals to Slack or a webhook: AI agent notifications.

  • Check inputs and outputs as well: what is an LLM guardrail?

  • Record every decision: AI agent audit log.

  • All guides on the topic: the human in the loop hub.

  • Reference: Approval in the Promptise docs.

← PreviousApproval Fatigue: Auto-Approve Safe AI Agent ActionsNext lesson →AI Agent Notifications: Webhook and Slack Alerts in Python