Skip to content

Notifications

Send messages via Slack, Discord, Teams, Telegram, email, SMS, and WhatsApp.

9 modules

ModuleDescription
Gọi điện TwilioThực hiện cuộc gọi thoại qua Twilio
Gửi SMS TwilioGửi tin nhắn SMS qua Twilio
Gửi tin nhắn DiscordGửi tin nhắn đến Discord qua webhook
Gửi EmailGửi email qua SMTP
Gửi tin nhắn SlackGửi tin nhắn đến Slack qua webhook
Gửi Tin Nhắn TeamsGửi tin nhắn đến Microsoft Teams qua webhook đầu vào
Gửi tin nhắn TelegramGửi tin nhắn qua API Bot Telegram
Gửi Tin Nhắn WhatsAppGửi tin nhắn qua WhatsApp Business API (Meta Cloud API)
Send NotificationSend notification to Telegram, Discord, Slack, LINE, or any webhook URL

Modules

Gọi điện Twilio

communication.twilio.make_call

Thực hiện cuộc gọi thoại qua Twilio

Parameters:

NameTypeRequiredDefaultDescription
account_sidstringNo-Account SID Twilio (hoặc sử dụng biến env TWILIO_ACCOUNT_SID)
auth_tokenstringNo-Auth Token Twilio (hoặc sử dụng biến env TWILIO_AUTH_TOKEN)
from_numberstringYes-Auth Token Twilio (hoặc sử dụng biến env TWILIO_AUTH_TOKEN)
to_numberstringYes-Số điện thoại Twilio
twiml_urlstringYes-Số điện thoại người nhận

Output:

FieldTypeDescription
sidstringThe sid
statusstringOperation status (success/error)
tostringThe to
fromstringThe from

Example: Make automated call

yaml
from_number: +1234567890
to_number: +0987654321
twiml_url: https://example.com/voice.xml

Gửi SMS Twilio

communication.twilio.send_sms

Gửi tin nhắn SMS qua Twilio

Parameters:

NameTypeRequiredDefaultDescription
account_sidstringNo-Account SID Twilio (hoặc sử dụng biến env TWILIO_ACCOUNT_SID)
auth_tokenstringNo-Auth Token Twilio (hoặc sử dụng biến env TWILIO_AUTH_TOKEN)
from_numberstringYes-Số điện thoại Twilio (ví dụ: +1234567890)
to_numberstringYes-Số điện thoại Twilio (ví dụ: +1234567890)
messagestringYes-Số điện thoại người nhận (ví dụ: +1234567890)

Output:

FieldTypeDescription
sidstringNội dung tin nhắn SMS
statusstringNội dung tin nhắn SMS
tostringSID
fromstringTrạng thái thao tác (success/error)

Example: Send notification SMS

yaml
from_number: +1234567890
to_number: +0987654321
message: Your order has been shipped!

Example: Send verification code

yaml
from_number: +1234567890
to_number: +0987654321
message: Your verification code is: 123456

Gửi tin nhắn Discord

notification.discord.send_message

Gửi tin nhắn đến Discord qua webhook

Parameters:

NameTypeRequiredDefaultDescription
webhook_urlstringNo-URL webhook Discord (từ env.DISCORD_WEBHOOK_URL hoặc nhập trực tiếp)
contentstringYes-URL webhook Discord (từ env.DISCORD_WEBHOOK_URL hoặc nhập trực tiếp)
usernamestringNo-Tin nhắn cần gửi
avatar_urlstringNo-Ghi đè tên bot (tùy chọn)

Output:

FieldTypeDescription
statusstringURL hình ảnh avatar bot (tùy chọn)
sentbooleanTrạng thái thao tác (success/error)
messagestringGửi tin nhắn đến kênh Discord qua URL webhook

Example: Example

yaml
content: Workflow completed successfully!

Gửi Email

notification.email.send

Gửi email qua SMTP

Parameters:

NameTypeRequiredDefaultDescription
smtp_serverstringYes-Tên máy chủ SMTP (ví dụ: smtp.gmail.com)
smtp_portnumberNo587Tên máy chủ SMTP (ví dụ: smtp.gmail.com)
usernamestringYes-Cổng SMTP (587 cho TLS, 465 cho SSL)
passwordstringYes-Tên đăng nhập SMTP
from_emailstringYes-Mật khẩu SMTP (sử dụng biến env!)
to_emailstringYes-Địa chỉ email người gửi
subjectstringYes-Địa chỉ email người nhận
bodytextYes-Chủ đề email
htmlbooleanNoFalseNội dung email (hỗ trợ HTML)

Output:

FieldTypeDescription
statusstringGửi nội dung dưới dạng HTML
sentbooleanTrạng thái thao tác (success/error)
messagestringTrạng thái thao tác (success/error)

Example: Example

yaml
smtp_server: smtp.gmail.com
smtp_port: 587
from_email: bot@example.com
to_email: user@example.com
subject: Workflow Complete
body: Your automation workflow has finished successfully.

Gửi tin nhắn Slack

notification.slack.send_message

Gửi tin nhắn đến Slack qua webhook

Parameters:

NameTypeRequiredDefaultDescription
webhook_urlstringNo-URL webhook Slack (từ env.SLACK_WEBHOOK_URL hoặc nhập trực tiếp)
textstringYes-URL webhook Slack (từ env.SLACK_WEBHOOK_URL hoặc nhập trực tiếp)
channelstringNo-Tin nhắn cần gửi
usernamestringNo-Ghi đè kênh mặc định (tùy chọn)
icon_emojistringNo-Ghi đè tên bot (tùy chọn)

Output:

FieldTypeDescription
statusstringEmoji icon bot (tùy chọn)
sentbooleanTrạng thái thao tác (success/error)
messagestringTrạng thái thao tác (success/error)

Example: Example

yaml
text: Workflow completed successfully!

Example: Example

yaml
text: Alert: New user registered!
channel: #alerts
username: Alert Bot
icon_emoji: :warning:

Gửi Tin Nhắn Teams

notification.teams.send_message

Gửi tin nhắn đến Microsoft Teams qua webhook đầu vào

Parameters:

NameTypeRequiredDefaultDescription
webhook_urlstringYes-URL webhook đầu vào của Microsoft Teams
messagetextYes-Nội dung tin nhắn để gửi
titlestringNo-Tiêu đề thẻ tin nhắn (tùy chọn)
colorstringNo-Mã màu chủ đề hex (tùy chọn)
sectionsarrayNo-Các phần MessageCard bổ sung (tùy chọn)

Output:

FieldTypeDescription
okbooleanHoạt động có thành công hay không
dataobjectDữ liệu phản hồi với trạng thái và webhook_url

Example: Example

yaml
webhook_url: https://outlook.office.com/webhook/...
message: Deployment completed successfully!
title: Deploy Status
color: #00FF00

Gửi tin nhắn Telegram

notification.telegram.send_message

Gửi tin nhắn qua API Bot Telegram

Parameters:

NameTypeRequiredDefaultDescription
bot_tokenstringNo-Token bot Telegram (từ env.TELEGRAM_BOT_TOKEN hoặc nhập trực tiếp)
chat_idstringYes-Token bot Telegram (từ env.TELEGRAM_BOT_TOKEN hoặc nhập trực tiếp)
textstringYes-ID chat Telegram hoặc tên kênh
parse_modeselect (Markdown, HTML, None)NoMarkdownTin nhắn cần gửi

Output:

FieldTypeDescription
statusstringChế độ định dạng tin nhắn
sentbooleanTrạng thái thao tác (success/error)
message_idnumberTrạng thái thao tác (success/error)
messagestringThông báo đã được gửi chưa

Example: Example

yaml
chat_id: @mychannel
text: Workflow completed!

Example: Example

yaml
chat_id: 123456789
text: *Bold* _italic_ `code`
parse_mode: Markdown

Gửi Tin Nhắn WhatsApp

notification.whatsapp.send_message

Gửi tin nhắn qua WhatsApp Business API (Meta Cloud API)

Parameters:

NameTypeRequiredDefaultDescription
phone_number_idstringYes-ID số điện thoại người gửi WhatsApp Business
tostringYes-Số điện thoại người nhận với mã quốc gia
messagetextYes-Nội dung tin nhắn để gửi
access_tokenpasswordYes-Meta access token cho WhatsApp Business API
message_typeselect (text, template)NotextLoại tin nhắn để gửi
template_namestringNo-Tên mẫu tin nhắn WhatsApp (bắt buộc nếu message_type là template)
template_languagestringNoenMã ngôn ngữ mẫu

Output:

FieldTypeDescription
okbooleanHoạt động có thành công hay không
dataobjectDữ liệu phản hồi với trạng thái, message_id, và người nhận

Example: Example

yaml
phone_number_id: 1234567890
to: +1987654321
message: Your order has been shipped!
access_token: EAAx...

Example: Example

yaml
phone_number_id: 1234567890
to: +1987654321
message: 
access_token: EAAx...
message_type: template
template_name: hello_world
template_language: en

Send Notification

notify.send

Send notification to Telegram, Discord, Slack, LINE, or any webhook URL

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-Webhook URL (Telegram, Discord, Slack, or custom)
messagestringYes-Notification message content
titlestringNo-Notification message content
chat_idstringNo-Optional title (for Discord, Slack, Teams)

Output:

FieldTypeDescription
okbooleanTelegram chat ID (required for Telegram)
platformstringWhether notification was sent successfully
status_codenumberWhether notification was sent successfully
responseobjectDetected platform (telegram, discord, slack, etc.)

Example: Send Telegram notification

yaml
url: https://api.telegram.org/bot<TOKEN>/sendMessage
message: BTC: $42,350 (+1.7%)
chat_id: 123456789

Example: Send Discord notification

yaml
url: https://discord.com/api/webhooks/xxx/yyy
message: Price alert triggered!
title: Crypto Alert

Example: Send Slack notification

yaml
url: https://hooks.slack.com/services/xxx/yyy/zzz
message: Deployment completed successfully

Released under the Apache 2.0 License.