This workflow sends SMS via MSG91, logs details in Airtable, and notifies via Slack. Key nodes include Webhook Trigger (receives requests), Process SMS Request (validates inputs), and Message Length OK? (checks message length), Send SMS via MSG91 (sends short messages), Split Long Message (handles long messages), Send SMS Parts (sends message parts), Log SMS to Airtable (stores data), Send Success Notification (Slack alert), and Success Response (returns status). It uses MSG91 and Airtable APIs with Slack for notifications.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Configure Webhook Trigger with path send-sms and HTTP method POST. Obtain MSG91 API key from msg91.com (Dashboard > API Keys). Create an Airtable base at airtable.com with an SMS Logs table; get API key and Base ID from Account settings. Get Slack Webhook URL from slack.com (Apps > Incoming Webhooks, create in a channel like #sms-alerts). In n8n, configure credentials: MSG91 (API Key), Airtable (Token API), and Slack (Webhook URL). Handle errors like invalid phone number (400: Invalid phone number format) or missing MSG91 key (401: Unauthorized). Ensure your application sends POST requests with phone, message, or template_id.\n\nTesting and Deployment: Import the JSON into n8n. Test with curl -X POST http://your-n8n-instance/send-sms -d '{"phone":"+1234567890","message":"Test SMS"}'. Verify Process SMS Request validates phone_number and message. Check Message Length OK? routes messages >160 characters to Split Long Message. Confirm Send SMS via MSG91 or Send SMS Parts sends SMS. Ensure Log SMS to Airtable stores data in SMS Logs and Send Success Notification posts to Slack. Validate Success Response returns {"status":"success","request_id":"..."}. Test with invalid input ({"phone":"123"}) to trigger {"error":"Invalid phone number format"}. Monitor logs for issues like MSG91 rate limits (429) or missing Airtable table (404: Table not found). If SMS fails, verify the MSG91 key and phone format. Activate the workflow in n8n and integrate the webhook URL into your application. Deploy for automated SMS delivery and tracking.
$6.99
Workflow steps: 9
Integrated apps: webhook, code, if