Salebot.ai
  • About
  • The basics: How to use Salebot.ai
    • The basics of using the editing software
    • Creating blocks and the types of them
    • Arrows (connections)
    • Quick actions
    • Buttons
    • Condition and Matching selection
    • Links to messengers
    • Blocks "not State"
    • The first message
    • Description of the fields in the Editor
    • How to make the bot not interrupt the dialogue with the client
    • Sending attachments. Tracking links.
    • Getting files from the user
    • Editing text message
    • Random answers in a bot
    • Built-in variables
    • Reservation and recovery
    • Free Videos to master Salebot
  • Administration
    • Custom Roles
    • Reservation and recovery
  • Messengers and chats
    • WhatsApp
    • Whatsapp Business API
    • Telegram
    • Viber
    • Facebook Messenger
    • Official Instagram
    • Online-chat on a site
    • Merging contacts from different messengers
  • Variables
    • Variables
    • Calculator
    • API in Calculator
    • Variable comparison
    • Working with Dates and Time
    • Working with Arrays and Dictionaries
    • List of Useful Regular Expressions
    • How to use variables
  • CRM
    • AmoCRM
    • Bitrix24
  • Working with API
    • The editing software's API
    • Integration with third-party APIs
  • Integrations
    • Payment systems
      • Capusta.space
      • Coinpayments
      • INXY Payments
      • Paypal
      • Payeer.trade
      • Paynow
      • Stripe
      • Telegram
      • Fondy
      • Wayforpay
      • WalletOne
    • InfoBusiness
      • MyOwnConference
      • WebinarGeek
    • Analytics
      • Roistat
      • Facebook Pixel
      • Google Analytics
    • Google Sheets
    • Google Tables
    • Google Calendar
    • Apix-Drive
    • SMS services
    • Sendpulse
    • QuizGO
    • Tilda
    • Linkrr
    • Vakas-Tools
  • Mailings
    • Pipelines
    • Manual mailings
    • Mailing list
    • Stop mailing
    • How to filter clients for mailing
    • Transferring the client base. Uploading Whatsapp numbers
  • To partners
    • How to transfer the project to the customer
  • How to...
    • FAQ
    • ...Create a simple chatbot
    • ...Transfer UTM-labels
    • ...Create a referral program
    • ...Create temporarily available content
    • ...Connect analytics counters and configuring conversions through GTM
    • ...Move clients to another block
    • ...Create personalized images
    • ...Create a menu in Telegram
    • ...Connect Telegram-pay
  • Payment Services
    • Page 1
  • Mini-landing
  • Special capabilities
    • Python programming
    • Generating a QR-code
    • Generating a barcode
    • Barcode recognition on an image
    • Using Google Sheets for mailings
    • Sending requests to messengers and email
    • Working with promo codes
  • Our services
    • Pricing
    • Training courses
  • Group 1
Powered by GitBook
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
  1. Special capabilities

Sending requests to messengers and email

Sending notifications/requests on WhatsApp, Telegram, Viber, email.

PreviousUsing Google Sheets for mailingsNextWorking with promo codes

Last updated 3 years ago

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)

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)

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)

Where to find platform_id:

  1. You need to have a Telegram bot connected to the project

  2. There has to be at least one message to the bot from the account the notifications have to be sent to

  3. There in the list of dialogues you choose the one you need

  4. 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

message(client_id, text, message_id)
whatsapp_message(phone, text, message_id)

Move to the clients tab on Salebot:

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
How to format the text request
How to send requests to messengers
How to send requests/notifications to an email
tg_send_message(platform_id, text, client_message_id, reply_markup, parse_mode)