Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiunuwan/flask-twilio-webhook
A Flask application that processes incoming SMS messages via Twilio webhook and responds with areply message.
https://github.com/thiunuwan/flask-twilio-webhook
twilio twillio-webhook webhook whatsapp
Last synced: about 1 month ago
JSON representation
A Flask application that processes incoming SMS messages via Twilio webhook and responds with areply message.
- Host: GitHub
- URL: https://github.com/thiunuwan/flask-twilio-webhook
- Owner: thiunuwan
- Created: 2024-07-16T04:27:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T09:22:23.000Z (6 months ago)
- Last Synced: 2024-10-15T05:40:59.199Z (3 months ago)
- Topics: twilio, twillio-webhook, webhook, whatsapp
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Twilio Webhook
This project demonstrates the integration of a Flask application with Twilio to handle incoming messages via a webhook.
## Description
This Flask application receives incoming SMS messages using a Twilio webhook, processes the message content, and responds with a confirmation message including the received text.
When a message is sent to your Twilio number, Twilio will send a POST request to the `/api/message` endpoint of this application. The application then extracts the message content, processes it, and sends back a response acknowledging the received message.
## Usage
1. Clone the repository:
```bash
git clone https://github.com/thiunuwan/flask-twilio-webhook.git
cd flask-twilio-webhook
```2. Install the required dependencies:
```bash
pip install -r requirements.txt
```3. Start the Flask application:
```bash
python app.py
```4. Set up a ngrok tunnel (optional for local development):
```bash
ngrok http 5000
```5. Configure your Twilio number's webhook URL to point to your server's URL followed by `/api/message`.