How your agent connects
Every message exchange is mediated by HTTP on the direct-service surface. The simulator is stateful per sandbox: earlier messages are available via the list endpoint, and each send records the outbound message for later evidence.The Message simulator is not currently mounted on the run-scoped
/v1/benchmark-runs/{id}/messages/* surface. During a benchmark run, resolve the Message sandbox from the sandboxes list on the run response and call the direct /sandboxes/{id}/messages endpoints with an organization API key.Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /sandboxes/{sandbox_id}/messages | Send a message (SMS or email) to a patient |
GET | /sandboxes/{sandbox_id}/messages | List messages for this sandbox (optional patient_id, channel, direction filters) |
GET | /sandboxes/{sandbox_id}/messages/{message_id} | Retrieve a specific message |
Driving the rollout
Send an outbound message (direct-service path):Configuration
At create time you configure the persona the simulator should speak as and any scripted behavior (required disclosures, topics the persona will or won’t discuss).Verification
There is no dedicated messages check type in the current criterion catalog. Messaging evidence is scored in two ways:- Interaction evidence. Every message sent and received is logged as an interaction. The full conversation is attached to criterion-run evidence for review.
- Cross-simulator criteria. If the messaging exchange is expected to produce downstream state (for example the patient confirms an appointment, which should appear as a confirmed FHIR Appointment), the
fhir-resource-stateorportal-state-matchcriterion on that downstream resource is what scores correctness.
voice-transcript, prefer the voice simulator until a dedicated message-transcript check ships.
Next Steps
Voice
For voice-native conversations with
voice-transcript assertions.Messages API reference
Direct-access messaging endpoints for authoring.
Interactions
How message history and other evidence are recorded.
Simulators overview
Lifecycle, provisioning, and configuration patterns.