Skip to content

codebyfaisal/devlumen-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevLumen Chatbot

Overview

DevLumen is an AI-powered chatbot designed to assist users in exploring Muhammad Faisal's portfolio. The chatbot is integrated with the Groq API to provide intelligent and context-aware responses. It is built using HTML, CSS, JavaScript, and Express.js for the backend.

Features

  • Interactive Chat Interface: Users can interact with the chatbot to get information about Faisal's projects, services, and more.
  • Dynamic Responses: The chatbot provides dynamic and context-aware responses using the Groq API.
  • User-Friendly Design: The chatbot interface is designed to be intuitive and easy to use.
  • Responsive Design: The chatbot is responsive and works well on both desktop and mobile devices.

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: Express.js
  • API: Groq API
  • Styling: Custom CSS

Installation

To run this project locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/codebyfaisal/devlumen-chatbot.git
    cd devlumen-chatbot
  2. Install Dependencies:

    npm install
  3. Set Up Environment Variables: Create a .env file in the root directory and add your Groq API key:

    GROQ_API_KEY=your_groq_api_key_here
  4. Run the Server:

    node server.js
  5. Open the Project: Open index.html in your browser to interact with the chatbot.

Usage

  • Open the Chatbot: Click on the message icon to open the chatbot interface.
  • Ask Questions: Type your questions in the input field and press Enter or click the send button.
  • Close the Chatbot: Click the close icon to minimize the chatbot.

API Endpoint

The chatbot uses the following API endpoint to fetch responses:

  • POST /api/chat: Sends user messages to the Groq API and returns the chatbot's response.

Code Structure

  • index.html: The main HTML file containing the chatbot interface.
  • style.css: Custom CSS for styling the chatbot.
  • script.js: JavaScript code for handling chatbot interactions and API calls.
  • server.js: Express.js server for handling API requests.

Acknowledgments

  • Muhammad Faisal: For the inspiration and portfolio content.
  • Groq: For providing the API for intelligent responses.

Contact

For any inquiries, please contact Muhammad Faisal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors