Skip to content

About

Python integration with the WhatsApp Cloud API (Meta) to send real messages programmatically

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

WhatsApp Automation with Python

Overview

This project demonstrates how to send WhatsApp messages programmatically using the Meta WhatsApp Cloud API.

It simulates a real-world backend integration scenario, where a system communicates with external services to automate workflows.

Features

  • Send real WhatsApp messages via API
  • Secure authentication using environment variables
  • Clean and simple Python implementation

Tech Stack

  • Python
  • Requests
  • WhatsApp Cloud API (Meta)

Requirements

  • Python 3.8+
  • requests

Setup

Create a .env file with the following variables:

WHATSAPP_TOKEN=your_token_here
PHONE_NUMBER_ID=your_phone_number_id_here
TO_NUMBER=5511999999999

Output

Message sent successfully Recipient: 5511970626081 Message ID: ...

Run

python automation.py

About

Python integration with the WhatsApp Cloud API (Meta) to send real messages programmatically

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages