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
  • The referral program in WhatsApp
  • Video version of the article
  1. How to...

...Create a referral program

Previous...Transfer UTM-labelsNext...Create temporarily available content

Last updated 2 years ago

The referral program in WhatsApp

The functionality of the created bot: 1. Generating the referral (partner) link; 2. Checking if the user is in the base already; 3. Notifying the inviter about the new referral; 4. Registering users in the base; 5. Requesting the list of referrals.

  1. So that we can understand from whom the user came from, the bot creates the link by the template: link = https://wa.me/(your number the bot is connected to)?text=You%20were%20recommended%20by%20#{phone}%20Hello

Instead of #{phone} the client’s phone number gets entered, the same number that requested its referral link.

The generated link we send not as the block’s text, but as an attachment (a link with a click notification), this way the link seems shorter.

2. So, we have a link through which new users come in to the bot. When moving through the partner link, the client gets an opened chat window with a pre-filled message (as seen below)

The checking command will work only if the bot finds the phone number from the received message from the client.

The third step:

  • set up an arrow with a regular expression (and check if the phone number is correct)

  • save the phone number from the message into the variable (like #{ref})

In other messengers it’s even easier to create such a referral system, because the data on the inviter is shared via a hidden parameter when moving, and the new client doesn’t need to send the text like “I was invited by this number”.

Video version of the article

divide the phrase into components with the help of the splitter command (instruction )

check the client’s (the one that clicked on the link) phone number to see if it already is someone’s referral (invited earlier by someone else and written down in our base). We do this with the column search function (instruction )

Now let’s put the inviter and the invitee in the database (instruction )

Let’s add a special command to the bot, a command that lets us see the list of referrals (instruction )

here
here
here
here