SmartbotPro
  • Smartbot Pro – messenger marketing tool
  • Most important
  • Mini-course
    • Registration and personal account
    • Initial scripting tools
    • Creating the first script
    • Users and collection of information
    • Applications, variables and managers
    • Data validation
    • Collection of applications for a webinar within Telegram
    • Testing unpublished scripts
    • Newsletters
    • Template "Test with a set of points"
    • Statistics
    • Interface hacks
  • Beginning of work
    • Registration in the service
    • More about scripts
    • How to add messenger
      • Adding Telegram
        • Adding a bot to a group chat in Telegram
      • Adding ВК
      • Adding Viber
      • Connecting a channel to a script
      • Linking a social network account
  • Scripts
    • Basics
      • Create a script
      • Script templates
      • Editor interface
      • Publishing a script
      • Script testing
      • How the script is chosen
    • Script events
      • Message from user
      • No appropriate script
      • First message
      • VK Events
      • Webhook
    • Actions
      • Send a message
        • Buttons
      • Process message
      • Extract data
      • Change context
      • Write to statistics
      • Send Notification
      • Switching to another script
      • Working with the user
      • Set variable
      • Scheduled transitions
      • Run SmartQuery
    • Conditions
      • Condition
      • Condition with options
      • Conditions of VKontakte
    • Variables
      • Special Variables
      • User variables
      • Global variables
      • Variable %ref%
    • Acceptance of payment
    • Telegram bot menu
    • Integrations
      • Google-таблицы
      • http request
      • amoCRM
      • Get Course
      • Yukassa for receiving payments
    • Reactions
  • Newsletters
  • Settings
    • Projects
    • Cabinets
  • Information sections
    • Statistics
    • Users
  • SmartQuery
    • Introduction
    • Language syntax
    • Function Reference
  • The documents
    • Privacy Policy
    • Terms of service
    • Subscription and rates
Powered by GitBook
On this page
  • First a little theory
  • How to use it?
  1. Scripts
  2. Variables

Variable %ref%

Here we will tell you how to create referral links based on Smartbot Pro

PreviousGlobal variablesNextAcceptance of payment

Last updated 2 years ago

First a little theory

A referral link is a link that contains information from where the user follows it.

For example, we place a link in an advertising campaign, and users get to our bot through it.

The bot reads the link, extracting the %ref% parameter, which specifies the referral source.

Description of the %ref% and %ref_source% parameters can be seen in the "Variables" section:

How to use it?

Write a link like this...

  • For VK groups:

  • For Telegram:

https://t.me/channel?start=

Instead of "group" or "channel" - the name of your community from the address bar. After the = sign, indicate in Latin letters the source where you place this link, for example, "advertisement".

So the finished link might look like this:

  • https://vk.me/club192634149?ref=advertisement

  • https://t.me/smartbotpro?start=advertisement

After clicking on the link, the "reklama" parameter will be saved as a person's user variable, and in the future, the parameter can be used for conditions in the script.

Now you know how to create and apply referral links in Smartbot Pro!

https://vk.me/группа?ref=