assistants-hub / assistantshub.ai

Easy to use, scalable admin portal for deploying and managing AI Assistants
https://assistantshub.ai
MIT License
22 stars 11 forks source link

Implement Billing Enhancements and Stripe Integration for Assistant Management #19

Open santthosh opened 6 months ago

santthosh commented 6 months ago

Overview

This issue outlines the need for a comprehensive overhaul of our current billing system, aiming to introduce a more transparent and user-friendly billing experience. Key enhancements include the incorporation of a per-token pricing model within our database architecture, seamless integration of payment methods via Stripe during Assistant setup, and the introduction of a dedicated Pricing and Billing page for each Assistant.

Objectives

Implementation Steps

  1. Model Table Enhancement: Update the database schema to include pricing details for each token within the Model table. Ensure compatibility and easy retrieval of this information.

  2. Assistant Linkage: Develop backend functionality to tightly couple each Assistant with its corresponding Model, ensuring accurate tracking and billing.

  3. Setup Process Revision: Modify the Assistant setup workflow to remove the BYOK feature and integrate Stripe for payment processing.

  4. Pricing and Billing Interface: Design and implement a user-friendly Pricing and Billing page accessible from each Assistant's dashboard, displaying essential billing information and controls.

  5. Feature Management: Review the current platform features and tools, disabling any that are not yet ready for public use to maintain a streamlined user experience.

  6. Usage Tracking: Establish a robust token usage tracking system, ensuring it's accurately reflected in the user's billing and visible on the Pricing and Billing page.

Expected Outcomes