Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 953 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 953 Bytes

WhatsApp Bot

This should get Youtube, Instagram reel videos of cooking, baking etc and figure out the ingredients used in the video.


TODOs:

  1. Need to figure out how to manage tokens, can easily run out of them while parsing some videos
  2. Instagram Reels
  3. Deploy as an actual bot
  4. This would still work for only smaller videos, but cooking videos are generally shorter in size and hence we can get away with it.

Local dev

  1. Setup twilio account and connect sandbox
  2. run local node, and tunnel to expose to public internet (using ngork or cloudlfared)
  3. Set this exposed localhost in your sandbox settings in twilio
  4. 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