# Internal Chat

The **Internal Chat** is a live execution, testing, and inspection environment built directly into the Agent Builder.\
It allows you to interact with your Agent using the **exact same configuration, reasoning engine, tools, and provider** that will be used in production.

More than a chat interface, the Internal Chat is designed for **debugging, validation, and deep inspection** of Agent behavior before deployment.

***

### What You Can Do With the Internal Chat

#### Test Real Agent Behavior

The Internal Chat runs your Agent exactly as it would run in production.\
You can use it to:

* Validate how the **Prompt** behaves in real conversations
* Test how **Temperature, Effort, Planning, and Reasoning** affect responses
* Verify how **Conditional Prompts** are triggered
* Adjust tone, flow, and instructions safely before publishing

***

#### Send Rich Inputs

The Internal Chat supports full interaction testing, including:

* Text messages
* **Images**
* **Audio files**
* **Documents and attachments**

This allows you to simulate real-world user behavior and test how your Agent handles different input types.

***

#### Inspect Every Message and Execution Step

Each Agent response can be fully **inspected**.

Using the inspection view, you can:

* See the **execution timeline** of the response
* Inspect every **iteration** performed by the Agent
* View tool calls, inputs, and outputs
* Understand how the Agent reasoned and which resources were used
* Analyze the complete **execution pipeline** that generated the response

This level of visibility makes it easy to debug unexpected behavior and optimize complex flows.

***

#### View Credit Consumption

The Internal Chat displays **credit usage per execution**, allowing you to:

* See how many credits each response consumes
* Compare different models, reasoning modes, or settings
* Optimize cost before deploying to production

> ⚠️ **Important:** Using the Internal Chat **does consume credits**, exactly like production conversations.

***

#### Manage Conversation History

The Internal Chat includes full conversation management tools:

* **Clear the current conversation** to start fresh tests
* Access a **complete history** of past interactions
* Restore previous conversations by date and time

This allows you to revisit older tests, compare behaviors over time, and reproduce specific scenarios.

***

### Why the Internal Chat Matters

The Internal Chat allows you to:

* Iterate safely without affecting users
* Debug complex Agent logic with full transparency
* Validate production behavior before publishing
* Optimize performance, cost, and reliability

It is the **primary tool for building high-quality, predictable Agents** in Zaia Endless.


---

# 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://docs.zaia.app/agents/agent-settings/internal-chat.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.
