Salebot.ai
Search…
Sending requests to messengers and email
Sending notifications/requests on WhatsApp, Telegram, Viber, email.
All bots created on Salebot can send requests not only to email addresses but to various messengers as well.

How to format the text request

You can use the built-in variable #{order} as the text, but you can create your own text as well.

How to send requests to messengers

No matter what messenger you send the request to, everything is set up the exact same way
The request can be sent to any messenger connected to Salebot
Sending notifications to messengers works only with Premium subscription plan
To send requests to messengers, use this function:
message(client_id, text, message_id)
Parameters:
client_id — the client’s id on Salebot whom you need to send the message to
You can find the client’s id in the Clients section on Salebot by clicking on the dialogue with them
text — the message text. You can use a variable (don’t forget to set it up first) or you can write the text in quotation marks
message_id — id of the sending block (optional parameter)
message(client_id, text, message_id)

WhatsApp

To send the message on WhatsApp through a phone number, use this function:
whatsapp_message(phone, text, message_id)
Parameters:
phone — phone number in brackets
text — the message text. You can use a variable (don’t forget to set it up first) or you can write the text in quotation marks
message_id — id of the sending block (optional parameter)
whatsapp_message(phone, text, message_id)

How to send requests on Telegram

VIDEO VERSION
The parameter client_id has to be changed to the client’s id in the editor
You have to use this function:
tg_send_message(platform_id, text, client_message_id, reply_markup, parse_mode)
Parameters:
platform_id — id on Telegram of the person you need to notify
client_message_id — id of the message you need to quote (optional parameter)
reply_markup — buttons settings (optional parameters)
parse_mode — text format (bold/cursive) (optional parameter)
tg_send_message(platform_id, text, client_message_id, reply_markup, parse_mode)

Where to find platform_id:

  1. 1.
    You need to have a Telegram bot connected to the project
  2. 2.
    There has to be at least one message to the bot from the account the notifications have to be sent to
  3. 3.
    Move to the clients tab on Salebot:
  4. 4.
    There in the list of dialogues you choose the one you need
  5. 5.
    And copy this number:
Then you paste it in the place of platform_id in the function’s parameter
If you need to set this all up so that your message will be sent to several Telegram accounts, then you copy the function and place a different id.

How to send requests/notifications to an email

This functionality works for any subscription plan
Move to the project’s setting and in the field “Email” paste your email address
After that all requests from the red block (“End of data collection” type) will be sent to your email. You can learn how to create such a block in this article
Copy link
On this page
How to format the text request
How to send requests to messengers
WhatsApp
How to send requests on Telegram
How to send requests/notifications to an email