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.
- Support Handling: Interact with customers and provide support for various inquiries.
- Dify.ai Integration: Incorporate Dify.ai service for enhanced natural language processing.
Before you begin, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
- TypeScript (Install globally using
npm install -g typescript
)
-
Clone the repository:
git clone https://github.com/avezqureshi14/discord-bot-using-TypeScript
-
Navigate to the project directory:
cd discord-support-bot
-
Install dependencies:
npm install
-
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
-
Build the TypeScript code:
npm run build
-
Run the bot, (First move into the bot folder):
node interaction.js
-
Your Discord bot should now be active and responding to messages.