> For the complete documentation index, see [llms.txt](https://docs-conversational-ai.syntphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-conversational-ai.syntphony.com/eva-3.3.1-1/using-eva/testing-virtual-agents/test-a-virtual-agent.md).

# Test a virtual agent

After you train your intents in eva NLP (or use the ones from other NLPs), you can see how your dialogues will work in a simulated chat. The virtual agent simulator allows you to test your virtual agent by checking if its intents, entities, services and other cells are behaving properly. To access the simulator, click the balloon button in the lower right corner.

![Virtual agent Simulator Button on the lower right corner](https://gblobscdn.gitbook.com/assets%2F-MNuMuHVlHgsqK4L1Tp4%2F-MXlRX1zkh8TDiff3HUM%2F-MXl_9go4-j4rYaJTJlZ%2F77%20Screen%20-%20Bot%20simulator%20button%20on%20the%20lower%20right%20corner.png?alt=media\&token=0eae7578-ad0b-4a37-9abb-e487e0b7b340)

​

A modal will open for you to choose a channel.

![Channel Selection](https://gblobscdn.gitbook.com/assets%2F-MNuMuHVlHgsqK4L1Tp4%2F-MXlRX1zkh8TDiff3HUM%2F-MXl_MetNtBOLKc4kwNn%2F78%20Screen%20-%20Channel%20selection.png?alt=media\&token=6f54b365-c3e2-4569-a3fe-9f939020fe67)

The virtual agent simulator will show you the last trained version (if it's using eva NLP) or the last loaded intents (if the virtual agent uses any other NLP).

Not all the eva functionalities won't work on the simulator. It doesn't mean they won't work in a flow, they just will not be shown on the simulator.

Line breaks in answers will be rendered as a space in the virtual agent simulator.

For example, the following answer,

`“Thank you for ordering the tomato soup.`\
`We will serve it in a second.`\
`Enjoy your meal.”`

would appear like this in the virtual agent simulator:

`“Thank you for ordering the tomato soup. We will serve it in a second. Enjoy your meal.”`

![Virtual agent simulator window](https://gblobscdn.gitbook.com/assets%2F-MNuMuHVlHgsqK4L1Tp4%2F-MXlRX1zkh8TDiff3HUM%2F-MXl_U3jodgQUOJqF6tF%2F79%20Screen%20-%20Bot%20simulator%20window.png?alt=media\&token=05731936-4a22-4255-91fe-ec6bda2dfa83)

You now can write any phrase to see if your flows work properly. If you want to see which intent a sentence leads to, check the “Show intents” box.

![Show Intents Box](https://gblobscdn.gitbook.com/assets%2F-MNuMuHVlHgsqK4L1Tp4%2F-MXlRX1zkh8TDiff3HUM%2F-MXl_eCB2lGDh9XQ2mOq%2F80%20Screen%20-%20Show%20intents%20box.png?alt=media\&token=0a31e359-d9ce-43c2-b685-3948bca1882b)

Using the virtual agent simulator, you can test every training. For example, consider the following soup ordering flow:

![Partial Soup Ordering Flow](https://gblobscdn.gitbook.com/assets%2F-MNuMuHVlHgsqK4L1Tp4%2F-MXlRX1zkh8TDiff3HUM%2F-MXl_tdgVgOLkUaMMIUf%2F81%20Screen%20-%20Partial%20soup%20ordering%20flow.png?alt=media\&token=37128b1c-eddd-4bb4-b723-1050103e5efb)

After this flow is trained, it becomes the following dialogue:

![Dialogue on the virtual agent simulator](https://gblobscdn.gitbook.com/assets%2Fdocs%2F-MX2My87xhmfrzTA_H7I%2F-MX2NXMB2WT5jLEodseT%2F85.png?alt=media)

The simulated conversation shows the intent to which the sentence was tied to. In this case, the first intent was “soup1” and the second, “cold”.

![Sentences and Intents](https://gblobscdn.gitbook.com/assets%2Fdocs%2F-MX2My87xhmfrzTA_H7I%2F-MX2NXMCt53YaLMDt-5U%2F86.png?alt=media)

##


---

# 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 dynamically by asking a question.

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

```
GET https://docs-conversational-ai.syntphony.com/eva-3.3.1-1/using-eva/testing-virtual-agents/test-a-virtual-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
