Development of a WhatsApp Bot Integrated with ChatGPT API and Subscription Management

Job ID: 38031260

Budget: $30 – $250 USD

Project Title: Development of a WhatsApp Bot Integrated with ChatGPT API and Subscription Management

Project Description:

We are seeking a skilled Node.js developer to build a backend for a WhatsApp bot using the Venom Bot library. This bot will allow users to interact with the ChatGPT API through WhatsApp, simulating a conversation with an AI. The system must include user registration and login functionalities, ensuring that only registered users can access the bot. Additionally, the backend should integrate with Stripe to manage subscriptions and process payments.

Core Features:

1. WhatsApp Bot Integration:
- Utilize Venom Bot (https://github.com/orkestral/venom) to create a WhatsApp bot that facilitates communication between users and the ChatGPT API.
- Ensure the bot handles messaging flow and maintains session continuity.

2. User Authentication:
- Implement secure registration and login processes.
- Store user credentials and manage session tokens securely.

3. Subscription and Payment Integration:
- Integrate Stripe to handle subscription-based access and payment processing.
- Offer three subscription tiers:
- Free Tier: Allows up to 3 messages per day with a 75-word limit per message, using ChatGPT 3.5 Turbo.
- Paid Tier 1: Allows up to 50 messages per day with a 150-word limit per message, using ChatGPT 4 Turbo, and supports image inputs.
- Paid Tier 2: Offers unlimited messaging with a 375-word limit per message, using ChatGPT 4 Turbo, and supports image inputs.

4. API Integration:
- Integrate the backend with the ChatGPT API, configuring different API versions and capabilities based on the user’s subscription level.
- Handle image inputs for paid subscription plans, processing and forwarding these to the ChatGPT API.

5. Operational Requirements:
- Ensure the backend is scalable and can handle varying loads of user interactions and API calls.
- Implement robust error handling and logging mechanisms to troubleshoot and resolve issues promptly.

6. Testing and Deployment:
- Conduct thorough testing to ensure the bot operates seamlessly across all functionalities.
- Prepare the system for deployment and ensure it is fully functional for end-to-end testing on WhatsApp.

7. Documentation:
- Really detailed documentation about every single component and step needed to maintain, extend and run the code.

Deliverables:
- Complete source code of the project with detailed documentation.
- Detailed documentation again because this is really important.
- Deployment and operation guide.
- Post-deployment support for a predetermined period to address any immediate issues.

Project Timeline:
- Please add your estimated timeline with periodic milestones to review progress and integrate feedback.

Budget:
- Please specify your estimated cost for the entire project, splitting it into milestones.

Candidate Requirements:
- Proven experience in Node.js and building APIs.
- Experience with the Venom Bot library and WhatsApp APIs.
- Familiarity with Stripe API and payment gateway integration.
- Strong understanding of handling secure user authentication and session management.
- Prior experience with integrating third-party APIs, especially in AI or chatbot services.
- Excellent problem-solving skills and attention to detail.