How to create communications templates (for administrators)

You can prepare message templates in advance to use them in SMS and chats. Let's figure out how to do this.
Written by Владислав Пономарь
Updated 1 week ago

Prepared message templates can significantly speed up the processing of orders and customer inquiries. You can use them both for sending SMS and as quick replies in chats.

Where to find message templates

Go to «Settings» → «Communications» → «Communication templates» tab. In this section, you will see a list of all available templates and their names. You can sort them by name and status.

Note! Templates in the list are sorted alphabetically. If you use numbers, the order will be based on the first digit: 1, 10, 11, 12, and then 2, 3, 4, etc. Therefore, you can use numbering such as 1.1, 1.2, 2.1, 2.2 in the title to create a convenient order of templates.

In the list of templates, you can:

  1. Enable/disable a template by clicking on the switch in the «Status» column;

  2. Edit a message template by clicking on the pencil icon, which will open the same window as when creating a template;

  3. Delete a message template that is not used in orders or pipeline cards by clicking on the trash can icon.

Adding a template

To add a new template, click the «Add communication template» button in this section. In the window:

  1. Name: enter the name of the template. All templates in the list are sorted alphabetically.

  2. Context: select the context: customers, orders, pipeline, general.

    Clients templates that are only available when writing messages from the shopper's card. You can use variables in them, which will pull the necessary values from the shopper's card fields (for example, name, phone number, email, etc.);

    Orders ─ templates that will be available when sending from orders. You can use variables from orders in them (for example, buyer's name or tracking number);

    Pipelines ─ templates that will be available when sending from pipeline cards. You can use variables from the card (for example, card name or contact name);

    General ─ text templates in which variables do not work. They are needed for messages of the same type, for example, with payment details or quick replies in chats;

  3. Email subject — specify the subject that is used only when writing a message from the «Email» and «Gmail» channels. The email subject is needed to create separate email chains on the email side;

  4. Template — enter the template text. You can use variables so that when sending a message, the data is taken from the order or buyer. For example, the buyer's name and tracking code.

    To do this, click on «Insert field» and select the field from which the data will be taken.

Important! If you have questions about how to interact with variables, you can find answers in the Twig documentation. Available tags, filters, and functions are described in our reference guide.

To see how the message will look:

  1. Click «Preview»;

  2. Click «X» to close the preview.

When you have filled in everything, click «Add» to save the template. It will appear in the list.

How to choose the right context for a template

The choice of context depends on the task you want to solve with the template.

Context «Clients»

Templates with this context can only be used when sending messages from the customer card using the «Write» button:

Context «Orders»

When selecting a message template from any location, the variables in the template will pull the required values from the order.

Note! As an example of how templates work, you have a standard template with order information. It is called «Order». You can use it right away, without any additional settings.

If you need to set up automation (trigger) for an order, the template must be specified with the «Order» context.

Templates with this context can be used in three places:

  1. When writing the first message via the «Write» button in the order;

  2. When automatically sending messages via triggers;

  3. When sending messages about orders in chats.

Context «Pipelines»

When selecting a message template from anywhere, the variables in the template will pull the required values from the pipeline card.

Note! If you need to set up automation for pipelines, the template must be specified with the «Pipelines» context.

Templates with this context can be used in two places:

  1. When writing your first message using the «Write» button in the pipeline card;

  2. When sending messages via pipeline cards in chats.

Context «General»

Note! These templates do not support variables. That is, you can only use text in them, and even if you insert a variable, it will be displayed as plain text.

General templates do not work in triggers!

Templates with this context can be used:

  1. As quick replies in chats (other contexts are not available here);

  2. When writing a message in chats, via the «Write message» button;

  3. When writing the first message via the «Write» button in the order, pipeline card, and customer card.

This guide discussed the creation of message templates for different contexts and the methods of sending for each of them.

Tags: templates, quick replies, quick reply, message templates, template context, message template with variables

Did this answer your question?