This should get Youtube, Instagram reel videos of cooking, baking etc and figure out the ingredients used in the video.
Need to figure out how to manage tokens, can easily run out of them while parsing some videos- Instagram Reels
- Deploy as an actual bot
- This would still work for only smaller videos, but cooking videos are generally shorter in size and hence we can get away with it.
- Setup twilio account and connect sandbox
- run local node, and tunnel to expose to public internet (using ngork or cloudlfared)
- Set this exposed localhost in your sandbox settings in twilio
- Send your code shown in twilio console to the bot to connect to it,
Get tokens used in the prompt with token
POST endpoint
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"prompt": "Your prompt here"
}' \
http://localhost:3000/token