Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
English (US)
US English (US)
ES Spanish
BR Portuguese (Brazil)
RU Russian
  • Home
  • Spots
  • Spots

Setting up variables

Written by Tatiana Nik

Updated at April 6th, 2026

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Introduction
  • Spots
    Statistics Spots Landings Broadcasts Mailing
  • CRM
    Clients Messenger Tasks Reports Ignoring
  • General settings
  • Setting up analytics and tracking
  • API and Integrations
  • All about setting up business processes
+ More

Table of Contents

What are custom macros? How to add a custom macro How to select and set a macro in a spot How to use macros in messages Examples of use 💡 Custom macro examples 1. Macros for communication 2. Macros for personalizing messages Actions with variables ⚙️Editing columns Using variables in webhooks General operating principle Using variables in the webhook body Example of a webhook with variables How it works in practice Using variables in a webhook URL Using Variables in Headers Important Features and Limitations Recommendations for use Typical use cases Benefits of Custom Macros

Custom macros allow you to make your automated messages flexible, dynamic, and personalized.
With their help, you can insert variable values directly into message texts or webhooks to tailor communications to a specific spot, lead, or action in a business process.

For example, you can automatically insert the actor's (manager's, employee's) name, company name, product link, promo code, or any other pre-defined value. This is especially convenient if you want to standardize message templates while maintaining a personalized touch.


What are custom macros?

Variables are elements that allow you to define custom macros in the spot settings.
All variables defined in a spot become available for use in business processes (BP) associated with this spot.
You can use them, for example:

  • in the "Send message" block,
  • or in the "Webhook" block.

How to add a custom macro

To create a variable, go to the "Spots" section.

Click the Variables button, then select Add Variable .

In the window that opens, fill in the fields:

Name - Enter a name that is convenient for you (for example, Имя ответственного менеджера ).

Value - Enter a unique name for the macro, starting with variable .
For example: variable__ manager or variable__product .
 

⚠️ Important: Each macro must have a unique value—duplicate names cannot be used.

Click the Save button.

The created variable is now available for use in all message templates and business process webhooks associated with this spot.

This variable is now available in message templates and webhooks for all business processes associated with this spot.


How to select and set a macro in a spot

Go to the editing section of the desired spot and open the "Variables" section.

Click the Add Variable button.

In the Variable field, select the name of the desired macro from the drop-down list.

In the Value field, specify the text that should be substituted instead of the macro.
For example:

for {variable__ manager } — Tatyana Nikulina

for {variable__product} – CRM SmartFlow

Click the "Make Changes" button.


How to use macros in messages

To use a variable in text, add it in curly braces.
For example:

Hello! Your request is being processed {variable__manager}.

If the spot settings indicate:

Value = Tatiana Nikulina

When sent, the message will look like this:

Hello! Your request is being handled by Tatiana Nikulina.


Examples of use

1. In the welcome message:

 

Good afternoon! This is your account manager SmartBot {variable__manager}

2. In the notification to the client:

Your order has been received! {variable__manager} will contact you to confirm the details.


💡 Custom macro examples

1. Macros for communication

Macro Example of meaning Purpose
{variable__actorname} Anna Petrova Actor's name
{variable__email} [email protected] Contact email
{variable__company} Alpha LLC Company name
{variable__product} CRM SmartLead Product or service name
{variable__city} Moscow City of the lead or office
{variable__phone} +7 (900) 123-45-67 Contact phone number
{ variable__source} Website  Lead source

2. Macros for personalizing messages

Macro Example of meaning Purpose
{variable__manager} Catherine The name of the manager who is responsible for the transaction
{variable__discount} 10% Discount applied to the customer
{variable__promo} SMART2025 Promo code for a promotion or mailing
{variable__deadline} November 15, 2025 The completion date of the task or promotion
{variable__meeting_time} 12:00 Time of meeting or call
{variable__link} https://mycompany.ru/offer  Link to a page or document

Actions with variables

  • Edit - change the settings of an already created variable.
  • Delete - Delete an unnecessary variable.

⚙️Editing columns

Clicking the "Edit" button opens the table settings window, where you can:

  • Customize the display/hiding of the desired columns using the icon 👁
  • Freeze columns at the beginning of the table – icon 📌
  • Drag and drop rows to change the display order

After making the necessary changes, you must click the "Make changes" button.


Using variables in webhooks

Custom macros (variables) defined in the spot settings can be used not only in message texts, but also in the "Webhook" block within business processes.
This allows you to transfer dynamic data to external systems: CRM, analytics, notification services, and any API.


General operating principle

The logic for using variables in a webhook is as follows:

  • Variables (custom macros) are created in the spot settings.
  • For each variable in a specific spot, a value is assigned.
  • The "Webhook" block is configured in the business process.
  • The webhook body uses macros in the format {variable__name} .
  • When executing a business process, macros are automatically replaced with real values.
  • A request already filled with data is sent to the external service.

Using variables in the webhook body

Variables can be inserted into any text field in the webhook:

  • request body (Body),
  • parameters,
  • Headers,
  • URL (if supported).

Example of a webhook with variables

 
{  "lead_name" : "{variable__leadname}" ,  "actor_name" : "{variable__actorname}" ,  "company" : "{variable__company}" ,  "status" : "{variable__status}" ,  "source" : "{variable__source}" } 

How it works in practice

If the spot settings are set to:

variable__leadname = Ivan Petrov

variable__actorname = Anna Smirnova

variable__company = TechnoPlus, LLC

variable__status = New lead

variable__source = Website

The following JSON will be sent to the external service:

{ “lead_name” : “Ivan Petrov” , “actor_name” : “Anna Smirnova” , “company” : “TechnoPlus LLC” , “status” : “New Lead” , ‘source’ : “Website” }


Using variables in a webhook URL

Variables can also be used directly in the request URL:

 
https://api.example.com/leads?manager={variable__actorname}& source ={variable__source}

When sending a webhook, the URL will be automatically converted to the actual values.


Using Variables in Headers

This is useful if you need to pass data for authorization or routing:

 
X -Manager-Name: {variable__actorname} X -Spot-Name: {variable__pipeline}

Important Features and Limitations

  • If the variable is not set to a value , an empty string will be passed to the webhook.
  • Macro names are sensitive to exact matches —missing a name will result in incorrect substitution.
  • Variables are substituted at the time of execution of the business process , and not when saving.

Recommendations for use

  • Use clear and consistent macro names ( variable__leadname , variable__deal_id ).
  • Only pass necessary data through webhooks to avoid overloading the request.
  • For complex integrations, use IDs and statuses rather than free text.
  • Test your webhook in a test scenario before using it in production.

Typical use cases

  • Transferring lead data to CRM
  • Sending information about the transaction status
  • Logging events to an external system
  • Data synchronization between spots
  • Integration with analytical and BI services

Benefits of Custom Macros

🔄 Automation: data is entered automatically, without manual editing.

💬 Personalization: each message looks individual and alive.

⚙️ Flexibility: you can create any variables to suit the needs of a specific spot.

🧩 Consistency: one template can be used across different processes and scenarios.

 

parameter setup variable configuration

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Creating a spot Telegram channel
  • Creating a Telegram Bot Spot
  • Creating a Telegram App Spot
  • Creating a personal Telegram spot
  • Setting up postbacks for deals

Copyright 2026 – MVP Project.

Knowledge Base Software powered by Helpjuice

Expand