Skip to content
Weavz
Menu

Approval Rules

Ask before a particular action runs, or block it. Add more conditions only when you need them.

Connected tools are available by default. Add an approval rule only when you want a person to review a particular action or prevent that action from running. You do not need a policy to get started.

An approval rule chooses when to ask. A pending approval is one request waiting for a decision. Saved inputs are separate: they reuse action values and do not grant access or approve work.

Add a rule

  1. Open Advanced → Approval rules in the dashboard. A Project owner or admin can manage rules.
  2. Choose New approval rule and Ask before an action.
  3. Choose the workspace, configured app alias and action.
  4. Choose Ask before this action or Block this action, then save.

For example, review office_slack.send_channel_message before messages are sent. Other actions keep working under the workspace's existing rules and permissions.

The editor puts conditions, execution sources, reviewers, scope and timeout in Advanced. Leave these alone for a simple action rule. Existing rules with advanced configuration keep that configuration when you edit a name or toggle a rule.

New setup templates do not create rules or saved inputs automatically. The template's optional approval rules require an explicit choice.

Review a request

Open the pending approvals inbox and inspect the action, destination and redacted input. Only the configured reviewers can approve or reject. Being able to view an approval does not make someone a reviewer.

  • Approve allows the specific captured request to continue. It does not grant unrestricted future access.
  • Reject prevents that request from running.
  • An expired request moves to history. Changing a rule does not silently approve old requests.

Code Mode continuation resumes using the returned approval ID. For a direct action request, retry with the same input and idempotency key after approval. Do not create a new key for each poll. Read the Approvals API for the exact response and continuation contracts.

Add a rule from your backend

The public API retains the name approval-policies; SDKs retain approvalPolicies and approval_policies.

typescript
const { policy } = await client.approvalPolicies.create({
  name: 'Review support messages',
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAliases: ['office_slack'],
  actionNames: ['send_channel_message'],
  decision: 'require_approval',
  riskMode: 'always',
  approvers: [{ type: 'org_role', roles: ['owner', 'admin'] }],
  timeoutSeconds: 3600,
  defaultOnTimeout: 'reject',
})

Your backend uses an API key with the required organization scope. Keep it private. End-user MCP tokens cannot change organization rules or mint API keys.

Advanced choices

Use additional conditions only when the action-level rule is too broad. You can narrow by execution source, workspace integration, end user, connection strategy or supported input conditions. Test a rule against a representative request before enabling it. A rule that targets a missing alias or a condition that never matches will not review the intended work.

An organization-wide rule can affect multiple workspaces. Restrict it to one workspace when that is the intended boundary. Existing explicit rules remain in force; permissive defaults apply to unconfigured setups.

If an approval cannot be decided, check the current organization membership and the rule's reviewer list. If an approved request does not continue, verify the original input, idempotency key and approval status rather than approving a second, different request.