# Playground

The Playground lets you test your Alhena AI agent in a sandbox environment before deploying changes to your live chat widget. Use it to verify guidelines, test agent routing, and experiment with your AI's responses.

## Accessing the Playground

You can access the Playground from two locations:

1. **Dashboard link** - Click "Playground" in your Alhena dashboard navigation
2. **Direct URL** - Visit `alhena.ai/playground/COMPANY_KEY` (replace `COMPANY_KEY` with your company key)

<figure><img src="/files/mo2XWJE1erNvN8G279qt" alt=""><figcaption></figcaption></figure>

## Key Features

### Separate Playground Credits

The Playground uses its own separate credit pool, so testing does not count against your main account usage. If you need additional playground credits, contact the Alhena team to have more added to your account.

### Verify Guidelines

After adding or modifying [guidelines](/docs/ai-configuration/tuning/guidelines.md), use the Playground to confirm they trigger correctly. Try different phrasings of customer queries to ensure your guidelines activate as expected.

### Test Agent Routing

If you've configured [custom agents](https://github.com/Gleen-AI/gitbook-docs/blob/main/dashboard/agents/custom-agents.md), verify that customer queries route to the correct agent. Test edge cases to ensure your routing rules work as intended.

### Preview Changes

Test changes to your AI's personality, data sources, or product recommendations before they affect live customers.

## Best Practices

* **Test edge cases** - Try unusual queries and edge cases, not just the happy path
* **Verify trigger phrases** - If you've set up specific trigger words in guidelines, confirm they work with variations
* **Check handoff behavior** - Test human transfer triggers to ensure escalations work correctly
* **Review response quality** - Assess whether responses match your brand's tone and provide accurate information


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alhena.gitbook.io/docs/dashboard/playground.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
