In-session auto-pass

Updated at:

In-session auto-pass allows similar calls to run without repeated confirmation in the current conversation. When a call made by a digital employee requires your confirmation, a confirmation card appears in the conversation, where you can add auto-pass rules.

Choose between in-session auto-pass and auto-pass policy

Use in-session auto-pass to reduce repeated prompts in the current conversation, and use an auto-pass policy to skip confirmation over the long term.

Scenario

Recommended option

Reduce repeated prompts in the current conversation

In-session auto-pass, as described in this topic.

Skip confirmation over the long term

An auto-pass policy — a persistent configuration for a digital employee that supports environment agent calls and Alibaba Cloud CLI calls.

For information about configuring environment agent calls, see Environment agent. For information about configuring Alibaba Cloud CLI calls, see Configure Alibaba Cloud CLI.

Three options on a confirmation card

A confirmation card provides the following options:

Button

Meaning

Result

Confirm Execution

Allow only the current call to run.

A confirmation card still appears when a similar call is made again in the current conversation.

Cancel

Reject the current call.

The call is not executed.

Auto-pass

Allow the current call to run and add an auto-pass rule for the allowed scope that you select.

Subsequent calls that match the rule run directly without a confirmation card in the current conversation.

Limits

The following limits apply to in-session auto-pass:

  • Validity — Auto-pass rules are valid only in the current conversation. If you start a new conversation or switch to another digital employee, you must add the rules again.

  • No settings entry — Auto-pass is not a configuration item and has no separate settings entry; you can set it only when a confirmation card appears.

  • Group management — Rules are managed as a group, and there is no option to revoke an individual rule. To revoke one rule, clear all rules first, and then add the rules you need again when the corresponding calls trigger confirmation cards.

  • Read and write operations — Prefix matching does not distinguish between read and write operations.

Add auto-pass rules

When a confirmation card appears, you can add an auto-pass rule in the Select the scope for auto-pass panel. The following table compares the allowed scopes:

Allowed scope

Calls that do not require confirmation

When to use

Risk or limitation

Exact Match

The complete call displayed in the panel.

You want to skip confirmation for only one specific call that you run repeatedly.

You must add a new rule if the parameters or their values change.

Prefix Match

Calls that start with the selected prefix.

You need to repeat the same operation in batches with different parameters, such as processing multiple instances; narrow the prefix to a specific operation.

A shorter prefix allows more calls to run without confirmation and may include write operations.

Important

Prefix matching does not distinguish between read and write operations. If a prefix covers only a tool or product, such as the aliyun ecs * candidate for Elastic Compute Service (ECS) shown in the panel, calls within that scope, including create, modify, and delete operations, may run without further confirmation. Such broad prefixes are not recommended. When you are unsure of the effects of a call or which calls an allowed scope may affect, add rules cautiously and choose a narrower scope rather than a broader one.

To add an auto-pass rule:

  1. On the confirmation card, click the drop-down arrow to the right of Auto-pass to open the Select the scope for auto-pass panel.

  2. Select an allowed scope in the panel and click Select and Execute. The current call runs immediately, and the rule takes effect at the same time.

View and clear auto-pass rules

Action

In the interface

By command

View rules for the current conversation

Click the Auto-approval Rules count entry in the lower-right corner of the input box. The panel lists the auto-pass rules in Prefix Match and Exact Match groups.

Enter /autopass-list and send it. The rules are listed in Prefix Match and Exact Match groups.

Clear all rules for the current conversation

Click Clear All in the same panel.

Enter /autopass-clear and send it. [TODO: confirm - expected output after all rules are cleared]

FAQ

What do I do if a call still shows a confirmation card after I add an auto-pass rule?

Check the following possible causes:

  • The rule is valid only in the conversation in which you added it. If you started a new conversation or switched to another digital employee, add the rule again.

  • All rules have been cleared. Clear All and /autopass-clear remove all rules for the current conversation.

  • The allowed scope does not cover the call. Exact Match covers only the complete call displayed in the panel, and Prefix Match covers only calls that start with the selected prefix.