This workflow sends SMS via Twilio with validation, rate limiting, and logging. Key nodes include Webhook Trigger (receives requests), Input Validation (sets phone/message), Validation Check (ensures valid input), Process SMS Request (formats data), Rate Limit Check (verifies limits), Rate Limit Decision (routes based on limit), Send SMS via Twilio (sends SMS), Log SMS to Database (logs details), Send Success Notification (sends Slack alert), Success Response (returns success), and error-handling nodes (Validation Error Response, Rate Limit Error Response, Error Handler, Log Error Details, Error Alert Notification). It uses Twilio and Slack APIs.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Get Twilio credentials from twilio.com (Account > API Keys & Tokens, create API Key; note Account SID and From Number). Set up a Slack webhook at api.slack.com (Apps > Incoming Webhooks, create webhook for #sms-alerts). In n8n, configure credentials: Twilio (Account SID, API Key, From Number), Slack (Webhook URL). Optionally, set an audit webhook URL for logging (e.g., https://your-logging-endpoint.com/api/sms-logs). Configure Webhook Trigger path (send-sms) and integrate with your app to send POST requests with phone and message. Handle errors like invalid phone (400: Invalid input) or Twilio credentials (401: Unauthorized).\n\nTesting and Deployment: Import the JSON into n8n. Test by sending a POST request to the webhook URL (displayed in Webhook Trigger) with JSON: {"phone": "+12345678901", "message": "Test SMS"}. Verify Input Validation sets phone/message and Validation Check passes. Confirm Process SMS Request formats phone number and Rate Limit Check allows the request. Ensure Send SMS via Twilio sends the SMS and Log SMS to the Database logs details. Check Success Response returns status 200 with sid. Test with an invalid phone to trigger Validation Error Response (400: Invalid phone number). Use an invalid Twilio API key to trigger Error Handler (500: sms_send_failed). Monitor logs for rate limits (429: Rate limit exceeded). If SMS fails, verify Twilio credentials and phone format. Activate the workflow in n8n and ensure the webhook is live. Deploy for automated SMS sending with logging
$6.99
Workflow steps: 16
Integrated apps: webhook, set, if