For a detailed guide, see the Smooch API Quickstart and our API QuickStart video tutorial:
- Clone the repository
- Go to the nodejs subdirectory
- Update index.js to include your secret key and key ID from your Smooch settings
- Install dependencies (
npm install
) - Run the server (
node index
) - Use ngrok to create a secure tunnel to port 8000(
ngrok http 8000
after ngrok is installed on your PC) - Create a Facebook page and connect it to Smooch
- Create a Webhook from your dashboard and point it at the full url for the /messages endpoint (e.g. https://MY-NGROK-DOMAIN.ngrok.io/messages )
- Send messages to your Facebook page and watch the auto-replies roll in
- Clone the repository
- Go to the python subdirectory
- Update main.py to include your secret key and key ID from your Smooch settings
- Install dependencies (
pip install -r requirements.txt
) - Run the server (
FLASK_APP=main.py flask run
) - Use ngrok to create a secure tunnel to port 5000(
ngrok http 5000
after ngrok is installed on your PC) - Create a Facebook page and connect it to Smooch
- Create a Webhook from your dashboard and point it at the full url for the /messages endpoint (e.g. https://MY-NGROK-DOMAIN.ngrok.io/messages )
- Send messages to your Facebook page and watch the auto-replies roll in