Jan 16, 2023
It didn't need that much code to be honest. Majority of the time was spent in the whatsapp integration.
I used the open AI playground - https://beta.openai.com/playground
You can play around with the API here and get a code snippet.
I then just built a Nodejs API server on top of that snippet and used twilio for integrating with whatsapp.