---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/conversations-classic/send-rich-content-messages-with-conversations#article
headline: Send Rich Content Messages with Conversations (classic)
description: Learn how to send messages with additional visual or interactive elements to WhatsApp using Conversations (classic) and the Twilio Content API and Content Editor.
url: https://www.twilio.com/docs/conversations-classic/send-rich-content-messages-with-conversations
inLanguage: en
dateModified: 2026-09-28T13:08:32.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Send Rich Content Messages with Conversations (classic)

This tutorial shows you how to send rich messages to WhatsApp using Conversations (classic) and the [Content Template Builder](/docs/content). The Content Template Builder lets you build rich content templates programmatically through an API or with no code in a graphical user interface in the Console. "Rich content" or "rich messaging" refers to messages with additional visual or interactive elements, such as buttons or selectable lists.

### The Content Template Builder

With Twilio's [Content Template Builder](/docs/content), you can create message templates to send over any Twilio-supported messaging channel. It supports text and media as well as richer content types like location, quick-replies, and list-pickers. The templates also support variables, so you can leverage the same content across multiple conversations while personalizing each message.

The following table lists the content types supported by Conversations (classic). See the individual content type documentation for additional details about each type's parameters and input requirements.

| **Content Type**                                             | **Data parameter**       | **Type**           | **Description**                                                                                                                                                                                                 |
| ------------------------------------------------------------ | ------------------------ | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [twilio/text](/docs/content/twilio-text)                     | body \[required]         | string             | The text of the message you want to send. Maximum 1,600 characters.                                                                                                                                             |
| [twilio/media](/docs/content/twilio-media)                   | body \[required]         | string             | The text of the message you want to send. Maximum 1,600 characters.                                                                                                                                             |
|                                                              | media \[optional]        | string\[]          | The URL of the media you want to send. - The URL must resolve to a publicly accessible media file. - The media URL must contain a [valid file type](/docs/content/content-types-overview#supported-mime-types). |
| [twilio/location](/docs/content/twilio-location)             | longitude \[required]    | numbers            | The longitude value of the location pin you want to send.                                                                                                                                                       |
|                                                              | latitude \[required]     | numbers            | The latitude value of the location pin you want to send.                                                                                                                                                        |
|                                                              | label \[optional]        | string             | Label to be displayed alongside the location pin.                                                                                                                                                               |
| [twilio/quick-reply](/docs/content/twilio-quick-reply)       | body \[required]         | string             | The text of the message you want to send. Maximum 1,024 characters.                                                                                                                                             |
|                                                              | actions \[required]      | array\[actions]    | Predefined buttons that a customer could use as the response. It needs the "type", "title", and "id" fields.                                                                                                    |
| [twilio/call-to-action](/docs/content/twilio-call-to-action) | body \[required]         | string             | The text of the message you want to send. Maximum 640 characters.                                                                                                                                               |
|                                                              | actions \[required]      | array\[actions]    | Buttons that recipients can tap to act on the message. It requires the "type" and "title" actions.                                                                                                              |
| [twilio/list-picker](/docs/content/twiliolist-picker)        | body \[required]         | string             | The text of the message you want to send. Maximum 1,024 characters.                                                                                                                                             |
|                                                              | button \[required]       | string             | Display value for the primary button.                                                                                                                                                                           |
|                                                              | items \[required]        | array\[list items] | Array of list item objects.                                                                                                                                                                                     |
| [twilio/card](/docs/content/twiliocard)                      | title \[required]        | string             | Title of the card. Maximum 1,024 characters.                                                                                                                                                                    |
|                                                              | subtitle \[optional]     | string             | Subtitle of the card. Maximum 60 characters.                                                                                                                                                                    |
|                                                              | media \[optional]        | string\[]          | The URL of the media to send with the message.                                                                                                                                                                  |
|                                                              | actions \[optional]      | array\[actions]    | Buttons that recipients can tap on to act on the message.                                                                                                                                                       |
| [whatsapp/card](/docs/content/whatsappcard)                  | body \[required]         | string             | The body of the card. Maximum 1,024 characters.                                                                                                                                                                 |
|                                                              | footer \[optional]       | string             | The footer of the card. Maximum 60 characters.                                                                                                                                                                  |
|                                                              | media \[optional]        | string\[]          | The URL of the media to send with the card. Can't be present if `header_text` is present.                                                                                                                       |
|                                                              | header\_text \[optional] | string             | Bolded header text of the card. Can't be present if `media` is present. Maximum 60 characters.                                                                                                                  |
|                                                              | actions \[required]      | array\[actions]    | Buttons that recipients can tap on to act on the card.                                                                                                                                                          |
| [whatsapp/flows](/docs/content/whatsapp-flows)               | body \[required]         | string             | Text of the templated message that launches the Flow. Maximum 1,024 characters.                                                                                                                                 |
|                                                              | flow\_id \[required]     | string             | Identifier for the Flow in WhatsApp.                                                                                                                                                                            |
|                                                              | media\_url \[optional]   | string             | Media included in the initial Flow message.                                                                                                                                                                     |

## Step 1: Create Content Template via Content API

> \[!NOTE]
>
> The Content Template Builder supports an unlimited number of templates,
> however, WhatsApp limits users to 6000 approved templates across all
> languages.

To send a rich message, you'll first need to [create a content template](/docs/content/content-api-resources#create-templates) using the [Content Template Builder](/docs/content).

In the following example, we'll use the ["quick-reply" template](/docs/content/twilio-quick-reply), which allows the recipient to respond by clicking on one of the options that you pre-define in the template. To see how the template layout looks, go to [Step 4](#step-4-send-a-rich-message-via-the-conversations-classic-api).

After creating your template, take note of the ContentSid `(HXXXXXX)` found in the response as we'll be using that SID throughout this tutorial.

### POST API

Request:

Create a Content Template

```bash
CONTENT_CREATE_REQUEST_OBJ=$(cat << EOF
{
  "friendly_name": "flight_replies",
  "variables": {
    "1": "name"
  },
  "language": "en",
  "types": {
    "twilio/text": {
      "body": "Hi, {{ 1 }}. \n Thanks for contacting Owl Air Support. How can I help?."
    },
    "twilio/quick-reply": {
      "body": "Hi, {{ 1 }}. \n Thanks for contacting Owl Air Support. How can I help?",
      "actions": [
        {
          "title": "Check flight status",
          "id": "flightid1"
        },
        {
          "title": "Check gate number",
          "id": "gateid1"
        },
        {
          "title": "Speak with an agent",
          "id": "agentid1"
        }
      ]
    }
  }
}
EOF
)
curl -X POST "https://content.twilio.com/v1/Content" \
--json "$CONTENT_CREATE_REQUEST_OBJ" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "friendly_name": "flight_replies",
  "language": "en",
  "variables": {
    "1": "name"
  },
  "types": {
    "twilio/text": {
      "body": "Hi, {{ 1 }}. \n Thanks for contacting Owl Air Support. How can I help?."
    },
    "twilio/quick-reply": {
      "body": "Hi, {{ 1 }}. \n Thanks for contacting Owl Air Support. How can I help?",
      "actions": [
        {
          "title": "Check flight status",
          "id": "flightid1"
        },
        {
          "title": "Check gate number",
          "id": "gateid1"
        },
        {
          "title": "Speak with an agent",
          "id": "agentid1"
        }
      ]
    }
  },
  "url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2015-07-30T19:00:00Z",
  "date_updated": "2015-07-30T19:00:00Z",
  "links": {
    "approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp",
    "approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests"
  }
}
```

### Optional: Retrieve a Content Template SID from the Content Template Builder

You can make a `GET` request to the Content API to fetch a list of all the content templates that you have created.

#### GET API

Request:

List Content Templates

```bash
curl -X GET "https://content.twilio.com/v1/Content?PageSize=20" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "contents": [],
  "meta": {
    "page": 0,
    "page_size": 10,
    "first_page_url": "https://content.twilio.com/v1/Content?PageSize=10&Page=0",
    "previous_page_url": null,
    "url": "https://content.twilio.com/v1/Content?PageSize=10&Page=0",
    "next_page_url": null,
    "key": "contents"
  }
}
```

## Step 2: Create a Conversation

Now, let's create a [Conversation](/docs/conversations-classic/api/conversation-resource) that we'll use in the next step to send a rich content message. In the sample code below, replace the API key SID and secret with the values for your [API key](/docs/iam/api-keys/keys-in-console). Copy down the Conversation SID (It starts with `CHXXXXX`). We'll be using this value in the next step when we add a WhatsApp participant to the Conversation you just created.

Create a Conversation

```bash
curl -X POST "https://conversations.twilio.com/v1/Conversations" \
--data-urlencode "FriendlyName=Send Rich content messages with Conversations (classic)" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "friendly_name": "Send Rich content messages with Conversations (classic)",
  "unique_name": "unique_name",
  "attributes": "{ \"topic\": \"feedback\" }",
  "date_created": "2015-12-16T22:18:37Z",
  "date_updated": "2015-12-16T22:18:38Z",
  "state": "inactive",
  "timers": {
    "date_inactive": "2015-12-16T22:19:38Z",
    "date_closed": "2015-12-16T22:28:38Z"
  },
  "bindings": {},
  "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
    "messages": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
    "webhooks": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks",
    "export": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Export"
  }
}
```

## Step 3: Add a WhatsApp Participant to the Conversation

Let's add a WhatsApp Participant to the Conversation. For the code sample below, replace the placeholder values for:

* `CHXXXXXXX`: use the Conversation SID you just copied
* `YOUR_WHATSAPP_NUMBER`: your WhatsApp phone number, in [E.164 format](/docs/glossary/what-e164)
* `TWI_WA_NUMBER`: Your Twilio enabled WhatsApp phone number, in [E.164 format](/docs/glossary/what-e164)
* `$TWILIO_API_KEY`: Your API key SID
* `$TWILIO_API_SECRET`: Your API key secret

Add a WhatsApp Participant to a Conversation

```bash
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants" \
--data-urlencode "MessagingBinding.Address=whatsapp:YOUR_WHATSAPP_NUMBER" \
--data-urlencode "MessagingBinding.ProxyAddress=whatsapp:TWI_WA_NUMBER" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "identity": null,
  "attributes": "{ \"role\": \"driver\" }",
  "messaging_binding": {
    "type": "sms",
    "address": "+15558675310",
    "proxy_address": "+15017122661"
  },
  "role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2015-12-16T22:18:37Z",
  "date_updated": "2015-12-16T22:18:38Z",
  "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "last_read_message_index": null,
  "last_read_timestamp": null
}
```

## Step 4: Send a Rich Message via the Conversations (classic) API

> \[!NOTE]
>
> If the customer representative wants to send rich content messages prior to
> the end user messaging them on WhatsApp, then this content template will need
> to be approved before it can be sent out. Some [content
> types](/docs/content/content-types-overview#whatsapp-approval-requirements)
> (e.g., Cards and CTA buttons) require prior approval regardless of whether the
> template is sent in the context of a session or not.

So far you've created a content template, and a Conversation with a WhatsApp participant. Now we're ready to send a rich message to the participant. This example uses the Conversations (classic) API, but content templates are also available through the [Conversations (classic) SDKs for JavaScript, Android, and iOS.](/docs/conversations-classic/sdk-download-install)

In our `POST` request example, you'll pass the [ContentVariables parameter](/docs/content/using-variables-with-content-api) (optional), which allows you to customize the message content with dynamic values. For this example, "name" will be replaced with the value ("Alice").

Replace:

* `CHXXXXXXXXXXXXXXXXXXX` with the Conversation SID in the request URL
* `HXXXXXXXXXXXXXXXXXXXX` value in the Content SID parameter

Request parameters:

| **Parameter**    | **Required** | **Description**                                                                                                                                                             |
| ---------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ContentSid       | Yes          | The unique ID of the multi-channel Content template, required for template-generated message. Note that if this field is set, the Body and MediaSid parameters are ignored. |
| ContentVariables | Optional     | A structurally valid JSON string that contains values to determine Content template variables.                                                                              |

Send a rich content message using a Content template

```bash
CONTENT_VARIABLES_OBJ=$(cat << EOF
{
  "1": "Alice"
}
EOF
)
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXX/Messages" \
--data-urlencode "ContentSid=HXXXXXXXXXXXXXXXXXXXX" \
--data-urlencode "ContentVariables=$CONTENT_VARIABLES_OBJ" \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

```json
{
  "sid": "IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "conversation_sid": "CHXXXXXXXXXXXXXXXXXXX",
  "body": "Hello",
  "media": null,
  "author": "message author",
  "participant_sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "attributes": "{ \"importance\": \"high\" }",
  "date_created": "2015-12-16T22:18:37Z",
  "date_updated": "2015-12-16T22:18:38Z",
  "index": 0,
  "delivery": {
    "total": 2,
    "sent": "all",
    "delivered": "some",
    "read": "some",
    "failed": "none",
    "undelivered": "none"
  },
  "content_sid": "HXXXXXXXXXXXXXXXXXXXX",
  "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "delivery_receipts": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Receipts",
    "channel_metadata": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelMetadata"
  }
}
```

![WhatsApp chat with Owl Air offering options to check flight status, gate number, or speak with an agent.](https://docs-resources.prod.twilio.com/8047361b11a80a1e251d4594f0b6471c66634d6f2324379e72f4bdac955c60bf.jpg)

Well done! You've successfully sent your first rich content message to your WhatsApp Participant using Twilio Conversations (classic).

## What's Next?

As a following step, you can:

* Check out our [Conversations (classic) Quickstart](/docs/conversations-classic/quickstart)
* Learn more about the [Content Template Builder](/docs/content)
