A referral code is a label for where a client came from. You create a code, copy the bot link that carries it and give the link to a partner or a blogger, or put it in an ad. Every new client who starts the bot through that link is assigned to the code, and the admin panel shows how many clients each source has brought.
The section is in the admin panel: CRM → Referrers (https://app.appexbots.com/app/admin/referrers). Codes are kept per bot: select the bot in the panel header first. The section is available for shops, restaurants, reply bots and lead bots.
The section answers one question: where did the client come from. The platform does not calculate or pay partner rewards; see "What the section does not do" below.
Click Add and fill in the form:
| Field | What to enter |
|---|---|
| Referral code | required, no spaces, up to 32 characters. Use Latin letters, digits, _ and -: the code goes into a Telegram link, and Telegram accepts no other characters there |
| Income percent | required, from 0 to 100. A reference field: note the terms you agreed with the partner. It does not affect any calculation |
| Comment | who is behind the code or where the link is placed, up to 128 characters |
A code is unique within a bot. You can change the code, the percent and the comment at any time with the pencil button in the table row. A code cannot be deleted.
Click the copy icon to the left of the code. The clipboard gets a link like this:
https://t.me/your_bot_name?start=CODE
Send this link to the partner or put it in the ad. For print, turn it into a QR code with any generator.
The client opens the link and taps Start in the bot. At that moment the code is written to the client's profile.
Assignment works only through a link of the form ?start=CODE. Direct links to the storefront and to products, the QR entry page and the web storefront do not assign a code.
The bot treats everything after ?start= in a link as a referral code. If a client comes through a link with a code that is not on the list, the code appears in the table on its own, with no percent and no comment. This is handy: you can hand out links like ?start=instagram straight away and add the percent and the comment later.
| Column | What it shows |
|---|---|
| Referral code | the code and the copy-link icon |
| Percent | the percent from the form |
| Clients count | how many clients of the bot are assigned to the code; the number opens the list of those clients |
| Start date | when the code was created or first used |
| Comment | the comment from the form |
The row with no code and the comment "No referral" stands for clients who did not come through a referral link. The table can be sorted by any column.
To count orders per source, open Clients, pick the code in the filter and look at the "Orders count" and "Orders total" columns for each client. For a grand total, export the list to CSV and sum the column in a spreadsheet.
| Referral code | Promo code | |
|---|---|---|
| What the client gets | nothing | a discount |
| When it applies | on the first start of the bot through the link | at checkout |
| What the admin panel shows | how many clients came from the source | which orders used the code |
You can combine them: give a partner both a referral link and a promo code for their audience.
If an AI agent (MCP) is connected to the shop, it has the tools of the CRM group: list_referrers returns the codes with client counts, save_referrer creates a code or changes the percent and the comment, and set_client_referral_code assigns a client to a code or clears the code.