avezqureshi14 / discord-bot-using-TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Support Bot

Overview

The Discord Support Bot is a sophisticated chatbot developed in TypeScript with the primary objective of offering support and addressing customer inquiries. A key feature integrated into this bot is the ##RAG (Retrieval Augmented Generation) Model, which employs a Language Model (LLM) for answering user queries. Notably, the OpenAI GPT-3.5 model is utilized within this bot to deliver tailored responses by leveraging our extensive knowledge base. This ensures a customized and effective interaction with users seeking assistance.

Features

  • Support Handling: Interact with customers and provide support for various inquiries.
  • Dify.ai Integration: Incorporate Dify.ai service for enhanced natural language processing.

Prerequisites

Before you begin, ensure you have the following installed:

Setup

  1. Clone the repository:

    git clone https://github.com/avezqureshi14/discord-bot-using-TypeScript
  2. Navigate to the project directory:

    cd discord-support-bot
  3. Install dependencies:

    npm install
  4. Set up environment variables:

    Create a .env file in the root directory with the following content:

    BOT_TOKEN=bot_token
    DIFY_API_KEY=dify_ai_api_key

Usage

  1. Build the TypeScript code:

    npm run build
  2. Run the bot, (First move into the bot folder):

    node interaction.js
  3. Your Discord bot should now be active and responding to messages.

About


Languages

Language:JavaScript 75.8%Language:TypeScript 24.2%