# Template Library

The **Template Library** in Squarebox provides a collection of pre-designed WhatsApp message templates categorized by purpose and industry. These templates simplify creating messages for marketing, utility, and authentication, saving time and ensuring compliance with WhatsApp guidelines.

### **Exploring the Template Library**

1. **Categories**:
   * Browse templates by category:
     * **Marketing**: Promotions, announcements, offers, etc.
     * **Utility**: Order updates, feedback requests, etc.
     * **Authentication**: OTPs and secure messages.
2. **Industry Filters**:
   * Narrow down templates by industry, such as **Real Estate**, **Education**, etc.
3. **Preview Templates**:
   * Click on any template to view its design, structure, and content details.

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

### **Creating and Saving Templates**

1. **Creating a New Template**:
   * In the **Template Library**, click on the **Create Template** button.
   * Select a category (e.g., Marketing) and choose an industry for the template.
   * Provide the template details:
     * **Header**: Add an optional title or subject.
     * **Body**: Enter the main message, using variables like {{CustomerName}} for personalization.
     * **Footer**: Add an optional closing line or disclaimer.
     * **Buttons**: Include call-to-action buttons (e.g., Contact Us, View Offers).<br>
2. **Saving Templates**:
   * Once the template is ready, click **Save Template** to add it to the library for future use.
   * Saved templates can be easily accessed, edited, and reused in campaigns.<br>

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

### **Auto-Fill for Easy Editing**

1. Select an existing template in the library to use as a base.
2. The system auto-fills the details into the **Template Creation** form.
3. Make edits to the header, body, footer, or buttons as required.
4. Save the updated version or submit it for WhatsApp approval.

<figure><img src="/files/QWOyfeg5lWUacxHv1L7q" alt=""><figcaption><p><em>GIF showing auto-fill and quick customization of a template</em></p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://squarebox-ai.gitbook.io/squarebox/templates/interactive-blocks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
