# Auto-select AI··Task operations

import { Steps } from "@astrojs/starlight/components"

On an **AI··Task** **Tools** service, **Auto select operations** reads the step prompt, task description, and tool
catalog, then checks the operations that best fit the job. You review the selection in the same panel and can change
checks before you save. This does not run the flow.

## When to use

- The integration catalog exposes many operations and you want a starting set aligned with the AI··Task prompt.
- You already added a service on the **Tools** tab and need help narrowing which operations the model may call.
- Prefer [AI··Task: A simple guide](../ai-task-a-simple-guide/) when you still need the full prompt, model, and memory
  setup before you attach tools.

Before you begin, open a flow in the designer, add an **AI··Task**, and write enough prompt context that the suggestion
has something to match (for example the IP or indicator you investigate). Enable the integration and attach a credential
on the **Tools** tab—the button stays disabled until a service tool is configured.

## Guide

### Add the service on Tools

Attach the integration you want the model to call. Auto-select runs per service block on **Tools**, not for the whole
step at once.

<ol>
<li>

**Open Tools.** Select the AI··Task, then open the **Tools** tab.

</li>
<li>

**Add a service.** Choose an integration (for example **IP Info** or **VirusTotal**), pick a credential, and open the
service so its operations list is visible. See [AI··Task: A simple guide](../ai-task-a-simple-guide/) for the full tools
workflow.

</li>
</ol>
### Run Auto select operations

The control sits above the operation checkboxes for that service.

<ol>
<li>

**Run Auto select operations.** Click **Auto select operations**. Studio shows a spinner while the suggestion runs.

<div class="docs-screenshot-compact">

![AI··Task Tools tab with a service open and Auto select operations visible](./assets/auto-select-tools-tab-button.png)

</div>

</li>
<li>

**Review checks.** When the run finishes, Studio checks the suggested operations. Clear or add checks if the job needs a
different scope.

<div class="docs-screenshot-compact">

![Same service after auto-select with multiple operations checked](./assets/auto-select-operations-checked.png)

</div>

</li>
<li>

**Save implicitly.** Checks apply in the inspector; save or deploy the flow when you are done editing.

</li>
</ol>
If the suggestion fails, dismiss the error and pick operations manually. The flow is unchanged until you check
operations yourself.

## Example

A security flow **Check a suspicious IP** uses step **Assess IP risk** to look up a source IP and summarize risk for an
analyst.

1. **Write the prompt.** In **Input**, describe the IP variable and the summary you want (location, reputation, or
   related indicators).
2. **Add IP Info or VirusTotal on Tools.** Attach a credential in the **Docs** environment (or your own test
   environment).
3. **Run Auto select operations.** Keep checks that match lookup and reporting; uncheck operations you do not want the
   model to call.

## Keep in mind

- Auto-select uses the current **Input**, **Instructions** (when shown), and the service catalog. Update the prompt
  before you run it again.
- The model still chooses **when** to call an allowed operation at run time—auto-select only sets which operations are
  allowed.
- Large catalogs can take a few seconds; wait for the spinner to finish before you change checks.

## Related

- [AI··Task: A simple guide](../ai-task-a-simple-guide/)
- [AI··Task: Prompt guidelines](../ai-task-prompt-guidelines/)
