Automate WhatsApp Messages via Python

Заказчик: AI | Опубликовано: 31.01.2026

Whenever a new user registers on my site, a WhatsApp message must go out to that user automatically—no manual clicks, no delays. The site is already live; what is missing is a Python-based bridge that detects the “user-created” event and fires a WhatsApp Business message through an API such as Meta’s Cloud API (Twilio or another compliant gateway is fine if you prefer). Key points • Trigger: new-user registration event fired by the site (I can expose a webhook, or you can drop directly into the existing Python back-end). • Action: send a templated WhatsApp message to the phone number supplied during signup. • Language & tools: Python 3.x plus the official WhatsApp Business/Cloud API SDK or a well-maintained wrapper. Deliverables 1. Clean, well-commented Python module or script that receives the event and sends the WhatsApp message. 2. Config file or environment variables for phone number ID, access token, template ID, etc. 3. README with setup steps (pip install requirements, environment variables, how to run tests). 4. Quick test routine or curl example so I can verify end-to-end before production. Acceptance criteria • Message reaches the user within two seconds of registration. • Script exits with clear success/failure codes so I can log outcomes. • Works on an Ubuntu 22.04 server with only the documented dependencies. Everything else—styling the template, additional triggers, or receiving replies—can be discussed later; for now, the focus is one-way outbound messaging tied to the registration event.