Skip to main 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

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 requires confirmation before creating the draft. The agent then calls 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.

Draft preview
Template
Pickup reminder
tmpl_example_pickup
Channel
SMS
Status
Draft
Required variables
3
Preview valueRendered as
customer_nameAma
order_numberWEB-1042
location_nameOsu

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

Illustrative values. The exact presentation depends on the MCP client.

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