| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Minimal FastAPI service to verify a 360dialog webhook, receive WhatsApp messages, store them in Postgres, and optionally echo replies.
# 360dialog D360_API_KEY=your-360dialog-api-key BASE_URL=https://waba.360dialog.io PHONE_NUMBER_ID=your-phone-number-id # optional, not required for echo VERIFY_TOKEN=change-me # used for GET /webhook verification # Postgres POSTGRES_USER=app POSTGRES_PASSWORD=app POSTGRES_DB=app POSTGRES_HOST=db POSTGRES_PORT=5432
Notes:
cd /Users/naveensabariguru/BTC/chatbot
docker compose up --buildService: http://localhost:8000 (health endpoint is not implemented; use /webhook for verification).
Expose your local server via ngrok or cloudflared.
Send a sample message event:
curl -X POST http://localhost:8000/webhook \
-H 'Content-Type: application/json' \
-d '{
"contacts": [{"wa_id": "14155550123"}],
"messages": [{"from": "14155550123", "type": "text", "text": {"body": "Hi"}}],
"entry": [{"changes": [{"value": {"messages": [{"from": "14155550123", "type": "text", "text": {"body": "Hi"}}]}}]}]
}'| Back | FazBrowse Home | New Git URL |