meta-vision-bridge
tldr:
sequenceDiagram
participant MG as Meta Glass
participant TW as Twilio WhatsApp
participant T as Twilio
participant WS as Webhook SVC
participant CGP as ChatGPT
Note over MG,T: Setup Phase
MG->>MG: Bind WhatsApp account
T->>T: Configure webhook to Webhook SVC
Note over MG,CGP: Main Flow
MG->>TW: Send text/image
TW->>T: Forward message
T->>WS: Send to webhook
WS->>CGP: Request response
CGP->>WS: Provide response
WS->>T: Send reply
T->>TW: Forward reply
TW->>MG: Deliver reply
prerequisite:
steps:
- register whatsapp account and connected to your meta view app
- register twilio and bind your whatsapp account from step1: you may need to setup a name for twilio's whatsapp account, for example, myAI
- setup webhook service for twilio:
git clone git@github.com:cdpath/meta-vision-bridge.gitcd meta-vision-bridge/webhook_svccp .env.example .env- Fill in the required environment in .env
docker compose up -d --buildordocker-compose up -d --build- set twilio sandbox webhook URL to your webhook service
usage:
for text conversation
Hey meta, send a message to myAI, {What is one plus one?}
> send a message to myAI, ready to send?
Send
> One plus one equals two.
for image conversation
Hey meta, take a photo and send to myAI
> send a photo to myAI, ready to send?
Send
Hey meta, send a message to myAI, {Describe the photo}
> send a message to myAI, ready to send?
Send
> {reply}