Connect Trello to your WhatsApp Flow worker
First, deploy the backend worker to Cloudflare:
cd backend
npm install
wrangler login
wrangler deploy
Set your WhatsApp and Trello API credentials:
wrangler secret put WHATSAPP_TOKEN
wrangler secret put WHATSAPP_PHONE_NUMBER_ID
wrangler secret put TRELLO_API_KEY
wrangler secret put TRELLO_TOKEN
Create a KV namespace for storing configuration:
wrangler kv:namespace create TRELLO_CONFIG
wrangler.toml after running this command.Use this URL when creating the Trello webhook:
Run this command to register the webhook with Trello:
curl -X POST "https://api.trello.com/1/webhooks/" \
-d "key=YOUR_TRELLO_API_KEY" \
-d "token=YOUR_TRELLO_TOKEN" \
-d "callbackURL=YOUR_WEBHOOK_URL" \
-d "idModel=YOUR_BOARD_ID" \
-d "description=WhatsApp Flow Notifications"