# Building a texting agent

> Every section of the texting agent editor — the pathway, the number, conversation timeout, follow-ups, and post-message analysis.

Source: https://docs.cleartalk.ai/docs/texting/texting-agents

A texting agent is created under **My Agents → Create Agent → Texting**. The form is shorter than the voice ones, because texting removes a whole category of decisions: no voice, no speed, no interruption handling, no transfer numbers.

<Summary
  items={[
  "Texting agents are pathway-driven only — pick or build a pathway first.",
  "The number picker only offers your own A2P-registered numbers.",
  "Conversation timeout decides when a thread counts as gone quiet. It defaults to 30 minutes.",
  "Tools and a knowledge base attach to the pathway the agent runs, not to the agent form itself.",
]}
/>

## How the editor is laid out

The texting editor has the same shape as the voice ones. **Agent Information** and **Pathway** are required; **SMS Settings**, **Follow-Up Settings** and **Post-Message Analysis** are optional. Each row shows a one-line summary — the number it sends from, the pathway it follows, how many follow-ups are scheduled — and opens in place when you click it.

In the [new editor](/docs/agents#the-new-editor-and-the-classic-editor), two cards on the right summarise the rest: **Texting settings** (the timeout, follow-ups and their schedule) and **Sending from** (the number, with **Change number**). A **Test chat** button at the top runs your pathway by text — no real texts are sent, but webhooks, tools and bookings in the pathway run for real. It waits until a pathway is picked.

## Start with the pathway

<Callout title="There is no plain-instructions option here">
  Voice agents let you choose between plain-English instructions and a pathway. Texting agents don't — they are **pathway-driven by design**. If you've only ever written agent instructions, build a pathway first and come back. [Pathways](/docs/pathways) covers it from an empty canvas.
</Callout>

Texting suits pathways better than voice does, for a reason worth understanding: people reply to texts hours later, in fragments, out of order, and often about something else entirely. A pathway gives you an explicit place to handle each of those cases. It also means you can [test the conversation](/docs/pathways/testing) with simulated leads before a real one sees it.

Two details are decided for you and aren't shown on the form: a texting agent always runs its pathway's **published version**, and always starts from the **first step**. There's no staging-version option the way there is for voice.

## Agent Information

**Agent Name** is internal — leads never see it. Name it after the job, not the channel: "Inbound Lead Qualifier" beats "SMS Agent 2".

**Phone Number** is the number your texts come from. The dropdown only lists numbers that are on your own carrier account, SMS-capable, and A2P-registered — each one carries an **A2P** badge. If the list is empty or you see a warning instead of a dropdown, registration isn't finished; the link in that warning takes you to **Telephony → Compliance**.

<Screenshot
  src="/img/texting-agent-form.png"
  alt="The Create Texting Agent form: Agent Information and Pathway under Required, SMS Settings, Follow-Up Settings and Post-Message Analysis under Optional, and Texting settings and Sending from cards on the right."
  caption="A new texting agent, before anything is set."
  redactions={[{ x: 3.4, y: 93.7, w: 11.6, h: 4.4, reason: "Account name and email hidden" }]}
  pins={[
  { x: 96.6, y: 29, from: "right", at: 102, label: "The setup checklist tracks the two required sections. The three optional ones sit below them." },
  { x: 21.2, y: 55.2, from: "left", at: -2, label: "Texting agents are pathway-driven. There's no plain-instructions option to switch to." },
  { x: 96.6, y: 81.3, from: "right", at: 102, label: "Sending from is the number your texts come from. It reads Not set until you pick one." },
]}
/>

On an account that has finished [registration](/docs/playbooks/texting-approval), the same field is a dropdown instead:

<Screenshot
  src="/img/texting-number-picker.png"
  alt="The Phone Number dropdown on the Create Texting Agent form, open and listing sixteen numbers, each with an A2P badge beside it."
  caption="The same field once registration is done. Only numbers carrying the A2P badge can be picked."
  redactions={[
  { x: 3.4, y: 93.7, w: 11.6, h: 4.4, reason: "Account name and email hidden" },
  { x: 51.6, y: 38.8, w: 6.5, h: 57.0, reason: "Phone numbers hidden" },
]}
  pins={[
  { x: 60.6, y: 44.4, from: "right", at: 102, label: "The A2P badge is the filter. A number without one isn't in this list at all, however many you own." },
  { x: 60.6, y: 86, from: "right", at: 102, label: "Every registered number appears here — they're attached to your campaign automatically, including ones you buy later." },
]}
/>

<Callout type="warn" title="One number, one conversation thread">
  A lead who has texted this number before will see new messages in the same thread as the old ones. If you run genuinely separate programs — appointment reminders and cold outreach, say — consider separate numbers so the two don't read as one confusing conversation.
</Callout>

## The pathway section

Pick your pathway from the dropdown, or use the quick-pick to start from a template built for texting.

**Temperature** controls how much the agent varies its wording, from 0 to 1. It defaults to **0.2**, and for texting that's a good default: low temperature means predictable, on-message replies. Raise it if the agent sounds robotic and repetitive; lower it if it starts improvising in ways you didn't intend.

## Booking appointments

A texting agent has no calendar section of its own. To book over text, add a booking tool to the **pathway**, in a Custom Tool step — see [tools](/docs/tools).

## SMS settings

This section holds the operational knobs.

| Setting                   | What it does                                                                                                                 |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Webhook URL**           | Where ClearTalk posts conversation data as it happens. See [Send data to your system](/docs/integrations/webhooks).          |
| **Notify me when**        | Either at the end of the conversation, or on every single message. Start with the end — per-message is a lot of traffic.     |
| **Messaging Service SID** | Optional. Only needed if you're routing through a specific messaging service on your carrier account. Leave blank otherwise. |
| **Timeout (minutes)**     | How long to wait for a reply before the conversation counts as gone quiet. Defaults to 30.                                   |
| **Request Data**          | Extra key/value pairs attached to every webhook payload. Useful for tagging which agent or environment a payload came from.  |

<Key>
  **Timeout is the most consequential setting here.** It's what decides when a conversation is "quiet" — and therefore when follow-ups fire. Set it too short and the agent nags someone who's just in a meeting. Too long and a warm lead cools off. Thirty minutes is a sensible default for daytime conversations.
</Key>

## Follow-ups

Turned off by default. When on, the agent chases a conversation that's gone quiet mid-thread — this is separate from the campaign's message sequence, which only runs *before* anyone has ever replied.

Because the distinction matters, it has its own page: [Follow-ups and quiet conversations](/docs/texting/follow-ups).

## Post-message analysis

Same idea as the voice agents' post-call analysis. You define questions, and after the conversation ends the agent answers them from the transcript — "Did they agree to a callback?", "What objection did they raise?", "What's their budget?"

The answers land on the conversation record and go out in your webhook payload, which makes them the cleanest way to get structured data out of a free-form text conversation and into your CRM.

## Tools and a knowledge base live on the pathway

Voice agents have their own Tools, Knowledge Base and Pronunciation sections. A texting agent doesn't — because a texting agent always runs a pathway, and the upstream SMS configuration has no field for any of the three. Pronunciation genuinely doesn't apply to text. Tools and a knowledge base still do, but you add them to the **pathway**, not the agent:

<Cards>
  <Card title="Tools" href="/docs/tools" description="Drop a Custom Tool step into the pathway to look things up in your systems or write records back, mid-conversation." />

  <Card title="Knowledge Base" href="/docs/guides/knowledge-base" description="Add a Knowledge Base step to answer from your pricing, policies, and FAQs instead of guessing." />
</Cards>

A knowledge base is the higher-value of the two for texting. Leads ask direct factual questions over text — price, hours, whether you cover their area — far more bluntly than they do on a call.

## Before you point real leads at it

1. **Test the pathway** with simulated leads. Texting agents can be tested end to end without spending a message — see [Testing your pathway](/docs/pathways/testing). In the new editor, **Test chat** lets you text it yourself without sending a real message.
2. **Text it yourself** from your own phone. Read it as a recipient, not as its author.
3. **Send STOP** and confirm you're blocked. It's the one behavior you cannot afford to get wrong, and it takes ten seconds to verify.
4. **Check the timing.** Send a message right at the edge of your working hours and confirm it behaves the way you expect.
