# Using the Emulator

The Capri Ai emulator is a powerful tool you can use to "fine-tune" your agents to properly give responses and use the actions that you've set up!

When you first go to the emulator tab in the portal, you will see a list of all previous emulator sessions you've had. You'll be able to sort these sessions using the filters at the top, and you can also select any of these sessions to delete them, edit them, or even continue them! To start a new emulator session, you can just click the "New Session" button in the top right.

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

After choosing to start a new session, you'll be able to choose which agent you like to use, then you'll be taken to a new screen.&#x20;

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

Here, you can name the session to easily find it when sorting through your sessions, save the session, delete the session, or make a new session by using the three dots in the top right, and you can simulate a conversation with the AI here to train it! You can do this by just typing your message to the AI at the bottom, but you can also use the downward arrow next to the send button to change to sending a message as the AI instead! Doing this allows you to train the AI with conversations that contain things like a preset message that you send out. If your agent also has actions that it is set to perform, such as checking a calendar or a spreadsheet, you can also train it for when it should do those actions by clicking the "i" button next to the AI's response.

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

After doing so, you'll see the details of that message where it will show you what actions, if any, the AI took, and you will also have an option to add new actions. Doing so will help train your AI to be more accurate in taking the actions you've assigned it in the agent!

After completing a simulation in the emulator, it's important to make sure to actually save the session, which you can do so by clicking the three dots in the top right!


---

# 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://help.capriai.us/capri-portal/using-the-emulator.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.
