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

# Test a Text Follow-Up After a Call

> Check the text your agent sends after a call.

Use a [Customer Journey](/test/simulation-types/customer-journeys.md) when your voice agent sends a text after a call, for example a booking confirmation.

<video controls muted playsInline preload="metadata" src="https://mintcdn.com/bluejay/dF8I5qGAanSDLxfr/videos/cookbook-call-then-text-walkthrough.mp4?fit=max&auto=format&n=dF8I5qGAanSDLxfr&q=85&s=d5435523e71e45498417233f24987f3e" />

## Before you start

* A voice agent saved with its phone number. See [Phone Number](/integrations/phone-number.md).
* The number must be able to send text messages. Bluejay checks this when you save the agent. If you change the number, save the agent again before you build the journey, or the **SMS** option stays locked.

## Set it up

**1. Add the call step**

[Create a simulation](/test/simulations/create.md#create-a-simulation) for the agent and select the **Customer Journeys** card. Add a step and write the intent the customer has on the call, for example "Book a cleaning for next week". Leave the step on **Call**.

![Journey steps editor with a call step, a second step, and a preview of the Digital Human running them in order](https://mintcdn.com/bluejay/eKcFBkjZX47pI8Ss/images/journey-config-panel.png?fit=max\&auto=format\&n=eKcFBkjZX47pI8Ss\&q=85\&s=b96e3bb31732f74311a2299eb2c4d88a)

**2. Add the text step**

Add a second step and switch it to **SMS**, then set it to **Outbound** so the Digital Human waits for your agent to text first. Write the intent as what the customer does with the text, for example "Confirm the appointment" or "Ask to move it one hour later". One step covers the agent's text and the customer's replies.

![Journey steps with a call step, then a second step set to Outbound and SMS with its intent and success criteria filled in](https://mintcdn.com/bluejay/UqiH6o220FskMm0H/images/cookbook-call-then-text-sms-step.png?fit=max\&auto=format\&n=UqiH6o220FskMm0H\&q=85\&s=996d1125c52b364cc4fd2d3523612d1b)

Describe what the agent's text must do in the success criteria, for example "The agent texts the appointment date, time, and address." The Digital Human ends the text conversation as soon as the agent does this, and Bluejay grades the step against it. If you leave it blank, Bluejay writes one from the intent.

* The Digital Human knows what was agreed on the call, such as the date and time booked, so it replies as the same customer.
* If the **SMS** option is locked, the agent's phone number cannot send text messages. Check the number, then save the agent again.
* If your agent texts from a different number than the one saved on the agent, add **Different phone number** to the step with that number. Bluejay only matches texts from the step's number.

**3. Give the agent enough time**

Add **Response timeout** to the text step if your agent texts more than a few minutes after the call. Without it, the step lasts at most 15 minutes. The timeout covers the whole text conversation, not only the first text, and can be up to 72 hours.

![The plus menu on the SMS step open, listing Delay before this step, Response timeout, Different phone number, and Digital Human stays silent](https://mintcdn.com/bluejay/UqiH6o220FskMm0H/images/cookbook-call-then-text-timeout.png?fit=max\&auto=format\&n=UqiH6o220FskMm0H\&q=85\&s=a36044df38bb67725e415f58db16d7fa)

**4. Generate and run**

Click **Generate Digital Humans**, then run the simulation.

## What to check

![A journey row on the run page that expands into one row per step, each with its own status](https://mintcdn.com/bluejay/eKcFBkjZX47pI8Ss/images/journey-runs-grouped.png?fit=max\&auto=format\&n=eKcFBkjZX47pI8Ss\&q=85\&s=76f0ed2909005fb54f6fee9f7f6d13a9)

* Bluejay grades the call and the text as separate steps, each against its own success criteria. See [Simulation Results](/test/simulations/create.md#read-the-results).
* A text step where your agent never texted ends as **No Answer** with the code `STEP_NO_ACTIVITY`. Check that the agent texts from the number Bluejay expects, then check the timeout.
* If your agent texts while the call is still going, Bluejay keeps the text for the text step. A reply that arrives up to 3 minutes after the text step ends is added to that step and graded again.
* If the call step fails, for example with **No Answer**, Bluejay skips the text step. See [Error codes](/test/simulations/reference.md#error-codes).

## Related

* [Customer Journeys](/test/simulation-types/customer-journeys.md)
* [Phone Number](/integrations/phone-number.md)
* [Create a Simulation](/test/simulations/create.md)
* [Simulation Reference](/test/simulations/reference.md)


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