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

# SMS Simulations

> Simulate SMS conversations with your agent

## Overview

The SMS Simulator enables you to test and evaluate SMS-based AI agents by conducting automated text message conversations. It simulates a real customer interacting with your SMS agent, sending messages and receiving responses just as an actual user would.

![SMS Conversation](https://mintcdn.com/coval-2e18a559/idyn_cCqSDMkxrxS/images/simulations/SMSConversation.png?fit=max\&auto=format\&n=idyn_cCqSDMkxrxS\&q=85\&s=7c7aa9eed30549c00564eb63462e0c9f)

***

## How It Works

1. **Test Case Delivery**: Each test case from your test set is sent as an SMS message to your configured phone number
2. **Agent Response**: Your SMS agent receives the message and responds
3. **Conversation Flow**: The simulator continues the conversation naturally, responding to your agent's messages as a realistic customer would
4. **Completion**: The conversation ends when the test scenario objective is achieved, the conversation reaches a natural conclusion, or the simulation's [time limit](https://docs.coval.ai/concepts/simulations/overview.md#time-limits) is reached
5. **Evaluation**: The complete message exchange is captured and evaluated against your configured metrics

***

## Setup

### 1. Create an SMS Agent

1. Open **Agents** in the sidebar
2. Click **New Agent**
3. Under **Text to Text**, select **SMS**
4. Enter a **Display Name** for your agent (e.g., "Customer Support SMS Bot")
5. Enter your agent's **Phone Number** in E.164 format:
   * Format: `+[country code][number]`
   * Example: `+14155551234` (US number)
   * Example: `+442071234567` (UK number)

![SMS Agent Setup](https://mintcdn.com/coval-2e18a559/idyn_cCqSDMkxrxS/images/simulations/sms-agent-setup-light.gif?s=b4ff0f075877ebe599b5334edf76a6c6)

### 2. Configure Your Agent (Optional)

You can add additional configuration:

* **System Prompt**: Context that will not affect the simulation but allows better context for generating test sets, workflows, and metrics for this agent
* **Attributes**: Custom metadata tags for organizing your agents

### 3. Launch a simulation

1. Open the Simulate page: click **+** beside **Simulated** in the sidebar, or **New Simulation** on the Simulated Conversations page
2. Select your SMS agent
3. Choose a **Test Set** containing the conversations you want to simulate
4. Select **Metrics** to evaluate (e.g., response quality, task completion)
5. Configure run settings:
   * **Iterations**: Number of times to run each test case (default: 1)
   * **Concurrency**: Parallel simulations (default: 5)
6. Click **Launch**

***

## Key Features

* **SMS-Optimized**: Responses are kept short and concise to reflect real SMS communication patterns
* **Full Transcripts**: Every message is captured with timestamps for detailed analysis

***

## Metrics Compatibility

SMS simulations generate text transcripts that are compatible with all standard text-based metrics, including:

* Response accuracy
* Conversation completion rate
* Goal achievement
* Custom LLM-judged metrics

***

## Best Practices

1. **Phone Number Format**: Always use E.164 format for phone numbers (e.g., `+1` followed by 10 digits for US numbers)
2. **Use Test Numbers**: Use a test/staging number rather than production during initial testing
3. **Start with Low Concurrency**: Begin with low concurrency to avoid rate limiting on your SMS provider
4. **Design Realistic Scenarios**: Include varied test cases that cover different user intents and edge cases
5. **Keep Messages Concise**: Your agent's responses should be brief—SMS has character limitations and customers expect short messages
6. **Response Time**: Your agent should respond within a reasonable timeframe for accurate simulation flow

***

## Limitations

* Each conversation ends at your organization's [time limit](https://docs.coval.ai/concepts/simulations/overview.md#time-limits) if it has not finished by then
* Agent must be accessible via standard SMS messaging


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.