Skip to main content
Version: Studio 2.2.32

Approval modes and rules

For people who run chats and Flows that ask too often, or that must never go unattended without a rule, and for the administrators who set how far that can go. Choose how a chat or a Flow asks, add rules for what you already trust, and see every automatic decision afterwards.

This page describes Studio 2.2.16. Studio 2.2.12 asks as described in Files, previews and approvals.

The two modes​

Each chat and each Flow is in one of two modes. The choice is called Approval mode.

ModeWhat it means
Ask"Ask: approval rules apply, and anything they do not cover asks." This is the mode every existing chat and Flow stays in.
Don't ask"Don’t ask: nothing asks, except what is listed below." The list is What still asks.

Your Organisations administrator sets how far a deployment can go with Approval modes allowed (Runtime limits and service sizing). Where the deployment does not allow Don't ask, the choice is off and reads "Your administrator does not allow Don’t ask on this deployment."

What Studio decides, in order​

When an agent's code or a connector tool call could ask, Studio decides in this order and stops at the first step that applies:

  1. The action is on your organisation's Never allowed list: refused, and the agent is told "Your organisation never allows this" with the action's name.
  2. The action is on your organisation's Always needs a person list, or the connector tool is set to Always asks: it asks. Nothing below can allow it.
  3. Studio could not check the whole request, or could not read your organisation's approval policy: it asks. Nothing below can allow it.
  4. The chat or Flow is on Don't ask, and the deployment allows it: allowed.
  5. A Flow approval rule matches, and the deployment lets Flows keep rules: allowed.
  6. A rule you added for this run matches: allowed.
  7. Otherwise it asks, as before.

The actions are Change data on a connection, Delete from connected storage, Send a message, Send data outside your connections, Run code Studio cannot finish checking and Use a connector tool.

Step 3 holds under Don't ask too. Code that Studio could not finish checking, or whose every action and target Studio could not list, asks even on Don't ask. No rule and no Allow it under When nobody answers can allow it, and neither Allow similar in this run nor Always allow in this Flow is offered on it. A request that covers more than one action together is judged on all of them: your organisation's lists apply if any one of them is named, and a rule allows it only when rules cover every action and every target.

Allow similar in this run, and always allow in this Flow​

When a request can be remembered, its card and its Inbox item offer two more choices after the main Allow:

  • Allow similar in this run. The rest of this run allows the same kind of action on the same target without asking. It is offered on every deployment.
  • Always allow in this Flow. Adds an approval rule to the Flow. It is offered on a Flow's asks where your administrator allows Flows to keep rules.

Both choices are offered to anyone who can decide the ask. A Flow can be edited by its owner, and on a governed deployment by any Studio user. If someone who cannot edit the Flow chooses Always allow in this Flow, the request is still allowed and the rest of the run allows similar requests, but no rule is added to the Flow.

Neither choice is offered for an action your organisation always asks about, for a tool set to Always asks, or for a request Studio cannot match to one action and a target, such as code Studio cannot finish checking or a message to a recipient.

A line under the buttons says what "similar" covers, for example "Covers sending data to example.com in this run." Where both choices are offered it reads "in this run, or in every run of this Flow." Similar means the same action, the same kind of target and the same target: for a host, the host itself or any of its subdomains; for a connection, the same connection; for storage, the same bucket with a path under the rule's path; for a connector tool, the same tool on the same connector. A request about several targets is covered only when every target is.

After the choice, the step reads "Allowed similar in this run" or "Always allowed in this Flow", with who decided.

Set a Flow's approvals​

Open a Flow. Its page has a section Approvals, after Where finished runs open. It is a setting on the Flow, not on a version, and it is not in Flow settings in the editor: a change applies at once to every new run, with no version to save. The section reads "Choose what asks for a decision in this Flow’s runs. Changes apply at once to every new run."

PartWhat it holds
Approval modeAsk or Don't ask, as above.
What still asksA list of what asks even under Don't ask: actions your organisation always asks about, for example "Send a message (set by your organisation)"; connector tools the Flow's agents can use that are set to Always asks, for example "AlphaAgent Docs: Search the AlphaAgent docs (Always asks)"; and steps set to ask before they start or for their result, for example "@post-update asks before it starts" or "@post-update asks you to review its result". Actions your organisation never allows read "Never allowed: Delete from connected storage". With nothing to list it reads "Nothing else asks."
Approval rulesEach rule shows the action, the target, "Set by name · date" and Remove. Remove takes the rule away at once. With none it reads "No approval rules. Choose Always allow in this Flow on an ask to add one." Where the deployment does not let Flows keep rules, the list is replaced by "Your administrator does not allow approval rules on this deployment."
When nobody answers"Wait" a number of minutes, "then" Don't run it or Allow it. The minutes run from 0 up to the deployment's approval wait, which is 30 minutes unless your administrator sets another: every minute up to an hour, then every five. 0 reads "Don’t wait": the ask is decided at once. Allow it is off where the deployment does not allow it, with the reason "Your administrator does not allow runs to go ahead when nobody answers on this deployment."

A change to Approval mode or When nobody answers takes effect when you choose Save. Undo change puts back what was saved, and after a save the section reads "Saved. New runs use these approval settings."

When you turn on Don't ask, Studio saves what will still ask and shows it before anything runs. If that list later differs, a notice reads "What still asks has changed since Don’t ask was turned on." and lists the differences under Now asks and No longer asks. When your administrator lowers what the deployment allows below what the Flow saved, the settings are kept but not applied, and a notice reads "Your administrator has limited approvals on this deployment, so runs ask as usual."

What each level of Approval modes allowed turns off​

LevelApproval modeApproval rulesWhen nobody answers
Ask; no Flow rulesDon't ask is off.Replaced by the reason. Allow similar in this run still works.Allow it is off.
Ask; Flows may keep approval rulesDon't ask is off.Kept and applied.Allow it is off.
Don't ask allowedBoth modes.Kept and applied.Both choices.

Your organisation's lists apply at every level.

When nobody answers​

A Flow that never chose a wait keeps today's behaviour: it waits for a person, and an ask nobody decides is not run when the deployment's approval wait ends. The section shows that as the full wait and Don't run it. A Flow that chose one decides in one place, so an unattended run no longer waits on an ask: after the minutes you set, the ask is not run, or allowed when you chose Allow it and the deployment allows it. An action your organisation always asks about, and a tool set to Always asks, are never allowed this way, and neither is a request Studio could not check in full. Chats keep the deployment's wait. A request that was not run because nobody answered reads "Not run: nobody answered"; one that was allowed reads "Allowed when nobody answered".

A run a person starts directly, rather than through the Flow, does not use the Flow's mode, rules or wait. Your organisation's lists and any rule added for that run still apply.

Chats​

In a conversation, Chat settings › Approval settings in the Action Bar opens a window, titled Approval settings, with the same Approval mode choice and the What still asks list for your organisation's actions and the connector tools. It reads "Choose what asks for a decision in this chat." Choose Save, or Cancel. A chat's setting applies from its next turn: "Saved. The next turn in this chat uses this approval mode." A chat has no steps, so its list has none. The chat respects your setting and your administrator's approval policy every time: where they say to ask, it asks, and the card says why in plain words, for example "Your approval settings ask before starting work". Where they do not, it asks only when it matters: before anything with effects outside your own workspace, such as sending or writing to a connected system, and before work over the time or cost budget. Writing, analysis, research and making files in your own workspace just start. In Ask, any plan with steps asks, including a plan of one step. You can change a plan in your own words before or during the work, for example "skip the chart" or "only do the first two", and approving ends the planning (Follow a run). If Studio cannot read the chat's mode, the turn asks.

Always asks on a connector tool​

The owner of a connector can set a tool to Always asks, which asks even with Don't ask on (MCP server). Your organisation can name actions that always need a person, or are never allowed, on every deployment (Approval policy).

Where it is recorded​

  • Lens Audit has a section Allowed by approval rules with each request decided without asking anyone, and where the decision came from (Lens Audit), and Lens Timeline shows the same entries.
  • An approval that no person decided reads "Allowed by an approval rule", "Allowed when nobody answered" or "Not run: nobody answered" in place of a person's name.
  • Organisations Audit has an Approvals tab with every ask outcome, who or what decided it, and every change to an approval setting (Audit).

Notes​

  • Decisions made by a rule or by Don't ask do not create an Inbox item. An ask that waits for a person can appear in the Inbox first; if nobody answers, it moves to Done, and the step and its approval history say whether it was allowed or not run because nobody answered.
  • A run keeps the settings it started with when it resumes.
  • An address that the code only works out while it runs, from an environment variable or from input on the command line, does not ask in any mode.
  • Where Studio has never been able to read your organisation's approval policy, it refuses nothing and allows nothing automatically: Don't ask, rules and Allow it all ask instead, until the policy can be read.