> For the complete documentation index, see [llms.txt](https://docs.zbrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/zbrain-ai-agents/creating-custom-ai-agents/test-and-deploy-agents.md). Agents can also search and read this documentation through its [MCP server](https://docs.zbrain.ai/~gitbook/mcp).

# Test and Deploy Agents

This step ensures that your agent performs as expected before being fully deployed to handle tasks. This phase involves testing the agent with sample data, verifying its functionality, making necessary adjustments, and then deploying it for use. After deployment, you can monitor its performance to ensure it continues to operate effectively.

## **Step 1: Test the Agent** <a href="#step-1-test-the-agent" id="step-1-test-the-agent"></a>

Testing is critical to ensure your agent functions as expected before going live. To begin, navigate to the Test Agent page and follow the steps outlined below to thoroughly test your agent's performance.

1. **Upload a Sample Document**: Provide a sample document for the agent to process, simulating real-world conditions. This allows you to assess its ability to handle actual input data.
2. **Monitor Processing**: Review the reports generated during the test to ensure the agent performs its tasks correctly and efficiently.

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FVCxh5IK84H0svOPq0MQT%2F20.png?alt=media&amp;token=ef4a936c-077b-4cbc-80d9-98d369bc8b95" alt=""><figcaption></figcaption></figure>

3. **Adjust Configurations if Needed**:
   * If the agent’s performance isn’t as expected, click ‘Configure’ to return to the Additional Settings page.
   * Make any necessary adjustments to input sources, output sources, or workflows.

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FPizFe2z1ecMQ6Au3aMHK%2F21.png?alt=media&amp;token=04d30500-9b77-4b2b-9fed-3d03ef381b63" alt=""><figcaption></figcaption></figure>

4. **Repeat Testing**: Continue testing and adjusting configurations until the agent functions flawlessly, ensuring it meets your operational requirements.

## **Step 2: Deploy the Agent** <a href="#step-2-deploy-the-agent" id="step-2-deploy-the-agent"></a>

Once the agent passes the testing phase, it is ready for deployment. To deploy the agent:

1. **Click ‘Deploy Agent’**: At the bottom-right corner of the Test Agent page, click the ‘Deploy Agent’&#x20;
2. **Redirect to Agent Dashboard Page:** After deployment, you will be redirected to the Agent Dashboard Page, where you can monitor the agent’s performance.

## **Post-Deployment Monitoring** <a href="#post-deployment-monitoring" id="post-deployment-monitoring"></a>

After deployment, continuous monitoring is crucial to ensure optimal performance:

1. **Access Uploaded Documents**: Navigate to the Agent Dashboard to review any uploaded documents and verify that they are processed as expected.
2. **Review Activity Logs and Reports**: Check the logs and generated reports to track the agent’s performance and detect any issues.

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FS0L33t9fgK93QPBzJ6el%2F22.png?alt=media&amp;token=e4a08c7c-dc8a-4413-b73e-443f203bc086" alt=""><figcaption></figcaption></figure>

3. **Monitor the Agent’s Performance:** Navigate to the Performance Page to track key metrics. Regularly review these details to ensure the agent is processing tasks efficiently and handling live data effectively.

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FNWANy7ukXnKGZeF3Hd1A%2F23.png?alt=media&amp;token=1dbc2bba-67a2-4574-a565-47e630399fb6" alt=""><figcaption></figcaption></figure>

By thoroughly testing and deploying the agent, you ensure its reliability and smooth integration into your workflow. Ongoing monitoring after deployment helps maintain performance and address issues proactively.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/zbrain-ai-agents/creating-custom-ai-agents/test-and-deploy-agents.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
