> 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/training-and-testing/dialog-simulator/simulate-conversations.md). Agents can also search and read this documentation through its [MCP server](https://docs-conversational-ai.syntphony.com/~gitbook/mcp).

# Simulate Conversations

Run conversations in Dialog Simulator to validate responses, routing, and conversational behavior.

## Run a simulation <a href="#run-a-simulation" id="run-a-simulation"></a>

Access Dialog Simulator from the **simulator button in the bottom-right corner** of the project.

<figure><img src="https://4008706377-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn6zS4HeuuVpRHZEvDiFU%2Fuploads%2Fg7a55zhW3EjbreSqdzjQ%2Fimage.png?alt=media&amp;token=5e5cc526-e08b-43db-980b-0afb4b81dc3c" alt=""><figcaption><p>Opening Dialog Simulator from the bottom-right corner</p></figcaption></figure>

To test a conversation:

1. Open **Dialog Simulator**.
2. Select the channel you want to test, when available.
3. Enter a user message.
4. Send the message.
5. Review the response.

***

## Select the test channel

The **Dialog Simulator** allows you to select and switch channels to validate how the same conversation behaves across different channels.

<figure><img src="https://4008706377-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn6zS4HeuuVpRHZEvDiFU%2Fuploads%2FpnvfZoWGleX2kF7U5GZB%2Fimage.png?alt=media&amp;token=93f351df-602e-4df3-abc6-0380b56bb186" alt=""><figcaption><p>Selecting a channel for testing in Dialog Simulator</p></figcaption></figure>

{% hint style="info" %}
**Note:** Channel matters. The same request may behave differently across channels due to **channel-specific responses, formatting, or flow logic**.
{% endhint %}

Test the same message across channels only when channel behavior is part of the question you need to answer.

***

## Understand the simulator panel <a href="#understand-the-simulator-panel" id="understand-the-simulator-panel"></a>

Dialog Simulator contains the conversation area and supporting tools:

<table><thead><tr><th width="224.5115966796875">Element</th><th>Purpose</th></tr></thead><tbody><tr><td>Message field</td><td>Allows you to type the user message to be tested.</td></tr><tr><td>Channel selector</td><td>Shows or changes the channel used for testing, when available.</td></tr><tr><td>Advanced request</td><td>Allows you to customize the request sent during a simulation by defining headers, metadata, context, and other request information that cannot be provided through the message field alone.</td></tr><tr><td>Show info</td><td>Shows execution details for the simulated interaction.</td></tr><tr><td>Log viewer</td><td>Opens technical logs related to the simulation.</td></tr></tbody></table>

***

## What makes a good simulation <a href="#what-makes-a-good-simulation" id="what-makes-a-good-simulation"></a>

✅ **Good simulations usually:**

* Test one clear expectation at a time;
* Use realistic wording from real conversations;
* Compare the same message across channels only when channel behavior matters.
* Change one element at a time. If you change the message, channel, and context together, the result is harder to interpret.

❌ **Avoid these common mistakes:**

* Testing with internal component names instead of user language;
* Changing multiple variables at once;
* Jumping to logs before checking the basic execution path.

***

## Test effectively <a href="#test-effectively" id="test-effectively"></a>

Use realistic user messages and validate **one expectation at a time**. Changing the message, channel, and context simultaneously can make results harder to interpret.After each test, check:

1. **Response:** Is the user-facing answer correct?
2. **Route:** Did the request reach the expected Flow, AI Agent, or source?
3. **Context:** Did the channel or request context influence the result?
4. **Investigation:** Do you need Show Info, Advanced Request, or Log Viewer?

***

## Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

| Situation                                                     | Possible cause                                               | What to do                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The response is not the expected one.                         | The request followed a different path than expected.         | Review the response first, then inspect [**Show info**](https://docs-conversational-ai.syntphony.com/training-and-testing/dialog-simulator/show-info.md) and [**Log viewer**](https://docs-conversational-ai.syntphony.com/training-and-testing/log-viewer.md). |
| The correct component was triggered, but the answer is wrong. | Routing is correct, but the returned content needs review.   | Check the generated response, the associated Knowledge source, and the Prompt instructions. If the content is still unexpected, evaluate whether the response may have been influenced by hallucinations.                                                       |
| The behavior changes across channels.                         | The selected channel affects the returned answer or context. | Re-run the same test in the intended channel and compare the result.                                                                                                                                                                                            |
| The chat input is not enough to reproduce the issue.          | The scenario depends on headers or request context.          | Use [**Advanced request**](https://docs-conversational-ai.syntphony.com/training-and-testing/dialog-simulator/advanced-request.md).                                                                                                                             |
| The issue still is not clear after Show info.                 | The problem depends on deeper execution detail.              | Open [**Log viewer**](https://docs-conversational-ai.syntphony.com/training-and-testing/log-viewer.md).                                                                                                                                                         |


---

# 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-conversational-ai.syntphony.com/training-and-testing/dialog-simulator/simulate-conversations.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.
