This project integrates WhatsApp with Strapi, LangChain.js, and GPT-4o to provide a tech support solution. It allows users to interact with a chatbot that can answer technical support questions by retrieving information from documents stored in Strapi.
- Integration with WhatsApp for seamless communication.
- Utilizes LangChain.js for document processing and retrieval.
- Employs GPT-4o for generating responses to user queries.
- Caches documents to improve performance and reduce redundant downloads.
- Supports both PDF and text documents.
- @langchain/community: ^0.2.12
- @langchain/core: ^0.2.8
- @langchain/openai: ^0.1.3
- axios: ^1.7.2
- dotenv: ^16.4.5
- langchain: ^0.2.5
- pdf-parse: ^1.1.1
- puppeteer: ^22.12.0
- qrcode-terminal: ^0.12.0
- whatsapp-web.js: github:pedroslopez/whatsapp-web.js
navigate into your working directory and run the following commands to run the App. Don't forget to also add your openAI API key in the .env file.
npm install
node .\whatsapp_integration.mjs