Lewati ke konten

SMS (Twilio)

Provider event Twilio memungkinkan pengiriman pesan SMS melalui API Twilio.

answers.json
{
"events-sms-twilio": {
"enabled": true,
"account_sid": "ACxxx...",
"auth_token": "xxx...",
"from_number": "+1234567890"
}
}
OpsiWajibDeskripsi
enabledYaAktifkan/nonaktifkan provider
account_sidYaAccount SID Twilio
auth_tokenYaAuth Token Twilio
from_numberYaNomor telepon pengirim (format E.164)
- id: send_sms
type: event
config:
provider: events-sms-twilio
action: send
to: "+1987654321"
body: "Your verification code is: {{code}}"
flows/send_notification.ygtc
name: send_notification
version: "1.0"
nodes:
- id: send_alert
type: event
config:
provider: events-sms-twilio
action: send
to: "{{user_phone}}"
body: "Alert: {{alert_message}}"
triggers:
- type: event
event_type: "alert.critical"
target: send_alert

Konfigurasikan webhook Twilio untuk menerima SMS masuk:

triggers:
- type: event
event_type: "twilio.sms.incoming"
target: handle_sms