> ## Documentation Index
> Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wren

> Build, test, debug, and analyze your agent in natural language, from anywhere in Agent Studio.

Wren is PolyAI's natural-language assistant for Agent Studio. Describe what you want, and it reads your project, proposes a plan, and applies changes when you approve. Every edit lands on a branch, not on the live agent.

## Where to find it

Wren is available in two places:

* **Full screen:** the Wren home screen, with [prompt suggestions](/wren/prompting) grouped by **Build**, **Test**, **Ask**, and **Analyze**. Best for starting a build session.
* **Side panel:** open Wren as a side panel from anywhere in Agent Studio to start a new conversation or pick up an existing one without leaving the page you're on. Useful for asking a question or making a quick change while you're working in Flows, Testing, or any other section. Toggle it with <kbd>⌘</kbd>+<kbd>I</kbd> (<kbd>Ctrl</kbd>+<kbd>I</kbd> on Windows).

Both share the same [conversation history](/wren/chats): a chat you start in the side panel is there when you return to the full-screen view, and the other way around.

<Frame caption="Wren's side panel open over Flows, with the page still usable alongside it">
  <img src="https://mintcdn.com/polyai/2HU5oeXXTczVAKux/images/wren/side-panel.png?fit=max&auto=format&n=2HU5oeXXTczVAKux&q=85&s=b16cb7837079de8f6492c740ed4987d0" alt="Wren side panel open on the right of the Flows page, with a new chat ready and the Flows list still visible" style={{ maxWidth: '900px', width: '100%', margin: '0 auto', display: 'block' }} width="1568" height="714" data-path="images/wren/side-panel.png" />
</Frame>

## What you can do

Wren's prompt suggestions are grouped into four intents. They're a good mental model for what to ask.

<CardGroup cols={2}>
  <Card title="Build" icon="hammer" href="/wren/building">
    Create and edit flows, topics, entities, functions, integrations, handoffs, behavior, and agent settings.
  </Card>

  <Card title="Test" icon="flask" href="/testing/simulation-tests">
    Generate simulation test scenarios, write and run test cases, and review results.
  </Card>

  <Card title="Ask" icon="circle-question" href="/wren/prompting#ask">
    Ask questions about your project config, debug production issues, and explore PolyAI concepts.
  </Card>

  <Card title="Analyze" icon="chart-line" href="/wren/analyze">
    Investigate performance patterns, conversation trends, and caller behavior across real calls.
  </Card>
</CardGroup>

### Build and edit

Wren operates on the same building blocks you'd edit by hand: flows, topics, entities, functions, handoffs, behavior, channel settings, and more. It can read your current config, propose changes, and write them to a branch.

[See everything Wren can build →](/wren/building)

Wren is **channel-aware**: on chat projects it pulls in chat-specific guidance (message length, formatting, async turn-taking); on voice projects it stays voice-first. The plan-and-approve workflow is identical across channels.

### Test

Wren can author, run, and manage [simulation tests](/testing/simulation-tests) directly from chat. Ask it to generate test scenarios for a flow, and the cases land in the **Simulation Tests** workspace alongside anything you've saved by hand. It updates test cases as the underlying flows and topics change.

Ask it something like *"Add simulation tests for the refund flow, including the 30-day cutoff"*. See the [prompting guide](/wren/prompting#test) for more examples.

Test cases Wren writes are tagged **Wren Autofix** in your test suite, so you can always tell them apart from cases you wrote yourself.

### Ask and debug

Beyond answering questions about your project ("what does this flow do?", "which functions reference `account_lookup`?"), Wren can debug production conversations. Give it a conversation ID or describe a caller issue, and it walks through:

* Step-by-step timings for each turn
* Latency breakdown and model behavior
* Tool calls and their responses
* Where and why calls dropped or handed off

This is the fastest way to investigate a single problematic call without digging through logs manually. Any conversation ID Wren mentions is clickable. It opens that transcript in a side panel without leaving the chat.

Wren can also look back over your project's own history (past reviews, earlier chats, branch merges, and deployments), so questions like *"what changed last week?"* have real answers behind them.

### Analyze

Ask natural-language questions about your agent's conversations, like *"What's causing handoffs?"* or *"How did my agent perform this week?"*, and get answers backed by transcript sampling across hundreds of real conversations, with charts generated inline.

[Analyze conversations →](/wren/analyze)

## How changes work

### Plan and approve

When you ask for a change, Wren proposes a plan. **Nothing is written until you approve.** Expand the plan to see the full breakdown, or choose **Revise** to send feedback and have it re-planned. Once you approve, every applied edit produces a summary card you can inspect.

### Interactive and Auto

Wren runs in one of two modes, chosen from the composer:

| Mode            | What it does                                               | When to use it                                          |
| --------------- | ---------------------------------------------------------- | ------------------------------------------------------- |
| **Interactive** | Asks questions and waits for your approval before acting.  | The default, and right for most build work.             |
| **Auto**        | Handles the whole task start to finish, then reports back. | Well-scoped work you're happy to review after the fact. |

<Frame caption="Switching between Interactive and Auto from the composer">
  <img src="https://mintcdn.com/polyai/2HU5oeXXTczVAKux/images/wren/mode-selector.png?fit=max&auto=format&n=2HU5oeXXTczVAKux&q=85&s=e61145f0aa5f839a4540019a82755360" alt="Wren mode selector showing Interactive, Auto, and Review options" style={{ maxWidth: '460px', width: '100%', margin: '0 auto', display: 'block' }} width="724" height="372" data-path="images/wren/mode-selector.png" />
</Frame>

In **Auto**, Wren answers its own clarifying questions rather than stopping to ask. It doesn't hide them: the answers it chose collapse into a **Decisions** card you can expand and review. Two things stay off-limits in Auto: Wren will never ask for a secret, and it will never publish a dashboard. If a task needs either, it leaves the work as a draft and tells you what it couldn't finish.

### Branches

The first time you ask for a change, Wren creates a branch automatically and names it after the request, prefixed `wren/`. `Main` stays untouched. Branches are always cut from `Main`, so Wren finishes one piece of work before starting the next.

**Wren never merges or publishes.** When you're ready, you merge the branch back to `Main` yourself and promote it through the normal [Sandbox → Live](/environments-and-versions/introduction) pipeline.

### What it won't do

* **Edit anything other than your draft.** It never publishes or promotes between [environments](/environments-and-versions/introduction), and it can't change `Main` directly.
* **Access other projects.** Wren is scoped to the project you're in.

## Who can use it

Wren is available to everyone with access to a project. What you can do depends on your [permissions](/user-management/access-control-scope):

* **Edit access:** build, modify, test, branch, and apply changes.
* **Read-only access:** ask questions, explore the project, investigate calls, and analyze conversations. Wren won't start a build or write to a branch, and will say so rather than working around it.

Permissions are per area, so a user with edit access to Knowledge but read-only access to Flows gets exactly that from Wren too.

Wren is available on all projects.

## Limits

Wren has a fair-use limit so usage stays predictable. If you reach it, Wren pauses until the next reset and tells you when that is. Manual editing in Studio still works normally.

[Usage and limits →](/wren/usage-and-limits)

## See it in action

New to Wren? The walkthrough runs one build end to end, from first prompt to merged branch, with screenshots at every step.

<Card title="A full session, step by step" icon="route" href="/wren/walkthrough">
  Describe a change, answer the questions, approve the plan, review what changed, merge.
</Card>

## Keyboard shortcuts

| Shortcut                                                                | Action                            |
| ----------------------------------------------------------------------- | --------------------------------- |
| <kbd>⌘</kbd>+<kbd>I</kbd> / <kbd>Ctrl</kbd>+<kbd>I</kbd>                | Open or close the Wren side panel |
| <kbd>⌘</kbd>+<kbd>/</kbd> / <kbd>Ctrl</kbd>+<kbd>/</kbd>                | Start a new chat                  |
| <kbd>⌘</kbd>+<kbd>.</kbd> / <kbd>Ctrl</kbd>+<kbd>.</kbd>                | Show or hide chat history         |
| <kbd>⌥</kbd>+<kbd>Space</kbd> / <kbd>Ctrl</kbd>+<kbd>Space</kbd> (hold) | Push to talk                      |
| <kbd>Enter</kbd> / <kbd>Shift</kbd>+<kbd>Enter</kbd>                    | Send / new line                   |

## Disclaimer

> AI can make mistakes. Please review all responses.

Every change Wren makes appears on your draft just like a manual edit. Inspect it, tweak it, or revert it before promoting to a higher environment.

## Related pages

<CardGroup cols={2}>
  <Card title="Prompting guide" icon="message-pen" href="/wren/prompting">
    Patterns for getting consistently good results.
  </Card>

  <Card title="What Wren can build" icon="hammer" href="/wren/building">
    Every building block Wren can create and edit.
  </Card>
</CardGroup>

<CardGroup cols={3}>
  <Card title="Analyze conversations" icon="chart-line" href="/wren/analyze">
    Ask questions about real calls and get answers backed by transcripts.
  </Card>

  <Card title="Chats and context" icon="comments" href="/wren/chats">
    History, attachments, voice input, and project context.
  </Card>

  <Card title="Usage and limits" icon="gauge" href="/wren/usage-and-limits">
    Your fair-use allowance, reset cadence, and what to do when you hit it.
  </Card>
</CardGroup>
