Skip to content

Write message templates

A message template is reviewed, exact-wording content the agent delivers as written: an Outreach opener, a booking confirmation, a legal notice. Where Playbooks produce generated conversation, a template renders the same way every time.

A template is one or more RCS messages, sent in order: text, a picture, a rich card, a carousel of cards, or cards for the agent's Things. Each message can carry suggestions: quick replies and buttons. There is no markup. Every field is plain text, and {slot} fields fill in per recipient.

Templates are edited at Build · Behavior · Message Templates, where each template in the list is shown as the messages it sends. The same composer opens when you write an Outreach's opener in place on Build · Outreach.

The composer

Choose Edit on a template, or New message template, to open the composer: the messages on the left and a live preview on the right (the preview moves underneath on a narrow screen).

Each message is a block labelled with its kind. Move a block up or down, or delete it, with the controls on the block. Add a message adds another:

  • Text: a text message.
  • Card: a picture from the agent's media library or an image URL, the picture's height, a title, a description, and up to four buttons. Make it a carousel turns it into a carousel.
  • Carousel: 2 to 10 cards side by side. Add, reorder and remove cards, and choose small or medium cards.
  • Picture: an image from the media library, or an image URL, sent on its own.
  • Things: cards filled from Things in Knowledge, named one by one or as a whole collection.

Under each message, and on each card, Suggestion adds a quick reply or a button: Reply (a tappable reply, optionally with a different value sent back to the agent), Open a link, Call a number, or Ask for location.

Fields

Type {, or click the { } button at the edge of a text box, to insert a field such as the person's first name. Fields work in every text: message text, card titles and descriptions, suggestion labels, links and phone numbers. The picker lists the Person fields, the custom fields declared under Capabilities · People fields, and the agent's own details. Keep typing to narrow the list; Enter inserts the highlighted field.

A field shows as a pill, such as First name, and is inserted or deleted as a whole. Click it to choose what happens when the value is empty for a recipient:

  • Use this instead…: fallback text, for example "there" in "Hi there".
  • Template rule: follow the template's If a field is empty setting.
  • Leave out the sentence: drop the sentence the field is in.
  • Skip the whole message: send nothing to that person.
  • Don't send — report it: refuse the send and report the missing value.

Catalyst flags a field this agent does not have, which would always be empty. It also flags an agent detail, such as the company name, that has not been set on Behavior · Identity yet.

Preview

The preview is the emulator: it shows exactly what an RCS handset receives, one bubble per message, drawn the same way as the emulator and conversation replay.

  • Sample person fills every field with example values. The agent's own details come from the agent.
  • Unknown person leaves every Person field empty, so you can see each fallback: the replacement text, the dropped sentence, or a note that the message would be skipped or refused.

Under the messages the composer lists anything RCS will not accept, for example a suggestion label longer than 25 characters, more than 11 suggestions under a message, more than 4 on a card, or a carousel outside 2 to 10 cards. A template that breaks these limits is not saved.

Slots

Each field pill is stored as a {slot} in the text, which is how it appears in an exported definition file:

{
  "kind": "text",
  "text": "Hi {person.firstName | \"there\"}, this is {agent.companyName}. You asked about {person.productInterest}; happy to set up a quick call."
}

Slots draw from the Person record ({person.…}: firstName, lastName, fullName, email, phone, company, title, productInterest, source, customFields.<key>) and the agent's identity ({agent.…}: name, companyName, companyDescription, contactEmail, contactPhone, websiteUrl). Each template sets what happens when a value is missing for a recipient (defaultOnMissingSlot). A single field can override that rule: {person.firstName | "there"} for fallback text, or {person.company | omit-sentence}, | omit-message or | block-send.

Set the fallback deliberately. A greeting that renders "Hi there" is fine. A confirmation missing its date is not worth sending.

Cards, carousels and pictures

In a definition file, a template's messages is a list of RCS messages. Every picture is an https URL or a media-library item named image:<id>:

[
  { "kind": "text", "text": "Here's a quick look at what we do." },
  {
    "kind": "carousel",
    "cards": [
      {
        "title": "Authentic AI Conversations",
        "description": "No more dead-end auto-replies.",
        "media": "image:showcase-authentic-ai"
      },
      {
        "title": "Rich, Verified Media",
        "description": "Images, carousels and verified badges.",
        "media": "image:showcase-media"
      }
    ],
    "suggestions": [
      { "kind": "reply", "label": "Book a demo" },
      { "kind": "reply", "label": "How does it work?" }
    ]
  }
]

The composer's picture picker writes the image:<id> references for you. The message kinds are text, media, card, carousel, things and collection; suggestion kinds are reply (with an optional value), openUrl, dial and shareLocation.

Cards for Things and collections

A template can show live cards from your Things catalog instead of hand-built cards:

{ "kind": "things", "refs": ["Lake view suite", "Garden suite"] }

refs lists Thing ids or names. One Thing sends a card, several a carousel, each built the way the agent builds a showcase.

To show a whole collection instead:

{ "kind": "collection", "ref": "rentals", "limit": 4 }

A collection sends every Thing in it, in the collection's order, capped at limit and at 10 cards, the RCS carousel limit. An empty collection sends nothing; the template's other messages still go out.

Behavior lint reports a Thing that matches nothing as messageTemplate.thing.unknown, and a collection id that doesn't resolve as messageTemplate.collection.unknown. Both are errors.

Who uses templates

An Outreach uses a template as the opener of a conversation the agent starts, and its follow-up is a template too. A follow-up is sent as a single text message, so its composer offers text and fields only.

A Playbook names templates in its instructions, so the agent sends reviewed content at the right moment: a booking confirmation when the appointment is set, a disclosure before a regulated topic, a showcase carousel right after the person's first reply.

Write the instruction in the Playbook the way you would explain it to a colleague. Two forms count as naming a template: template:<id> written in the instructions, or the template's id or name in quotes or backticks. Plain prose that happens to contain the id or name does not count.

When the user asks about dining, send template:resort-dining-carousel.
When they ask about boats, ask which marina first, then send
template:wahweap-watercraft-rentals or
template:halls-crossing-watercraft-rentals.

The agent sees a short index of every template on every turn: id, name, and purpose. Naming one in a Playbook's when-to-use, instructions, or an example adds that template's full content to what the agent reads while the Playbook is active. A Playbook's Also inline these templates control covers the rare case where you want a template available without naming it in the Playbook's own text. A template:<id> that names no template is reported by lint as template.ref.unknown.

A template used nowhere does nothing. After writing one, name it in a Playbook or make it an Outreach's opener.

When the agent may use a template

Each template has a Use setting that controls whether the agent can choose it on its own.

When it fits, the default, lets the agent send the template whenever it judges the moment right, the same way it decides what to say. Most templates work this way: a showcase carousel, a booking confirmation, a piece of reusable content.

Only when named lets the agent send the template only on a turn whose active Playbook names it, through template:<id> in the instructions, the template's id or name in quotes or backticks, or the Playbook's Also inline these templates override. A Playbook that never names it leaves the template off the table even when the person asks for it directly.

Use only when named for content the agent must never volunteer: a consent notice that has to go out at a deliberate point in the conversation, or a legal disclaimer that belongs to one regulated topic and nowhere else. An Outreach opener is worth setting this way too, so it never turns up as a reply to something unrelated.

An Outreach names its opener and follow-up by id rather than by the model's judgment, so only when named never blocks them.

An only when named template that no Playbook names and no Outreach references can never be sent. Behavior lint flags it as messageTemplate.onlyWhenNamed.unreachable.

Writing for messaging

Template content lands in a chat thread rather than an inbox. Two or three sentences, one idea, one call to action. When the message needs a paragraph of qualifications, those qualifications belong in the conversation the agent has after the person replies.

What's next