Alert
With Alert component, you can send yourself notifications about any processes in the bot via 3 channels: Telegram, SMTP and Mandrill. For example, you can configure notification of new messages from clients received through Chat component.
Telegram
Let's set up Alert component in a way Telegram receives a link to a dialogue with a user who needs operator's help.
1. Move Alert component to the screen. Put it above Chat component.
2. Select the Channel to send — Telegram.
3. Open Telegram app and write the /start to @notification_from_bot.
4. Copy the received Telegram ID.
5. Fill in the Message text field. This text will be received by the operator with notification in Telegram.
6. Insert the received Telegram ID.
7. In Sender name field, specify the name of the bot in the notification.
8. In Email header field, write the subject of the notification.
9. Save the project.
In Alert's text, you can move lines with the {{\n}} tag like this:
10. Go to Dialogues section and copy the link from the browser address bar.
11. Paste the link into Message text field. Add {{this_user.bm_id}} to the end of the link.
12. Save the changes.
You can add your own notification for each manager. To do this, each manager needs to get his ID in bot @notification_from_bot and add new notifications under the existing one.
SMTP Yandex
Official setup help from Yandex →
1. Fill in Message text field in Alert component. The operator will receive this text in a letter when notified by mail.
2. Select SMTP in Channel to send field.
3. Specify the Recipient email address. You can specify one or more recipients, separating their addresses with commas without spaces.
4. Specify the Sender email address.
5. Enter the Sender name.
6. Write the Email header.
7. Select the screen which the user will be forwarded to after sending the email.
8. In SMTP server field, specify the server address — smtp.yandex.ru.
9. Specify the port number — 465.
10. In Login field, enter your Yandex mail username.
11. In Password field, enter your Yandex mail password. All passwords are stored encrypted.
12. Save the project.
SMTP Google
Official setup help from Google →
1. Fill in Message text field in Alert component. The operator will receive this text in a letter when notified by mail.
2. Select SMTP in Channel to send field.
3. Specify the Recipient email address. You can specify one or more recipients, separating their addresses with commas without spaces.
4. Specify the Sender email address.
5. Enter the Sender name.
6. Write the Email header.
7. Select the screen which the user will be forwarded to after sending the email.
8. In the SMTP server field, specify the server address — smtp.gmail.com.
9. Specify the port number — 465.
10. In Login field, enter your Google mail login.
11. In Password field, enter your Google Mail password. All passwords are stored encrypted.
Mandrill
Mandrill is a mail service from Mailchimp for sending transactional emails.
1. Get a token in Mandrill on Settings tab. Copy it.
2. Fill in Message text field in Alert component. The operator will receive this text in a letter when notified by mail.
3. Select Mandrill in the Channel to send field.
4. Specify the Recipient email address.
5. Specify the Sender email address.
6. Enter the Sender name.
7. Write the Email header.
8. Select the screen which the user will be forwarded to after sending the email.
9. In Mandrill token field, insert the previously received token.
10. Save the project.