# Preview and test your agent in the Playground > Chat with your agent on any channel and change its look and abilities while you watch The **Playground** is where you chat with your QwryAI agent the way your customers will, before and after you deploy it. You switch between channels such as the Chat bubble, Help Page, WhatsApp and Slack, and edit each channel's settings while the preview updates beside them. It's for anyone who builds or reviews the agent. The Playground runs your draft, so changes you've saved but not yet published show up here first. Your live channels keep the published setup until you select **Publish**. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). Open **Playground** from the agent's sidebar. It opens on the **Chat bubble**, with the channel's settings on the left and a live chat preview on the right. > [card] What you can do | /docs/user-guides/chatbot/channels | See your agent the way a visitor will, change its look and abilities in place, and share a preview link with your team. Use the Playground to: * Chat with your agent and check its answers as you change it * Edit each channel's settings, such as its look and its Actions, and see the result straight away * Try a different model or instructions side by side with **Compare** To preview another channel, select the channel name at the top left and pick one from the list, or choose **View all channels** to open [Channels](/docs/user-guides/chatbot/channels). ![The Playground for the Chat bubble, with the Overview, Display, Voice and Actions tabs on the left and the live chat preview on the right.](annotated/01-overview.webp "The Playground: settings on the left, your agent on the right.") ![The channel menu open under Chat bubble, listing other channels such as API and Help Page, with View all channels at the bottom.](annotated/02-channel-menu.webp "Switch channel from the name at the top.") ## Tabs The tabs depend on the channel you're previewing. The **Chat bubble** has: | Tab | What it controls | | - | - | | **Overview** | The agent's **Model** and a **Data sources** summary (training status, size and counts by type), which apply to the whole agent. Below them, the **Actions** this channel can use, its **Instructions**, and the **AI Chat** and **Visibility** switches. | | **Display** | The channel's look and behaviour, grouped into **Content**, **Style**, **Floating bubble**, **Localization**, **Capabilities** and **Typography**. See [Channels](/docs/user-guides/chatbot/channels). | | **Voice** | Voice conversations on this channel. See [Voice](/docs/user-guides/chatbot/voice). | | **Actions** | The Actions this channel can run. | Other channels show a different set of tabs that fits the channel. ![The Display tab open, with the Content, Style, Floating bubble, Localization, Capabilities and Typography groups beside the chat preview.](annotated/03-display.webp "Display: how the channel looks and behaves.") ![The Voice tab open in the Chat bubble Playground.](annotated/04-voice.webp "Voice: talk to your agent from the bubble.") ![The Actions tab listing the Actions this channel can run.](annotated/05-actions-tab.webp "Actions: what the agent can do on this channel.") > [!NOTE] > > **AI Chat** turns your agent's replies off on every channel; messages still arrive in **Inbox** so your team can answer. **Visibility** hides this channel, and no messages reach your agent through it. **Visibility** takes effect straight away; a change to **AI Chat** waits in your draft until you select **Publish**. ### Instructions and global instructions On the **Overview** tab, **Sync with global instructions** decides whether this channel uses your agent's instructions from **Build › Instructions** or its own. Leave it on to keep every channel consistent; turn it off to write instructions for this channel only. ![The Instructions section of the Overview tab with the Sync with global instructions switch turned on.](annotated/06-sync-instructions.webp "Sync with global instructions.") ## Chat as user **Chat as user** starts a Playground conversation as an identified user, so you can see what a signed-in customer would see and test Actions that need to know who the customer is. Select **Chat as user** in the top right, then set: * **User ID:** the identifier the conversation runs under. A test ID is filled in for you, and the button next to the field generates a new one. Enter a real user ID to chat as that user. * **Metadata:** a JSON object with details about the user. It starts with a **name** and **email**; edit them or add your own fields. For example, to check how your agent treats a customer on a paid plan: ```json { "name": "Jane Doe", "email": "jane@example.com", "plan": "Premium" } ``` Then ask "Which features are included in my plan?" and check that the answer fits a Premium customer. ![The Chat as user panel with a User ID field, a Generate a new user ID button, the Metadata JSON with name and email, and the Chat as user button.](annotated/07-chat-as-user.webp "Chat as an identified user.") Select **Chat as user** at the bottom of the panel to start. The button then shows the user's name; while it's set, your Actions see this user. Select the **X** beside it to go back to chatting anonymously. This is the Playground equivalent of the details your site passes with [identity verification](/docs/developer-guides/website-integration/identity-verification). ## Preview Select **Preview** in the top right to open your agent on a page of its own in a new tab. The page is empty apart from your agent, so you see and use it the way a visitor would, outside the Playground's editing layout. The preview runs your live Chat bubble, the one visitors get. If the bubble's **Visibility** is off, QwryAI asks you to turn it on first with **Turn on and preview**, which shows it to visitors straight away. A toolbar at the top of the preview page controls the page around your agent: * **Light and dark background:** switch the page between light and dark to check your colours against both. * **Upload background:** upload a PNG, JPG or WebP image, such as a screenshot of your own website, to sit behind the agent. You see how the agent will look on your site before you deploy it. ![The standalone preview page with its toolbar: the light and dark background buttons, Upload background and the About this preview icon.](annotated/10-standalone-preview.webp "Preview your agent on a page of its own.") ### Share a preview link At first, only members of your workspace can open the preview link. To share it with someone outside your workspace, such as a client or your manager: **1. Open the preview menu** Select the arrow next to **Preview**. **2. Turn on public access** Turn on **Anyone with the link can view**. **3. Copy and send the link** Choose **Copy link**; QwryAI confirms with *Link copied*. Anyone with the link can open the preview without signing in, which makes it an easy way to collect feedback before you deploy. ![The Preview menu with the Anyone with the link can view switch, its note When off, only workspace members can open it, and Copy link.](annotated/08-preview-share.webp "Share a preview with anyone.") Turn the switch off to limit the link to your workspace again. Sharing is set separately for the Chat bubble and Center Stage. ## Deploying Select **Deploy** in the top right to get the code or connection details for the current channel. For the Chat bubble, the menu offers: | Option | What it does | | - | - | | **Website widget** | A floating Chat bubble on any website | | **Website iframe** | The chat window built into a page of your site | | **Shopify** | Adds the Chat bubble to your Shopify store | | **WordPress** | Adds the Chat bubble with the QwryAI WordPress plugin | ![The Deploy menu open under DEPLOY ON, listing Website widget, Website iframe, Shopify and WordPress.](annotated/09-deploy-menu.webp "Deploy on: four ways in.") > [!TIP] > > Open **Preview**, ask your agent a few questions a real visitor would, and check that the answers and the styling both hold up before you deploy. ### Pre-deploy checklist Before you deploy, use the Playground to confirm that: * Your agent answers your most common customer questions correctly, worded the way customers write them. * It gives a clear fallback reply, not a guess, to a question your data sources don't cover. * It stays on topic when you ask about something unrelated to your business. * Escalation works: ask for a person and check that the agent offers a ticket or live chat. * Actions that need a signed-in customer work when you use [Chat as user](#chat-as-user). * The **Display** settings, such as colours, the initial message and suggested messages, look right in **Preview** on light and dark backgrounds. * **Visibility** on the **Overview** tab is on. * You've selected **Publish**, so your live channels and the preview link use the setup you tested. For checks you want to repeat after every change, create [Tests](/docs/user-guides/chatbot/tests): a simulated customer talks to your agent and each conversation is graded automatically. ## Limitations * **Playground conversations are temporary.** They expire 10 minutes after the last message and never appear in **Inbox** or a contact's history. Use real channels, or [Tests](/docs/user-guides/chatbot/tests), for conversations you want to keep. * **Website protections don't apply to you here.** The [Guardrails](/docs/user-guides/chatbot/guardrails) rate limit counts visitors on your website, not your own tests in the Playground. ## Frequently asked questions > [accordion] Why does my agent answer differently in the Playground than on my website? > > The Playground uses your draft, while your website, your other channels and the preview link use the published agent. If you've saved changes without publishing, the two answer differently until you select **Publish**. Other reasons: > > * **Channel instructions:** a channel with **Sync with global instructions** turned off uses its own instructions. Check that you're previewing the channel your customers use. > * **Signed-in customers:** your website may pass customer details through [identity verification](/docs/developer-guides/website-integration/identity-verification). Use [Chat as user](#chat-as-user) to test with the same details. > * **Temperature:** above 0, the same question can be worded differently each time. See [Build](/docs/user-guides/chatbot/build). > [accordion] How do I see which source an answer came from? > > Turn on **Show citations** under **Capabilities** on the **Display** tab. Each reply then links to the sources it drew on, so you can fix or remove the one behind a wrong answer. > [accordion] Do Playground and Compare replies use credits? > > Yes. Each reply uses the credits of the model that wrote it, as in a real conversation. In **Compare**, each pane's reply uses the credits of its own model. See [Models comparison](/docs/user-guides/chatbot/models-comparison). > [accordion] Do Playground conversations show up in Inbox and Analytics? > > No. Playground, Compare and test conversations are temporary: they expire after 10 minutes and never appear in **Inbox**, its counts or a contact's history. > [accordion] Can I test my agent as a signed-in customer? > > Yes. Select **Chat as user**, set a **User ID**, and edit the **Metadata** with the customer's details. See [Chat as user](#chat-as-user). > [accordion] How do I share my agent with someone outside my workspace? > > Select the arrow next to **Preview**, turn on **Anyone with the link can view**, and choose **Copy link**. Anyone with the link can chat with your published agent without signing in. See [Share a preview link](#share-a-preview-link). ## Next steps > [card] Channels | /docs/user-guides/chatbot/channels | Set up each channel your agent runs on, and its display settings. > [card] Build | /docs/user-guides/chatbot/build | Edit the instructions, model and temperature behind every channel. > [card] Actions | /docs/user-guides/chatbot/actions/actions-overview | Give your agent things to do beyond answering questions. > [card] Best Practices | /docs/user-guides/quick-start/best-practices | Proven ways to improve the answers you see in the preview.