Skip to main content

GenZBot is a beginner-friendly Python package designed to provide hands-on experience in building AI chatbots from scratch. With support for multiple LLMs and customizable options for behavior and design, it simplifies chatbot development while introducing essential concepts for GenAI projects.

Project description

GenZBot: Your Gateway to AI Chatbot Creation! 🤖✨

Welcome to GenZBot, the ultimate package designed to help beginners build AI chatbots from scratch. Whether you're just stepping into the world of Generative AI or looking to understand chatbot integration, GenZBot has got you covered! 🚀


Features 🌟

  • Easy Setup: Create an AI chatbot project structure with a single command.
  • Multiple LLMs: Choose from 5 powerful language models:
    • openai 🔑 (requires a paid API key from OpenAI)
    • gemini 🌌 (free API key from Google AI Studio)
    • gemma 🧠
    • llama 🦙
    • mixtral 🌀
  • Customizable Templates: Two designs available:
    • Plain
    • Galaxy 🌠
  • Personalization: Set your bot's behavior and name easily.
  • Automated Environment Setup: Virtual environment creation, dependency installation, and app execution are just one command away.

Installation 🛠️

  1. Install GenZBot using pip:

    pip install GenZBot
    
  2. Import the ChatBot class:

    from GenZBot.chatbot import ChatBot
    

Getting Started 🚀

Here’s how to create your first chatbot project with GenZBot:

  1. Initialize Your ChatBot:

    bot = ChatBot(llm='gemini', api_key='your-api-key')
    
  2. Create Project Structure:

    bot.CreateProject()
    

    This command will generate the following structure:

    Chatbot_Project/
        AI_Service/
            AIResponse.py
        Backend/
            app.py
        Frontend/
            static/
                static.css
                style.js
            templates/
                index.html
        .env
        requirements
    
  3. Run the ChatBot:

    bot.run()
    

    This command will:

    • Create a virtual environment.
    • Install all dependencies from requirements.
    • Launch the Flask app.

Example Code 📝

from GenZBot.chatbot import ChatBot

# Step 1: Initialize ChatBot
bot = ChatBot(llm='gemini', api_key='your-api-key')

# Step 2: Create Project Structure
bot.CreateProject()

# Step 3: Run the Bot
bot.run()

API Keys 🔑

  • OpenAI: Obtain a paid API key from OpenAI.
  • Gemini: Get a free API key from Google AI Studio.
  • Gemma, Llama, Mixtral: Request API keys from Groq AI.

Why Choose GenZBot? 🤔

  • Ideal for beginners looking to explore Generative AI.
  • Provides a clear project structure for understanding AI chatbot integration.
  • Saves time with automated setup and environment configuration.

Happy Chatbot Building! 🎉

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genzbot-0.7.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GenZBot-0.7-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

Details for the file genzbot-0.7.tar.gz.

File metadata

  • Download URL: genzbot-0.7.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for genzbot-0.7.tar.gz
Algorithm Hash digest
SHA256 5f43951342fc88d3b02138d02ba1b3cd00a386e084af489cedc5cde2b96e6f77
MD5 d00f396612fc044742e1e70c8aa51c6a
BLAKE2b-256 b6a3991efd75a27bb28c88ffb2eae74881c03729b65f6e4573c6f167e4aefb0e

See more details on using hashes here.

File details

Details for the file GenZBot-0.7-py3-none-any.whl.

File metadata

  • Download URL: GenZBot-0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for GenZBot-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 efed6a245a49ad501e5ccea956009943558006155dfeac9b1e3b2ec984638b3c
MD5 926d18c05d315bfaf15efeae4bab5d44
BLAKE2b-256 2cb3b2f5d0ae88803850676e17eabe7c44da960dcbef43cb96592b233858cc47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page