Skip to content
Agentic Workflowdocs
v0.9.0Install free

concepts / ai

Action Approval & Untrusted Content

Why model-driven actions cross a user approval gate, and how the gate keeps agents that read the live page safe.

An agent in AWFlow can read the live page. That is the whole point — but it is also the risk. Page content is untrusted input. A page can contain text written specifically to steer whatever model reads it. When that model’s output then drives a real action — a click, a form fill, an HTTP call — a hostile page gains an action primitive: a way to make the agent do something on its behalf.

Action approval is the safeguard. Any time a model’s decision would cause a side effect, the run pauses and shows you the concrete action before it happens. You approve or reject it. Nothing acts without your say-so.

Nodes like Get All Text, Get Accessibility Tree, and Get Structured Data feed page content straight into agents today. The approval gate ensures that even if a page tries to hijack the model, a person still stands between the model’s decision and the real-world action.

flowchart TB
  Page["Untrusted page content"] --> Model["Agent model"]
  Model -->|decides to act| Gate{"Approval gate"}
  Gate -->|you approve| Act["Action runs<br/>(click / request / MCP call)"]
  Gate -->|you reject / timeout| Deny["Action denied<br/>model told, continues without it"]

  class Gate awf-warn
  class Act awf-ok
  class Deny awf-err
  1. The model decides to act. During an agent run, the model calls one of its action tools (for example, Browser Tool or HTTP Request Tool).

  2. The run surfaces the concrete action. An approval card appears (in the run, and in Runs) naming exactly what will happen — “click the ‘Delete account’ button on example.com”, “send a POST request to api.example.com” — with the full address, its query highlighted, and the connection it would use. It names the action, never secret values like passwords, headers, or request bodies. Always allow on this site adds the site to the step’s trusted sites.

  3. You decide. Approve and the action runs. Reject and it never runs — the model is told you declined and continues without it.

  4. Unattended runs wait. When no one is there to answer (a scheduled or background run), the run waits in Runs instead of acting, up to 24 hours. Approving resumes the agent where it stopped; rejecting tells the model the action was declined.

AWFlow has two complementary “wait for a human” mechanisms. They solve different problems:

Live action gate (this page) Wait For Approval node
Gates Each model-driven action, mid-agent A whole step in the flow
Who triggers it The model, when it calls an action tool You, by placing the node in the graph
How long it waits Until you respond (a waiting run: up to 24 h) Indefinitely — survives browser restarts
Where it lives Inside the agent’s reasoning loop As a node with Approved / Rejected outputs

Use Wait For Approval for a deliberate, durable checkpoint you design into a flow. Action approval is automatic and non-optional for the action tools — you don’t add it, it’s always there.

  • You choose how often you’re asked. Each tool step has Ask before a call: Every call (the default for saved and installed workflows), Only calls that change things (the default for a tool you add by hand: reads run by themselves), Skip trusted sites, or Ask me anywhere, even when I’m away. See Steps as AI tools.
  • Some actions always ask. Deleting, and acting as you (sending, posting, creating, submitting a form), ask whatever the setting.
  • Reading untrusted content raises the bar. After an agent has read a page or an API answer in a turn, opening a new site or sending a long or random-looking value asks first (“Asked after reading untrusted content”), and such asks never offer “always”.
  • For a trusted sequence during one run, Approve all remaining for this run skips the rest of the prompts for that run.
  • Secrets stay hidden. Approval prompts name the action and host only; typed values, headers, bodies, and credentials never appear in the prompt or the logs.
Ask Aria