You want your customers to buy directly inside Telegram — DM the bot, get the product. No web shop in front, no marketing site. This playbook covers connecting a Telegram bot, configuring it for sales, and optionally hiding the web storefront entirely.Documentation Index
Fetch the complete documentation index at: https://docs.shoppex.io/llms.txt
Use this file to discover all available pages before exploring further.
What you’ll have at the end
- A Telegram bot connected to your Shoppex shop.
- The bot answers buyer questions and creates payment links right in the chat.
- Broadcasts and journeys to bring buyers back.
- (Optional) The web storefront at
yourshop.shoppex.iodisabled, so the bot is the only sales channel.
Prerequisites
- A Telegram bot you’ve created via @BotFather on Telegram. You’ll need its API token —
the long string BotFather sends you after
/newbot. - A Shoppex shop with at least one payment gateway connected.
Step 1 — Connect the bot
Open your Shoppex dashboard at Store → Telegram (/store/telegram).
- Click Connect bot or Add bot.
- Paste the bot token from BotFather.
- Save.
Step 2 — Turn on the AI sales agent
In the same Telegram page, configure the bot’s Agent. There are three modes:CUSTOMER_SALES— the bot talks to buyers, answers product questions, creates payment links when they want to buy.MERCHANT_ASSISTANT— the bot is your own helper (DM the bot to check orders, get daily revenue, etc.). Not for buyers.BOTH— same bot serves buyers and you, distinguished by who’s chatting.
CUSTOMER_SALES (or BOTH if you also want to use
the bot yourself).
Step 3 — Test a purchase
DM your bot from a different Telegram account. Ask about a product, or just say “I want to buy X”. The agent will:- Find the product in your catalog.
- Reply with the product info and a Pay now button.
- Tapping the button opens the Shoppex hosted checkout in Telegram’s in-app browser.
- The buyer pays through your normal gateways.
- Order confirmation is delivered both via email and (if the buyer linked Discord/Telegram to their customer profile) directly in the chat.
checkout.shoppex.io, not inside Telegram natively. The bot
generates a Shoppex payment link and hands it over via an inline button.
Step 4 — Build out user management
Once buyers start interacting, the Users section of the Telegram dashboard fills up. You can:- See who’s chatted with the bot (with last-seen, total interactions).
- Toggle per-user notification settings.
- Build Segments — saved filters like “buyers in the last 30 days”, “VIPs over $500”.
Step 5 — Set up broadcasts and journeys
For ongoing engagement: Broadcasts are one-off announcements to a list. Draft a message, pick a segment or all users, schedule it for later, or send immediately. Statuses:DRAFT, SCHEDULED, SENDING,
COMPLETED, CANCELLED, FAILED.
Journeys are automated triggers — they fire when an event happens for a user. Available
trigger types:
ORDER_COMPLETED— thank-you flow after a purchase.ABANDONED_CART— nudge buyers who opened checkout but didn’t pay.PAYMENT_REMINDER— invoice past due reminder.SUBSCRIPTION_RENEWAL— renewal heads-up.MANUAL— fired by you or the API on demand.
Step 6 — (Optional) Disable the web storefront
If you genuinely don’t want anyone hittingyourshop.shoppex.io, you can turn off the
managed storefront from Settings → Shop. The field is managedStorefrontEnabled — set
it to off, optionally provide a redirect URL (e.g. to your Telegram bot’s t.me link).
After that, the public storefront URL no longer serves your shop. The Telegram bot is the
only entry point. Payment links and direct checkout URLs still work fine — they’re
independent of the storefront.