> ## 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 Dialog Studio.

Wren is PolyAI's natural-language assistant for Dialog 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 Live.

## Where to find it

In Dialog Studio, Wren is available in two places:

* **Full screen:** the Wren home screen, with [prompt suggestions](https://docs.poly.ai/wren/prompting.md) grouped by **Build**, **Test**, **Ask**, and **Analyze**. Best for starting a build session.
* **Side panel:** open Wren as a side panel from anywhere in Dialog 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](https://docs.poly.ai/wren/chats.md): a chat you start in the side panel is there when you return to the full-screen view, and the other way around.

You can also reach Wren from outside Dialog Studio, through the [Wren API](https://docs.poly.ai/wren/api.md) or from [Gemini Enterprise](https://docs.poly.ai/wren/gemini-enterprise.md).

![Wren side panel open on the right of the Flows page, with a new chat ready and the Flows list still visible](https://mintcdn.com/polyai/2HU5oeXXTczVAKux/images/wren/side-panel.png?fit=max\&auto=format\&n=2HU5oeXXTczVAKux\&q=85\&s=b16cb7837079de8f6492c740ed4987d0)

Wren's side panel open over Flows, with the page still usable alongside it

## What you can do

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

> [card] [Build](https://docs.poly.ai/wren/building.md)
>
> Create and edit flows, topics, entities, functions, integrations, handoffs, behavior, and agent settings.

> [card] [Test](https://docs.poly.ai/testing/simulation-tests.md)
>
> Generate simulation test scenarios, write and run test cases, and review results.

> [card] [Ask](https://docs.poly.ai/wren/prompting.md#ask)
>
> Ask questions about your project config, debug production issues, and explore PolyAI concepts.

> [card] [Analyze](https://docs.poly.ai/wren/analyze.md)
>
> Investigate performance patterns, conversation trends, and caller behavior across real calls.

### 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 →](https://docs.poly.ai/wren/building.md)

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](https://docs.poly.ai/testing/simulation-tests.md) 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](https://docs.poly.ai/wren/prompting.md#test) for more examples.

Test cases Wren writes are tagged by area (the flow they cover, **Knowledge**, or **Behavior**) and by kind (**Happy path** or **Edge case**).

### 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, and published Live versions), 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 →](https://docs.poly.ai/wren/analyze.md)

## 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. |

![Wren mode selector showing Interactive and Auto options](https://mintcdn.com/polyai/rGoENk93LqT2UFCu/images/wren/mode-selector.png?fit=max\&auto=format\&n=rGoENk93LqT2UFCu\&q=85\&s=2f436270ccd083383285124073337fa2)

Switching between Interactive and Auto from the composer

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 checks your open Branches. If one already covers the request, it carries on there. Otherwise it creates a new Branch from Live, named after the request and prefixed `wren/`. Either way, Live stays untouched.

**Wren never publishes on its own.** When you're ready, you [publish](https://docs.poly.ai/environments-and-versions/introduction.md#publishing) the Branch to Live yourself with the **Publish** button in the top-right corner. The one exception is an [experiment](https://docs.poly.ai/testing/experiments.md). If you ask, Wren can start, re-split or end one, but it always asks you to approve first. Ending an experiment with your Branch as the winner merges that Branch onto Live.

### What it won't do

* **Edit anything other than your Branch.** It never publishes to Live or moves a Branch to [Staging](https://docs.poly.ai/environments-and-versions/environments.md#staging), and it can't change Live 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](https://docs.poly.ai/user-management/access-control-scope.md):

* **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 →](https://docs.poly.ai/wren/usage-and-limits.md)

## See it in action

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

> [card] [A full session, step by step](https://docs.poly.ai/wren/walkthrough.md)
>
> Describe a change, answer the questions, approve the plan, review what changed, publish.

## 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 Branch just like a manual edit. Inspect it, tweak it, or revert it before publishing.

## Related pages

> [card] [Prompting guide](https://docs.poly.ai/wren/prompting.md)
>
> Patterns for getting consistently good results.

> [card] [What Wren can build](https://docs.poly.ai/wren/building.md)
>
> Every building block Wren can create and edit.

> [card] [Analyze conversations](https://docs.poly.ai/wren/analyze.md)
>
> Ask questions about real calls and get answers backed by transcripts.

> [card] [Chats and context](https://docs.poly.ai/wren/chats.md)
>
> History, attachments, voice input, and project context.

> [card] [Usage and limits](https://docs.poly.ai/wren/usage-and-limits.md)
>
> Your fair-use allowance, reset cadence, and what to do when you hit it.
