> For the complete documentation index, see [llms.txt](https://docs.agilecase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilecase.com/administrator-documentation/templates/creating-an-sms-template.md).

# Creating an SMS Template

This lesson will show you how to create SMS templates in AgileCase.

{% stepper %}
{% step %}

## Access SMS templates page

<figure><img src="/files/NGPSP0OfCnhd4ldBWB4o" alt="" width="178"><figcaption></figcaption></figure>

As well as emails and documents, AgileCase also allows you to produce SMS templates. To begin making your first template, click the "SMS" button under "Templates" in the settings menu.
{% endstep %}

{% step %}

## Add a new template

<figure><img src="/files/YDJ41jp5VLJFbtSkRfQd" alt=""><figcaption></figcaption></figure>

Any SMS templates you create will be stored on this page. To create a new template, click "Add SMS Template".
{% endstep %}

{% step %}

## Fill out the template form

<figure><img src="/files/A4dEcyoLU5zopFSlsbdS" alt=""><figcaption></figcaption></figure>

SMS templates function exactly the same as email templates using Mustache fields.

Document templates cannot be imported to SMS, however, because of the imposed 420 character limit.

You can pick out elements of a case using Mustache fields. Mustache fields function by specifying the element you want to extract between sets of double curly brackets. For example, `Client.Name` will pick out the name under "Client" in the case. The full stop is used to signal that the following element should be looked for in the previous area.

Like email and document templates, all of the relevant elements can be found on the merge field helper for the case, which will be briefly covered in the next step or can be read about in more detail in this lesson.
{% endstep %}

{% step %}

## Merge field helper

<figure><img src="/files/GBoDGJUKCznTFopBFMe8" alt=""><figcaption></figcaption></figure>

The merge field helper functions as a reference book for creating merge fields in Mustache or Mail Merge. To open the merge field helper for a case, simply click the arrow beside the "Edit" button and select "View Merge Fields" from the dropdown.
{% endstep %}

{% step %}

## Select available case types and save

<figure><img src="/files/A2CNdSgffkZ14jZEdrvP" alt=""><figcaption></figcaption></figure>

After filling out your template, you can select the case types in which it will be available and apply any appropriate labels. Once you are finished, click "Save Changes" to create your SMS template.
{% endstep %}

{% step %}

## Create an SMS from the template

<figure><img src="/files/Mx5zS97WDk2izRhpVjny" alt="" width="173"><figcaption></figcaption></figure>

To create an SMS using your new template, go to the "Docs\&Comms" tab under a case and click the "New" button. On the dropdown menu, select "Send SMS" to bring up the template selection window.
{% endstep %}

{% step %}

## Send an SMS

<figure><img src="/files/D7nKinHLKn4jeHc5gelw" alt=""><figcaption></figcaption></figure>

Select your template from the dropdown to populate it with your case data. You will have a chance to review it at this stage. Once you are happy with your SMS, click "Send SMS" to send.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.agilecase.com/administrator-documentation/templates/creating-an-sms-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
