---
title: "Create and preview an SMS template"
description: "Create a reusable SMS draft with a declared variable contract and review the rendered copy."
canonical: "https://studio.inttegro.com/inttegro-mcp/workflows/message-templates/create-and-preview-an-sms-template"
format: inttegro-machine-docs/v1
language: "cURL"
reader_profile: optional
reader_manifest: "https://studio.inttegro.com/machine/curl/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 600
model_token_report: "https://studio.inttegro.com/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["preview_message_template","create_message_template"]
estimated_tokens: 1211
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Create a reusable SMS draft with a declared variable contract and review the rendered copy. This cURL representation preserves HTTP paths and JSON wire names.

### Five questions

#### Q1. When should the reader use Create and preview an SMS template?

Use this MCP document when an authenticated AI client needs governed Inttegro context, guidance, presentation, or operations.

#### Q2. What is authoritative on this page?

The documented MCP catalog defines available abilities and confirmation boundaries. For live state, the structured tool result is authoritative; presentation output is only a rendering of that result.

#### Q3. What page-specific constraint matters most?

Read operations do not authorize mutations. Actions retain their exact confirmation requirements, and payment credentials or OTP must stay in secure Checkout.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `preview_message_template`, `create_message_template`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Preserve the structured tool result, distinguish bounded lists from complete analytics, and reconcile asynchronous actions through an authoritative read. Continue with [preview_message_template](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#preview_message_template) and [create_message_template](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#create_message_template) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`preview_message_template`](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#preview_message_template) — read; no mutation confirmation. Renders the current draft with supplied non-secret variables so the merchant can review the actual SMS or email before publishing.
- [`create_message_template`](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#create_message_template) — action; exact user confirmation required. Creates one reusable SMS or email draft with a typed variable contract. Creation does not publish or send it.

## Document content

# Create and preview an SMS template

Define the reusable copy and its variables together, then render representative values before publishing. Creating a draft and previewing it do not send a message.

### Prompt

> **Copyable prompt:**
>
> Create an English SMS template named “Pickup reminder” for pickup reminders.
> Use “Hi {{customer\_name}}, order {{order\_number}} is ready at
> {{location\_name}}.” Make all three variables required strings. Show the
> exact draft for confirmation before creating it, then preview it with Ama,
> WEB-1042, and Osu. Do not publish or send it.

[`create_message_template`](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#create_message_template) requires confirmation before creating the draft. The agent then calls [`preview_message_template`](https://studio.inttegro.com/machine/curl/inttegro-mcp/tools.md#preview_message_template) with representative values so you can review the rendered message.

## Sample response: SMS draft previewed

The draft rendered successfully and remains unpublished.

- **Template**: Pickup reminder — tmpl\_example\_pickup
- **Channel**: SMS
- **Status**: Draft
- **Required variables**: 3

* **Row 1**: Preview value: customer\_name; Rendered as: Ama
* **Row 2**: Preview value: order\_number; Rendered as: WEB-1042
* **Row 3**: Preview value: location\_name; Rendered as: Osu

Rendered SMS: “Hi Ama, order WEB-1042 is ready at Osu.”

Publish the draft only after the rendered copy and variable contract are correct.
