Git Product home page Git Product logo

customer-service-chatbot-gradio's Introduction

Customer Service Chatbot

Overview

This project implements a customer service chatbot that provides information about products in different categories. Users can ask questions related to products, and the chatbot will provide relevant information based on the queries. The chat interface is powered by Gradio, and the chatbot itself uses OpenAI's GPT-3.5 Turbo model for natural language understanding.

Getting Started

  1. Clone the repository:

    git clone https://github.com/onur-rgb/customer-service-chatbot-gradio.git
    cd customer-service-chatbot-gradio
  2. Set up your OpenAI API key by replacing "YOUR_API_KEY" in the code with your actual API key. You can obtain an API key by signing up at OpenAI's platform.

  3. Install the required Python packages:

    pip install -r requirements.txt
  4. Create and configure products.json with product information. You can customize this JSON file to match your specific product database.

    Make sure to add products and categories relevant to your use case.

  5. Run the chatbot:

    python main.py

Usage

  • Interact with the chatbot by entering queries or questions related to products.
  • The chatbot will process your queries and provide information about products and categories.

Rate Limiting

To prevent rate limit errors from OpenAI, a rate-limiting mechanism has been implemented in the code. The rate limit is set based on your OpenAI organization's specific rate limit policy. You can adjust the rate limit parameters in the code to match your rate limit requirements.

Gradio Chat Interface

The chat interface is powered by Gradio, a Python library that simplifies the creation of interactive interfaces for machine learning models. You can customize the interface's appearance and behavior by modifying the Gradio components in the code.

Prompt Engineering

This chatbot uses prompt engineering to guide user interactions and generate responses. You can enhance the chatbot's capabilities by refining the prompts used for different types of queries.

Feel free to explore and customize this code to meet your specific requirements. If you have any questions or need further assistance, please don't hesitate to reach out.

Happy chatting!

customer-service-chatbot-gradio's People

Contributors

onur-rgb avatar

Stargazers

Ezgi Nur UCAY avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.