> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vatel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Bot

> Connect Cekura to a Vatel agent over WebSocket to run chat evaluations.

**Cekura** drives text-based conversations against your **Vatel AI** agent. You export a WebSocket URL and session secret from the agent’s **Testing** tab, enter them in Cekura, then run an evaluation and review the outcome in Cekura’s results view.

<Warning>
  **Chat testing** exercises the same agent logic you rely on in production, including prompts, branching, **tool calls**, and other “brain” behavior, over a **text** session. You avoid the **cost and setup of full voice** (carriers, minutes, STT/TTS) while still validating how the agent thinks and acts.
</Warning>

## 1. Open Testing on the agent in Vatel

In **Vatel AI**, open the agent you want to evaluate and go to the **Testing** tab.

Generate a **secret** when prompted. You will paste this into Cekura later so Cekura can authenticate to your agent session.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/testing-tab-gen-secret.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=cc9c0c3bcc7b44932492d1afeb9ef2ac" alt="Testing tab and generate secret" width="1472" height="976" data-path="images/monitor/testing/cekura/testing-tab-gen-secret.png" />

## 2. Choose the agent, version, and WebSocket URL

Pick the **agent** and **agent version** you want Cekura to talk to. If you leave the version empty, Vatel uses the appropriate default for that agent.

Copy the **WebSocket URL** shown here. Cekura connects to this endpoint for the chat session.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/select-agent-version-or-leave-empty.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=498316ac04bca1fa529e2bdbd81c01dd" alt="Select agent, version, and WebSocket URL" width="978" height="429" data-path="images/monitor/testing/cekura/select-agent-version-or-leave-empty.png" />

Keep the **secret** from the previous step handy alongside this URL.

## 3. Create an agent in Cekura

In **Cekura**, create a new **agent** that will represent this evaluation setup.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/create-agent-in-cekura.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=63c01a996b64cc5003737e3f9cf550a2" alt="Create an agent in Cekura" width="1480" height="1019" data-path="images/monitor/testing/cekura/create-agent-in-cekura.png" />

## 4. Configure the agent for chat

Open the agent’s configuration and set the channel to **chat** (or the chat bot mode Cekura exposes for text-based runs).

Under the **chat connection** settings, choose the **custom** provider and the **WebSocket** option. Then paste the **WebSocket URL** and **secret** from Vatel into the connection fields.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/config-chat-bot-in-cekura.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=2b47a33630477ec6f9e73d77a35c77b6" alt="Configure chat bot and connection in Cekura" width="799" height="981" data-path="images/monitor/testing/cekura/config-chat-bot-in-cekura.png" />

Save the configuration when you are done.

## 5. Run a chat evaluation

Start a **chat** evaluation run from Cekura so it opens a session against your Vatel agent using the URL and secret you configured.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/run-eval-with-chat.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=f6d1d30d04617c6839c12f23c903fb72" alt="Run evaluation with chat" width="1224" height="971" data-path="images/monitor/testing/cekura/run-eval-with-chat.png" />

## 6. View the results

When the run finishes, open the results view in Cekura to see transcripts, outcomes, and any metrics Cekura surfaces for that chat test.

<img src="https://mintcdn.com/devpro-38b0cd42/1XQxQF1xigWuG6QY/images/monitor/testing/cekura/view-results-in-cekura.png?fit=max&auto=format&n=1XQxQF1xigWuG6QY&q=85&s=ba123f6329c0fd39d19750d0e1950684" alt="View results in Cekura" width="1458" height="980" data-path="images/monitor/testing/cekura/view-results-in-cekura.png" />
