> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/okuru-order-sms/sms-templates.md).

# SMS Templates

This is the step from where you can customize your SMS notification templates according to your message and business needs.

### 1. Orders and Reviews

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

* **Order Place -** This SMS template is for the order placement event, i.e., this message will be delivered to the customers whenever they place any order.
* **Order Refund -** This SMS template is about order refunding, which means this message will be delivered to your customers after their order refund request is successfully accepted.
* **Order Cancellation -** This SMS template is about informing customers about the confirmation of their order cancellation.
* **Abandoned Checkout -** This SMS template will be sent as a reminder to your customers and notify them about their cart being left abandoned without checking out.
* **Review Request -** This message will automatically be sent to the customer after preconfigured days of placing the order.

{% hint style="info" %}
**Please Note:**

In the backend of all these SMS templates, you are allowed to **choose the language** of the message template, **message configuration field**, and **the DLT template ID** (for Indian users only), along with **all the variables** that you can use to configure your personalized message for each event.

The template configuration layout will be the same for all SMS notification templates 👇
{% endhint %}

**DLT (Distributed Ledger Technology)** is a system mandated by **TRAI (Telecom Regulatory Authority of India)** to regulate SMS and WhatsApp communications sent to Indian users.\
Any business sending transactional, promotional, or service messages to **Indian mobile numbers** must register their message templates on a **DLT platform**.

Once a message template is approved on the DLT portal, it is assigned a **DLT Template ID**. This ID is required to successfully deliver messages to Indian users.

#### Register Your Business on a DLT Portal

Because you want to send SMS to **Indian numbers**, telecom regulations require DLT registration.

You must register your company on a DLT platform like:

* Vodafone Idea DLT Platform (<https://www.vilpower.in/>)
* Airtel DLT Platform (<https://www.airtel.in/business/commercial-communication/home>)
* Jio DLT Platform (<https://www.fast2sms.com/DLT-Registration?utm_source=chatgpt.com>)

After approval you will get:

* **Entity ID**

#### Create SMS Header (Sender ID)

Inside the DLT portal you must register your **Sender ID**.

Example: MAGECP, MGECMP

This must be approved by telecom operators.

#### Create SMS Template

Next you create your SMS message template.

Example: Hello {#var#}, your order {#var#} has been confirmed.

After approval you receive:

* **DLT Template ID**

Example: 120716XXXXXXX

#### Configure Everything in OKURU App

Finally you configure:

**From Twilio**

* API Key
* API Secret

**From DLT**

* Entity ID
* Sender ID
* Template ID

Only after all these are configured will SMS work for **Indian customers**.

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

### 2. Shipping and Delivery

<figure><img src="/files/4Sa50BoC6rhkZipLlyFp" alt=""><figcaption></figcaption></figure>

* **Shipping Fulfillment -** This SMS will be automatically sent to your customers when their order is fulfilled.
* **Shipment out for delivery  -** This SMS will be sent to customers, notifying them that their order shipment has been processed and is out for delivery.
* **Shipment delivered -** This SMS will be sent to customers at the time of delivery, along with their order tracking information.
* **Ready for pickup -** This SMS will be sent automatically to the customer when the fulfillment is ready to be picked up from the designated pickup location.
* **Fulfillment delayed -** This SMS will be sent automatically to the customer when there is a delay in processing or delivering the fulfillment.
* **Fulfillment in transit -** This SMS will be sent automatically to the customer when the fulfillment is on the way to the delivery address.

### **AI-Powered SMS Template Generator**&#x20;

We have introduced a new AI-powered feature that allows you to generate SMS templates automatically using OpenAI. This functionality helps you create professional and engaging SMS content instantly, saving time and effort.

With this feature, you can simply describe what kind of message you need, and the AI will generate a ready-to-use SMS template for you.

#### **How It Works**

To use the AI Generate option, you must enter a valid OpenAI API Key in the app settings under the **Integrate AI** section. Without this, the AI template generation feature will not be available.

Once the OpenAI integration is properly configured in the app settings, you will see an “**AI Generate**” option inside the SMS Template section.

This option allows you to create SMS templates automatically using artificial intelligence.

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

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

### **Steps to Enable AI SMS Template Generation**

#### **Step 1 – Add Billing Credits to Your OpenAI Account (Mandatory)**

Before the API key can work, your OpenAI account must have active billing credits.

1. Log in to your OpenAI account:\
   <https://platform.openai.com>
2. Go to the **Billing** section:\
   <https://platform.openai.com/settings/organization/billing>
3. Click on **“Add Payment Method”** and enter your card details.
4. Add credits to your account balance.

{% hint style="danger" %}
Without sufficient billing credits in your OpenAI account, the API key will not function and AI template generation will not work.
{% endhint %}

#### **Step 2 – Create an OpenAI API Key**

1. Open this link in your browser:\
   <https://platform.openai.com/api-keys>
2. Log in with your account

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

3. Click on **“Create Secret Key.”**

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

4. Click again on **“Create Key.”**

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

5. The API key will be generated. Copy the key and keep it safe.<br>

<figure><img src="/files/4hgnr8ib4ANJLQDLBTBT" alt=""><figcaption></figcaption></figure>

#### **Step 3 – Configure the API Key in the App**

1. Open your app admin panel.
2. Navigate to **Settings → Integrate AI** section.
3. Paste the copied OpenAI API key into the API Key field.
4. Click on **Save Settings.**

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

Once the key is saved successfully, the **AI Generate** option will become visible in the Templates section.

### **How to Generate an SMS Template Using AI**

1. Go to the **Templates** section in the app.

2. Click on **Create Template.**

3. Select the **AI Generate** option.

4. Fill in the required details:

   **Variables**\
   Add dynamic variables in this format:\
   &#x20;**{%-order\_id-%}**, **{%-customer\_name-%}**, **{%-shop\_email-%}**\
   These variables will be used by AI to personalize the SMS message.

5. **Features and Keywords**\
   Enter key points or highlights you want to include in the SMS, for example:\
   \&#xNAN;*Fast delivery, COD available, premium quality*

6. **Tone**\
   Select or enter the preferred tone for the message, such as:\
   \&#xNAN;*Expert, Friendly, Professional, Promotional,* etc.

7. After entering all details, click on **Generate.**

8. The AI will instantly create a customized SMS template based on the provided inputs.

9. Review the generated content and click **Save Template** to use it in your campaigns.

<figure><img src="/files/8jIG4sMF65qK9pCcNOQd" alt=""><figcaption></figcaption></figure>


---

# 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://magecomp.gitbook.io/shopify/apps/okuru-order-sms/sms-templates.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.
