This repository contains a WhatsApp chatbot project that utilizes Green API to interact with WhatsApp messages, fetch conversations, and store them in a Supabase database.
- Fetch messages from a WhatsApp group or private chat using Green API.
- Store the messages in a Supabase table.
- Filter out unwanted message types (e.g., reactionMessage, quotedMessage, extendedTextMessage, etc.).
- Ignore sensitive data using a
.envfile (never committed to source control).
-
Green API Account
- You need to register at Green API and obtain your
INSTANCE_IDandGREEN_API_TOKEN. - Make sure the instance is authorized (by scanning the QR code in the Green API dashboard).
- You need to register at Green API and obtain your
-
Supabase Account & Database
- Sign up at Supabase (if you haven’t already) and create a project.
- Create a table (e.g.,
whatsapp_messages) with the required columns. - Get your
SUPABASE_URLandSUPABASE_KEYfrom the project’s settings.
-
Python 3.x
- Make sure you have Python 3.x installed on your local machine.
-
Git
- To manage your repository locally, you should have Git installed.
- Clone the repository: bash git clone https://github.com//.git cd