Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sending notifications about events with subscribers from the Leeloo.Ai platform to a Telegram channel or group

Info

In order to solve the problem of timely receiving information about new leads in your tunnel, you can use the instructions below, which show how to use the “Action” block to send notifications about new leads with contact information and other variables to the Telegram group.

Sending notifications about events with subscribers from the http://Leeloo.ai platform to a Telegram channel or group

In order to promptly receive information about new leads in your tunnel, you can use the instructions below, which show how, using the “Action” block, configure the sending of data about new leads with contact information and other data that interests you so that you are always aware of new leads entering your sales tunnel.

...

1.2 Enter the command /newbot in the line and press enterImage Removed

...

1.3 Next, you need to set the name of the bot that will be displayed for Telegram users

...

1.4 Set the username for the bot username must end in _bot

(example leeloo199_bot)Image Removed

...

Your bot is ready. For further integration you need to copy the bot's API tokenImage Removed

...

If you already have a ready-made telegram bot or several, you need to go to BotFather

...

3 Add our Telegram bot to the groupImage Removed

...

4. In the group settings, make the group public and set the name using the English layout without spaces.Image Removed

...

5. You need to get a group Chat ID

...

In the page that opens, find ChatID and copy it

...

6. Go to the settings of the created group and change the group type back from “Public” to “Private”

for security purposes of information and contact details.

7. Forming a working link

https://api.telegram.org/botTOKENYOURBOTT/sendmessage?chat_id=ChatID

Where, accordingly, we change YOUR BOTT TOKEN to the API token that was generated in the BotFather chat, and we change ChatID to your copied ChatID from step 5.

8. We go to the tunnel from which we set up data transfer to Telegram, right-click and create a red “Action” block, go into it, click “Add” and select “Sending Sending an external request” requestfrom the list.

...

9. Выбираем метод POSTImage Removed

...

10. In the URL section, insert the link you previously generated (step 7.)

...

11. In the “Body” section we create a Json script depending on the purpose of data transfer according to the template where you can add any data you are interested in through variables.

...

Code Block
{

...



"text":"🎯 New subscriber: {name } \n 🔹 tel.: {phone} \n 🔹 Chat: https://app.leeloo.ai/chats/all/PersonID/ID/ "

...



}

12. To transfer data, use the variable functionality by replacing the template version of the corresponding variable

...