Docs navigation
Guides

Control what integrations can do

Permissions decide which actions of a native integration an agent can take on its own. This guide covers how rules combine and how a person answers an Ask.

Allow, Ask and Deny

Rules decide which of an integration's actions the agent can take on its own. A rule covers a whole app or one action.

RuleWhat happens when the agent calls the action
AllowThe action runs.
AskThe action waits for a person to approve it. See Approving an Ask.
DenyThe action is refused and nothing is sent to the app. The agent is told which rule refused it.
  • A rule on a single action takes precedence over the app's rule, and a rule saved on a task takes precedence over the agent's rule for that task.
  • An action that uses more than one app needs every one of those apps to allow it. Any Deny refuses it, and any Ask makes it wait.
  • When a task was started by another task, the rules of the task that started it also apply. Any Deny in the chain refuses the action, and any Ask in the chain makes it wait.
  • Looking up options for a field or refreshing an action's fields checks your rules, but it never uses up an approval. Running an action, sending a proxy request or uploading a file uses it up.
  • Brainbase checks rules before the app runs anything. Changing a rule affects later calls, even in a running task; it cannot undo an action already sent to the app.
  • Accounts and rules are stored on the agent, not on its runtime. An agent that moves from one runtime to another keeps them.

Approving an Ask

When an action has an Ask rule, the call returns pending and nothing is sent to the app. Brainbase stops the task's current run and the task waits until someone answers. It does not depend on the agent noticing anything.

  1. The agent calls the action. The call returns pending, and the agent is told to stop and wait.
  2. Brainbase stops the run. The task status is Needs info, with a request that names the action, for example slack.slack-send-message.
  3. Someone with access to the task answers the request.
  4. Brainbase starts a new turn and tells the agent the answer. The agent calls the action again, and it runs, or it gets denied.
AnswerWhat it doesWho can choose it
Allow onceLets this one action run. The rule stays Ask, so the next call asks again.Managers and members
Allow for this taskSaves an approval for this action on this task. The next run of the action in this task uses it up.Managers and members
Always allowSaves an Allow rule on the agent, so every future task runs this action without asking.Managers
DenyRefuses the action. A manager's Deny saves a Deny rule on the agent. A member's Deny applies to this task only.Managers and members
  • Each request is answered once. A second answer, or an answer to an old or expired request, is refused and changes nothing.
  • The agent continues only after its run has stopped, and the action never runs before someone approves it.
  • If the task was started by another task whose rules also ask for this action, Allow once covers both. Allow for this task and Always allow save your rule, but the other task's rule still asks, so the task keeps waiting.
  • Stopping the task, or sending it a new message that redirects it, cancels the waiting request. The action does not run and returns cancelled.