Elevate your notes on WhatsApp with AI enhancements, seamlessly synced to Notion. π Boost your productivity and creativity effortlessly! β¨
Transform your WhatsApp note-taking into a dynamic experience with AI enhancements. Enjoy the convenience of handling various content types β from text and images to files and links β all seamlessly integrated and pushed to the Notion API separately. Elevate your productivity and creativity effortlessly as your ideas seamlessly flow from WhatsApp to Notion. This robust integration ensures a smooth, all-encompassing note-taking journey, letting you focus on your thoughts while technology takes care of the rest. Dive into a new era of collaborative productivity with this comprehensive AI-powered solution.
If you want to learn more about this project or have any questions, send me an email at (mailto:[email protected])
- TypeScript
- Gemini
- Langchain
- Twilio
- Notion API
notion-whatsapp-ai.mp4
-
Clone the repository
git clone https://github.com/skushagra9/Whatsapp-AI-Bot.git
-
Install dependencies
npm install
-
Set up your .env file
cp .env.example .env
-
Setup the env Variables Create your google gemini key, twillio account sid and auth token. Also Create the NOTION_ACCESS_TOKEN . Useful links: Notion API - https://developers.notion.com/docs/create-a-notion-integration Twilio API - https://www.twilio.com/en-us Gemini - https://ai.google.dev/
-
Now for NOTION_PAGE_ID, go to https://developers.notion.com/docs/working-with-page-content#creating-a-page-with-content, and follow the steps from there to create the page_id and give permissions. All the notes you will take on the whatsapp will get appended as pages to the page whose page_id you would set as NOTION_PAGE_ID.
-
Run the server
yarn tsc node dist/index.js
or you can use the
npm start
7.Install ngork from https://ngrok.com/docs/getting-started/
- Open another Terminal and run
ngrok http 3000
copy the link for the locally hosted server and paste in the twilio app Open Your App> Develop > Messaging > Try It Ouy > Send a Whatsapp message > Go to the sandbox settings > paste the link on the demolink space You can also host anywhere you want, It is because twilio accepts requests from trusted domains only.
Currently notion api doesn't support uploading files and media https://developers.notion.com/docs/working-with-files-and-media#uploading-files-and-media-via-the-notion-api