Sending attachments. Tracking links.

The article describes how to send files via bot and follow the link.

How to send attachments

To send an attachment, create an empty block and open the block editor on the right of the menu.

Uploaded attachment should not be more than 20 Mb

All attachment settings can be found in the "Attachment Settings" section. Let’s take a closer look at the icons that have appeared. ​

Link

The first icon is a link. In the field you can add a link (attachment URL) for the client to navigate or transfer the file you want to transfer (it will be shown in a separate link).

The attached file will be sent from the server salebot.pro

The uploaded file has priority over the link to the file. If you specify a link and attach the file at the same time, the file will be sent.

​ Under the URL field there are 2 sliders.

Slider: With a click notification, it means that when the user clicks on the link, the bot returns the answer in the form: link_was_pressed and links through the space. What is it for? With this event we can divide users into those who have followed the link and those who have not. And second, for example, you can "heat up" by sending them reminders.

Slider: Show the link preview - means that in messengers you will see what file you are sending besides the link itself

Video attachment

Icon - Video attachment: Choose when sending the video. In Whatsapp the video is displayed only by a link. If you need other messengers to make YouTube video come just by reference, you can run the link through any shortcut links or send it as an attachment with a click notification. ​

​ Attaching video is better by a link from any video hosting. The Salebot server downloads video files no more than 20Mb

Picture

Picture Icon - picture to be selected when sending the picture ​

File

Use the file icon when sending documents and any other files

Audio

The - Audio icon is used if the type of file sent is in audio format. ​

Audio file must be . ogg format and be less than 1MB

Example in Telegram

Let’s move on to practice! Let’s add automatic sending to our bot every 3 seconds. In each block we add different types of attachments and see how it looks in Telegram messenger. In the last block we add the type of attachment "Link with transfer notification" ​

In the figure below you can see what all these messages look like after sending. The order of sending is observed: link, video, picture, file, audio, link with notification.

​ Now let’s add from the last block two more. In one write "Clicked Link" in the second "DID NOT GO BY LINK". In the Condition field for the first block, write: link_was_pressed https://chatter.salebot.pro/s/5585. The condition for the second block is an empty arrow with a delay of 10 seconds. That is, if the user did not follow our link within 10 seconds, he moves to the block "DID NOT CLICK" (Figure 6).

Important: don’t forget to turn on the "Undo when changing to another block" button in the 10 second timer arrow, and remove the "Display as button" slider in the click notification arrow. ​

How do we get a click notification?

Option one: write manually in link_was_pressed space link format.

Option two: go through our whole chain in the bot to the end and click on the link. On the left go to the menu "Clients" and go to our last dialogue. The last message in the bot is the link we need

Now you can send different types of files/attachments, as well as track the links with the help of chat bot. You can use this functionality both for everyday purposes (mailing, sending a check sheet, etc.) and in more complex pipelines with further "heating" of customers depending on their actions in the bot.

The link with the click notification looks specific and therefore it makes sense to place these links in buttons. To do this, you need to create a variable with a tracking link and place it in the button.

To create a tracking link, you must call the proxy function in the calculator.

How to place the link in the button, you can read in the article:

pageButtons

Last updated