Daily Weather SMS Alert

This workflow sends daily weather SMS alerts at 8 AM using OpenWeatherMap and Plivo APIs. Key nodes include Daily Trigger 8 AM (schedules execution), Validate Configuration (sets city, phone, timezone), Validation Check (ensures valid inputs), Set Location Data (stores location), Get Weather Data (fetches weather), Weather Data Check (validates API response), Format Weather Message (creates SMS text), Message Format Check (verifies message), Send SMS Alert (sends SMS via Plivo), Check SMS Success (confirms delivery), Success Log (logs success), Validation/Weather API/Message Format/SMS Error Handler (handles errors). It uses OpenWeatherMap and Plivo APIs.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Sign up at openweathermap.org to get an API key (API > API keys). Create a Plivo account at plivo.com to obtain Auth ID and Auth Token (Dashboard > API Credentials). In n8n, configure OpenWeatherMap API credentials (openWeatherMapApi) with the API key and Plivo API credentials (plivoApi) with Auth ID and Token. Update Validate Configuration node with your city (e.g., 'New York'), phoneNumber (e.g., '+1234567890'), and timezone (e.g., 'America/New_York'). No webhook is used. Handle errors like invalid city (VALIDATION_ERROR) or incorrect API key (WEATHER_API_ERROR).\n\nTesting and Deployment: Import the JSON into n8n. Test manually by executing the Daily Trigger at 8 AM. Verify and validate the Configuration sets city, phoneNumber, and timezone. Confirm that Get Weather Data retrieves data, and Format Weather Message creates a message like Good morning! New York Weather: 20°C. Check Send SMS Alert delivers SMS and Success Log outputs status: success. Test with empty city (city='') to trigger Validation Error Handler (VALIDATION_ERROR). Test with an invalid API key to trigger Weather API Error Handler (WEATHER_API_ERROR). Test with an incorrect phone number to trigger SMS Error Handler (SMS_SEND_ERROR). Monitor for rate limits (429: Too Many Requests). If SMS fails, verify Plivo credentials and phone format. Activate the workflow in n8n to enable daily scheduling. Deploy for reliable weather SMS alerts with robust error handling and validation.

$5.49

Workflow steps: 15

Integrated apps: scheduleTrigger, set, if

Daily Weather SMS Alert preview