# Scout

Scout is the AI assistant in the portal. You ask a question about your data in plain language, and Scout works out which tables to read, runs real queries against them, and answers with the numbers. In Development mode it can also build and change dashboards, pipelines and liveboards for you. This page covers where to find Scout, what it can and cannot do, how its answers are grounded in your data, and its limits.

## Where to find it

- **Scout** in the sidebar opens the full chat page.
- The **Control Center** has an **Ask Scout** box ("Ask your data anything, in plain English."). Type a question there, or pick one of the suggested ones, and Scout opens with it already sent.
- On a dashboard, the **Ask Scout** button in the toolbar opens a side panel that already knows about that dashboard (see [Asking about a dashboard](#asking-about-a-dashboard)).
- In the dashboard chart editor (**Add Widget**, or **Edit** on a widget), the **Ask Scout to create or modify this chart...** box sends your request to Scout. It shows Scout's steps as it works and puts the query Scout writes straight into the editor and the preview. When you edit a chart, Scout sees that chart's query; when you start a new one, it sees the dashboard's other charts. See [Dashboards](/docs/dashboards/overview#in-the-portal).
- The command palette has a **Scout** entry.

**Ask Scout** inside the Engineering Delivery app is a separate assistant: it answers only from the app's own numbers, an admin turns it on in the app's settings, and each person gets a limited number of questions a day. See [Goals, alerts and Scout](/docs/engineering-delivery/goals-alerts-and-scout).

Scout is available to every role by default. Access is controlled by the **Scout** permission, so an administrator can switch it off for a role.

For standing questions that should be asked on a schedule and reported back, use [operators](/docs/operators/overview) instead.

## Asking a question

The chat page opens with "Hi, I'm Scout" and a box that reads **How can I help you today?**. Below it you may see a few suggested questions. These come from your own environment: Scout learns example questions from your dashboards and liveboards (see [How answers are grounded](#how-answers-are-grounded)).

Type your question and press Enter (Shift+Enter adds a new line). While Scout works, **Stop** cancels the turn; you keep whatever answer it had produced so far, marked as cancelled.

Good questions name the thing you care about and a time frame:

- "How many PRs did we merge last month, by team?"
- "Which repositories have the slowest review times this quarter?"
- "What changed in deployment frequency since August?"

## Chat and Development modes

The mode picker next to the input has two settings. Scout remembers your choice in the browser.

**Chat** (labelled *Read-only*) is for questions. Scout looks at your tables, schemas, data sources, dashboards, liveboards and pipelines, runs read-only queries and explains what it finds. It cannot change anything: in this mode it has no tools that write.

**Development** (labelled *Can edit*) adds building. Scout can do everything it does in Chat, and also create and edit dashboards, pipelines and liveboards: it writes the YAML, tests every chart against live data, and publishes.

In Development mode Scout is instructed to show you what it built and wait for your go-ahead before publishing anything, and to confirm before overwriting something that is already live. When it builds a dashboard, a preview opens beside the chat as soon as its charts pass their tests, with a summary of what changed (for example "2 charts added · 1 changed"), **Open dashboard** and **Close preview**.

Scout works with your own access. Each request uses a short-lived token tied to you, so it can only read and change what you can. You may see these tokens, named `solidafy-operator (session)`, under **Settings > API Keys**; they expire after an hour. Keys named `Operator: <name>` belong to [operators](/docs/operators/overview), not to Scout chat.

Scout does not create or edit reports or notebooks, and it does not delete anything.

## What you see in an answer

- **The answer** in plain language. Scout keeps table names and query code out of the text.
- **Answer cards.** Some answers come as a card: an insight with up to six key facts, a single metric with its change, a small bar or line chart, a compact table, a side-by-side comparison of two to four items, or a set of suggested next questions. When a card is shown, the full written answer sits under **Show more**.
- **Follow-up questions** under the latest answer, as one-click chips.
- **Copy to clipboard** for the answer text.
- **Feedback**: **Good response** and **Bad response** buttons on completed answers. Click the active one again to clear it.

### The Activity pane

The **Activity** pane beside the chat lists every step Scout took: each **Query**, **Schema** lookup, **Dashboard**, **Pipeline** or **File** it read or wrote. A query that failed and was retried shows as "Tried a query". Select a query to re-run it and see the result as a table, 50 rows per page, with **Open in Data Explorer** to keep working on it yourself. You can hide, show and resize the pane.

This is where to check Scout's working. If a number looks off, open the query behind it.

## How answers are grounded

Scout does not answer from general knowledge about your company. In each turn it:

1. Looks up your catalog: which tables exist and what columns they have.
2. Reads existing dashboards, liveboards and pipelines when they are relevant, so it can reuse the definitions your team already trusts.
3. Runs read-only DSL queries against your data and answers from the results.

It also draws on **AI context**, a per-environment store of short notes that help it pick the right table and query: notes about tables, example questions with queries that are known to work, and corrections. Example questions are generated in the background from the charts on your dashboards and liveboards, so a new dashboard makes Scout better at the questions it answers. Your **Good response** and **Bad response** ratings change which notes are preferred, and a bad rating can add a correction.

AI context is advice, not data. The numbers in an answer always come from queries run in that turn.

## Asking about a dashboard

The **Ask Scout** panel on a dashboard starts with the dashboard's name, description and every chart's title, tab and query already loaded, so you can ask about what is on screen without explaining it. It suggests questions based on the charts, such as `Summarize the trends in "PR Trend".` or "Give me an executive summary of this dashboard."

The dashboard panel always runs in Chat mode: it answers questions but does not change the dashboard. To change a dashboard, use the full Scout page in Development mode.

## Conversations

**Chat history** lists your recent conversations (the latest 50) with a search box. A new conversation is named after the start of your first question. You can delete a conversation, which removes it permanently. **New** or **New chat** starts a fresh one. The open conversation is part of the page URL, so you can come back to it.

## Limits

- **Steps per turn.** Each turn may take a limited number of steps (queries, lookups, file edits). If Scout runs out, it stops with "Reached the step limit (N steps) before the answer was completed. Try a more specific request."
- **Turn length.** A turn that runs too long is stopped with a message asking you to try again or break the request into smaller steps.
- **Model timeouts.** If the AI model does not respond in time, you see "The AI model did not respond within N s. Please try again."
- **Large results.** Scout reads query results as text up to a fixed size per query, so for big tables it works with aggregates rather than raw rows. Use the Activity pane or Data Explorer to see full results.
- **No attachments.** You can only type text into the chat.

If a request is large ("build me a full engineering dashboard"), split it: ask for the first few charts, check the preview, then ask for more.

## Tips

- Name the metric and the time frame in your question.
- Ask Scout to use an existing dashboard as a starting point: "Using the Delivery dashboard, which team's cycle time got worse this month?"
- When an answer looks wrong, rate it **Bad response**, then tell Scout what was wrong in your next message so it can correct itself in the same conversation. The rating makes Scout less likely to lean on the notes it used for that answer next time.
- Check the Activity pane before you share a number.
