AXL Knowledge Base

How to Automate Telegram Groups/Channels

~13 min read Section: Apps

After you connect and set up the Telegram Groups/Channels app, you can automate it. For how to connect the app, read "Telegram Groups/Channels App".

Automations let you automate your work with Telegram groups and channels. An automation handles your interactions with your account's customers: it reacts to what customers and team members do and responds with the actions you set up.

Set up the purchase check, send eligible buyers a group invitation, and approve their join requests through the connected app.

Before building the automation, prepare the product in Sales → Products & Services, connect a payment gateway, and connect the Telegram group or channel in the app. You also need a connected Telegram chat channel for the chatbot and a configured email sender for the purchase email. Use the same product throughout the purchase condition, product automation, and checkout.

Creating a Chatbot

AXL checks the purchase on the CRM contact linked to the Telegram account. Starting a chatbot or opening an invitation link alone does not prove that the person bought the product. The chatbot checks the linked contact's purchase, makes an eligible contact ready to join, and sends the invitation link. The person must then submit a join request in Telegram; the connected app can approve that request.

If the Telegram identity is not linked to the purchasing contact, resolve that link and verify the purchase before approving access. Test the eligible and ineligible paths before inviting buyers.

Go to Communications → Chatbots. Create a Simple chatbot or open an existing Simple chatbot; this type provides the startup links used below. For the creation form and settings, see Chatbots.

Chatbots list with the Add Chatbot button and three Northstar Academy chatbots.

Open the chatbot's "Automation" tab. It already contains the default "Chatbot Started" trigger, which AXL creates automatically with every chatbot. Next, select the "Condition" step and drag it onto the canvas. The condition needs to be configured: click "Settings", then "Configure Step".

Condition step on the chatbot canvas with its menu open: Configure Step, Copy Step, Delete Step.

In "Step Settings", select the "Product Purchase" condition and choose the product. Click "Save". This condition picks out the users who have bought the selected product.

The condition checks for an order containing the product that is fully paid or marked completed. Check whether manually completed orders should qualify for your offer. This is a purchase check at this point in the chatbot, not an ongoing check of group membership.

Condition step settings: Product Purchase with the Leadership Certificate — Core Course product selected.

Next, select the "Apps: Add to Telegram Group/Channel" step and drag it onto the canvas. This step also needs to be configured: click "Settings", then "Configure Step".

Apps: Add to Telegram Group/Channel step connected to the condition, with its Configure Step menu open.

In Step Settings, select the connected Telegram group or channel, then click Confirm. If the panel says no Telegram Groups app was found, complete the app connection first. Saving this action's settings does not send an invitation or add a Telegram member.

Telegram group or channel selection in the access action.

Next, select the "Send Message" step and drag it onto the canvas. Configure this step too.

Send Message step after the Telegram access step, with its Configure Step menu open.

In Step Settings, write the message for an eligible buyer and insert the Telegram invitation link for the connected group or channel. Use a link that requires a join request, as described in Creating an Invitation Link for a Group or Channel. Click Save to apply the message configuration.

Send Message step settings: step name Welcome + group invite link and a chat message with the Telegram group invitation link.

Add another "Send Message" step and drag it onto the canvas. This message goes to users who haven't bought the product.

In the step settings, explain that no qualifying purchase was found and give a support contact. Keep the group invitation out of this message. Click Save.

Send Message step settings for contacts without the purchase: step name No purchase found and the message text.

Connect Chatbot Started to the Product Purchase condition. Connect the purchased branch to Apps: Add to Telegram Group/Channel, then connect that action to the Send Message step containing the invitation link. Connect the other condition branch to the separate Send Message step for users who have not bought the product. Check both paths before turning on the activation switch.

For the qualifying path, the Telegram action records the contact as invited or processes their existing request. The buyer still needs to open the invitation and request to join. Check the resulting status in the Telegram Groups/Channels app; opening the link alone is not a completed membership test.

If someone gets the chatbot link without buying the product (for example, a friend who bought it shares the link), the chatbot sends a message asking them to contact support to resolve the issue.

Open the chatbot's Settings tab and find its startup links. Copy the link beside the connected Telegram chat channel. Use that destination in the purchase email and on the thank-you page.

Chatbot startup link in Settings.

The Link for the site and widgets on the platform switch adds a contact variable for AXL pages. Keep the appropriate contact-linking version for the destination where the link will appear. Confirm with a controlled contact that the received email or page opens the chatbot under the purchasing CRM identity; a generic or forwarded link does not establish that identity.

Configure the Product's Purchase Email

Use the product prepared earlier to create an automation that emails the buyer a link to the chatbot.

Go to Sales → Products & Services. Create a new product or select an existing one. For details on creating a product, read "Products and Services".

Products & Services list with the Add Product button and the Leadership Certificate — Core Course product.

Next, open the "Automation" tab. Select the "Product Purchased" trigger and drag it onto the canvas.

Open the trigger's configuration and review whether it should react to orders created by an admin as well as customer-created orders. Save the trigger settings before connecting the email step. Use the same choice when preparing your controlled test order.

Product automation canvas: the Product Purchased trigger connected to a Send Email step.

Next, open the "Actions" tab. Select the "Send Email" step and drag it onto the canvas. Connect the trigger to the step. Then configure the step: click "Settings", then "Configure Step".

Send Email step connected to Product Purchased, with its Configure Step menu open.

In the Send Email step settings, enter a step name and keep Contact's Email as the recipients. Choose No Template and click Create Email. Pick a ready layout on the From Built-In Template tab, or describe the email on the Create with AI tab. AI creation uses the account's AI allowance or paid usage. In the email editor, write the text and add a button with the Telegram chatbot startup link.

On the Settings tab of the email editor, fill in the Subject. You can add variables to the subject, preheader and text. A variable is a placeholder that AXL replaces with real data when it sends the email, such as the contact's name, email address, account name, or order number. For example, add #Contact.FirstName#, and each email will show the recipient's first name. Click Add Variables next to a field, or the variables button on the editor toolbar.

When you're done, click Create, then Save in the step settings.

Email editor: Settings tab with the subject and preheader containing variables, and an email with a Join the Telegram group button.

Check the trigger, its connection to Send Email, the recipient, sender, subject, and chatbot link. Turn on the activation switch when the automation is ready to respond to purchases.

A qualifying purchase can now start the email step. The buyer follows the link and starts the chatbot in Telegram; the chatbot then checks their linked contact's purchase. Inspect the recorded run and received email during your controlled test.

Active product automation: Product Purchased connected to the Telegram community invite email step.

Create the Website Pages in the Current Editor

Prepare a checkout page and a separate thank-you page inside your AXL website. The instructions below use the current page editor.

  1. Open Sites, select your website, and open Pages. If needed, create the website first using the Sites guide.
  2. Click New Page → Create from Scratch. Enter a title such as Leadership Community Checkout and a page address.
  3. Leave Create in the legacy editor (v1) unchecked. Keep Make Available off while preparing the page, then click Create.
  4. Open the new page's Design tab. Create a second page named Leadership Community Welcome for the thank-you step.

For the page fields, availability controls, and existing legacy pages, see Site Pages.

Configure the Checkout

In the checkout page's Chat tab, ask the AI assistant to add a payment block for your existing product, using a connected payment gateway and collecting the buyer's email. Name the exact product, such as Leadership Certificate — Core Course. AI editing uses your account's AI allowance or paid usage. Review the generated block before publishing.

Open Design and select the whole checkout block. Its checkout settings include Products, Buyer fields, Payment, and After payment. If you selected text or a button inside the block, click Edit checkout settings to select the containing checkout.

Under Products, use Add product to select the same product used by the chatbot's purchase condition. Check its displayed price and currency. For this single-product example, use All in the order.

If your offer contains several products, keep their currencies consistent and choose whether all products are included or the buyer chooses one or several. Review the resulting order total. Under Buyer fields, include Email and mark it required so the purchase email has a recipient.

Under Payment, select the connected Payment gateway. Review the payment button text and confirm the gateway supports your offer's currency. If you provide several payment buttons, check the gateway used by each one. Gateway setup is covered in Payment Gateways.

Under After payment, enter the full HTTPS address of the thank-you page in Thank-you page (after the funnel). Use an absolute address such as https://northstar.example.com/welcome, replaced with your actual page address. Leave the upsell list empty for this direct checkout-to-thank-you flow.

Checkout settings update the page draft as you edit. Open the Publish menu and choose Save Without Publishing, then Preview Without Publishing to review the draft. Check the product, buyer fields, payment method, and thank-you destination. The editor's visual preview is not proof that a payment or Telegram membership succeeded.

When the pages are ready for visitors, publish their designs, make the pages available, and enable the website. Open the checkout page's public address and verify the intended offer before sharing that address. Saving a draft alone does not publish it.

Create the Thank-You Page

The thank-you page gives the buyer another way to open the Telegram chatbot after payment. Keep the purchase condition in the chatbot: reaching a thank-you URL or receiving a forwarded link does not by itself grant group access.

Open the Leadership Community Welcome page created earlier and go to Design.

In Chat, ask the assistant to add a short welcome message and a Open Telegram Chatbot button using the startup link for your Telegram channel. Explain that the buyer should start the bot, receive the group invitation, and request to join. Review the generated text.

In Design, select the button's link and check its URL. It must open the intended chatbot through the connected Telegram chat channel. Check the contact-linking option described in Chatbot Settings; a raw placeholder must not be sent to a buyer as though it were a resolved contact identity.

Use Save Without Publishing and review the page. Open its Account Settings tab and copy the full address shown below Page URL. Paste it into the checkout's Thank-you page (after the funnel) field, then save that checkout draft too. Publish and make both pages available when you are ready to use the flow.

During a controlled purchase test, check that the intended product is purchased and the buyer reaches the thank-you page and receives the purchase email. They open the Telegram chatbot, start it, and pass the purchase condition under the linked CRM contact. The eligible path sends the group invitation; the buyer submits a join request, and the connected app processes it.

Also check a contact without the purchase. That path must send the support message without the group invitation. If the buyer uses a different Telegram account or the contact link is missing, resolve the identity and purchase before making an access decision. A shared chatbot or thank-you link must not be treated as proof of purchase.

For connection and group-management instructions, see Telegram Groups/Channels App.

Verify the full purchase-to-membership path

  1. Use the same product in the chatbot’s Product Purchase condition, the product automation, and the payment form. Use a Simple chatbot so it provides the startup link used by the email and thank-you page.
  2. Connect the purchased branch to Apps: Add to Telegram Group/Channel and then the invitation message. Connect the other branch to the message for contacts without the purchase.
  3. Check that both automations are active and that the email and thank-you button contain the intended chatbot link.
  4. With controlled test contacts, check the qualifying and non-qualifying paths. For the qualifying contact, inspect the email, thank-you page, chatbot response, join request, and resulting Telegram membership.
  5. If the Telegram account is not linked to the purchasing CRM contact, resolve the contact link before approving the request. A shared chatbot link alone must not grant access.