# Using Content Templates with Studio

Content templates let you send rich messaging content using a determinative content template SID, called "HX Sid". This functionality is available on Studio in the [Send Message](/docs/studio/widget-library/send-message), [Send and Wait for Reply](/docs/studio/widget-library/send-wait-reply), and the [Split](/docs/studio/widget-library/split-based-on) widgets. The rich functionality enabled by content templates is also supported.

To use content templates in Studio to send messages with the Send or Send and Wait for Reply Widgets:

1. Select **Content template** in the **Message Type** section.
2. Provide the **Content template SID** (beginning with HX). You can find the HX Sid by going to **Templates** and copying the HX Sid for your content template.
3. Add variables if your template has variables.
4. Under **Advanced Configuration**, provie a phone number, MessagingServiceSID, or OTT in the **Send message from** field.

## Use rich inbound features in Studio Flows

You can design custom interactions that react to rich message metadata when users send you inbound messages. Rich inbound message metadata is available when users perform certain actions, such as tapping a quick-reply button or selecting a WhatsApp list item.

For quick-reply buttons, you define a custom payload value in Content Template Builder, that is returned in the inbound message when a user interacts with the button. This lets you identify which button was pressed. For quick replies, the payload value is set as the ID when you create the template in the Content Template Builder. The same value is returned under the `ButtonPayload` field in your inbound message webhook.

To take an action based on the `ButtonPayload` value in Studio, use the `Split` widget to trigger actions. Under **Variables to Test**, use the format `widgets.widget_name.inbound.ButtonPayload`. The widge name is the widget used to send the original message.

For other template types, there might be other field names that you need to change the value to use the rich functionality as a trigger.
