Overview
The Playground is your testing environment for fine-tuning your agent’s behavior before deploying it to your website. Here you can modify the system prompt, select from pre-built templates, and see how your agent responds to questions in real-time.Accessing the Playground
Navigate to the Playground by selecting your agent from the sidebar and clicking on Playground in the agent menu. The Playground opens with a split-view layout:| Panel | Purpose |
|---|---|
| Left Panel | Configuration controls for prompt editing and embed code |
| Right Panel | Live chat widget preview for testing |
System Prompt (Instructions)
The system prompt, also called “Instructions,” defines how your agent behaves, responds, and interacts with users. It’s the core configuration that shapes your agent’s personality and capabilities.What the System Prompt Controls
Your system prompt influences:- Personality: Friendly, professional, technical, casual
- Knowledge boundaries: What topics the agent should or shouldn’t discuss
- Response format: Length, structure, use of bullet points or paragraphs
- Greeting behavior: How the agent welcomes users
- Escalation rules: When to suggest contacting human support
- Language and tone: Formal vs informal communication style
Editing the Prompt
The Playground provides a text editor for modifying your agent’s system prompt:- Locate the Instructions (System prompt) section in the left panel
- Edit the text directly in the textarea
- Click Save to apply your changes
Changes are not saved automatically. You’ll see the Save button enabled when you have unsaved modifications. A confirmation dialog will appear if you try to navigate away with unsaved changes.
Fullscreen Editor
For longer prompts or more comfortable editing, use the fullscreen editor:- Click the Open in Editor button below the textarea
- Edit your prompt in the expanded modal view
- Click Apply Changes to return to the main view
- Click Save to persist your changes
Prompt Templates
Templates provide pre-configured system prompts optimized for common use cases. They’re a great starting point that you can use as-is or customize further.Template Categories
The template selector organizes prompts into three groups:| Category | Description |
|---|---|
| Base Instructions | The default system prompt recommended for most use cases. Provides balanced, helpful responses. |
| Templates | Pre-built prompts optimized for specific scenarios (customer support, sales, technical help, etc.) |
| Custom prompt | Your own custom instructions, either written from scratch or modified from a template |
Using Templates
Open Template Selector
Click the dropdown menu in the Instructions section to view available templates.
Select a Template
Choose a template from the list. The prompt textarea will immediately update with the selected template’s content.
Customize (Optional)
Modify the template text to fit your specific needs. The selector will automatically switch to “Custom prompt” once you make changes.
Reset to Default
If you’ve made changes and want to start fresh, click the reset button (circular arrow icon) next to the template selector. This restores the Base Instructions template.Template Auto-Detection
The Playground intelligently detects when your instructions match a known template:- If your text exactly matches a template, that template is shown as selected
- If you modify any character, the selector switches to “Custom prompt”
- Selecting “Custom prompt” restores your previously saved instructions
Live Widget Preview
The right panel displays a fully functional preview of your chat widget. This is the same widget your website visitors will see.Testing Your Agent
Use the preview to test your agent’s responses:- Type a question in the chat input
- Send the message to see how your agent responds
- Evaluate the response quality and accuracy
- Adjust the system prompt if needed
- Repeat until satisfied with the results
What to Test
| Test Category | Example Questions |
|---|---|
| Core knowledge | Questions your agent should definitely answer from your sources |
| Edge cases | Ambiguous or unusual questions |
| Out of scope | Topics your agent shouldn’t discuss |
| Conversation flow | Multi-turn conversations with follow-up questions |
| Tone and personality | Check that responses match your desired communication style |
Embed Code
The Playground provides the embed code snippet you’ll use to add the chat widget to your website.Getting the Embed Code
The embed code section displays two script tags:Copying to Clipboard
- Locate the Embed Code section at the bottom of the left panel
- Click the copy button (clipboard icon) in the top-right corner of the code block
- The code is copied to your clipboard, ready to paste into your website
The embed code includes your agent’s unique public key. This key identifies your specific agent and loads its configuration.
Where to Add the Code
Add the embed code to your website’s HTML, typically in one of these locations:| Location | Best For |
|---|---|
Before </body> | Most websites - ensures page loads first |
Before </head> | Sites that need widget available immediately |
| Through tag manager | Sites using Google Tag Manager or similar |
Saving Changes
The Playground tracks all modifications to your agent’s configuration.Save Button States
| State | Appearance | Meaning |
|---|---|---|
| Disabled | Grayed out | No changes to save |
| Enabled | Active | Unsaved changes exist |
| Saving | ”Saving…” text | Save in progress |
| Saved | ”Saved” text | Changes successfully saved |
Unsaved Changes Warning
If you try to navigate away with unsaved changes:- A confirmation dialog appears
- Choose Leave without saving to discard changes
- Choose Save and leave to save first, then navigate
- Choose Cancel to stay on the page
Best Practices
Start with a template
Start with a template
Begin with the Base Instructions or a relevant template. They’re already optimized for common use cases and provide a solid foundation.
Test incrementally
Test incrementally
Make one change at a time and test before making additional modifications. This helps you understand exactly what effect each change has.
Keep a testing checklist
Keep a testing checklist
Maintain a list of questions to test after each change. Include your most common customer questions and known edge cases.
Be specific in prompts
Be specific in prompts
Vague instructions lead to inconsistent responses. Instead of “be helpful,” specify “provide step-by-step instructions when explaining how to do something.”
Set boundaries
Set boundaries
Explicitly tell your agent what topics to avoid and when to suggest contacting human support. This prevents inappropriate responses.
Reference your knowledge base
Reference your knowledge base
Remind your agent in the system prompt that it should answer from the provided knowledge base. This improves accuracy and reduces hallucination.
Example System Prompts
Customer Support Agent
Technical Documentation Assistant
Sales Pre-Qualification Agent
Troubleshooting
Changes not reflecting in preview
Changes not reflecting in preview
The preview widget may use cached responses. Try:
- Refresh the page
- Clear the conversation in the widget
- Ask a completely new question
Save button stays disabled
Save button stays disabled
Template not loading
Template not loading
If templates don’t appear in the selector:
- Refresh the page
- Check your internet connection
- Contact support if the issue persists
Agent gives incorrect responses
Agent gives incorrect responses
If responses are inaccurate:
- Check that your knowledge base contains the relevant information
- Review your system prompt for conflicting instructions
- Try being more specific in your prompt about response accuracy
- Add relevant Q&A sources for common questions
Next Steps
Add Knowledge Sources
Expand your agent’s knowledge by adding more web pages, text, and Q&A content.
Customize Appearance
Match your agent’s visual style to your brand with colors, backgrounds, and widget settings.
Deploy to Website
Learn how to embed your agent on your live website.
View Conversations
Monitor how users interact with your deployed agent.