Skip to content

💡[Feature]: Day 3: AI ChatBot Development: Integrate Chat APIs into your website. #638

@SB2318

Description

@SB2318

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

Prerequisite: Please Complete the following tasks:

#633
#637
#629

🚀 Objective

Integrate Chat APIs into your website to enable real-time communication with your AI Chatbot powered by Generative AI (Gemini).

This step ensures your frontend can seamlessly send user messages and receive AI-generated responses through your backend.


✅ Tasks

🎯 Tasks To Complete

✅ 1. Integrate Chat API (Frontend → Backend)

  • Connect your website UI to your backend chat endpoints
  • Use POST /send-message to send user queries
  • Use GET /load-conversations to fetch conversation history
  • Display messages in proper chat UI format

🧠 How It Works (High-Level Flow)

  1. User enters a prompt in your web chat box
  2. Frontend sends the prompt to your backend Chat API
  3. Backend forwards the prompt to Gemini Generative AI model
  4. Gemini generates the reply
  5. Backend saves both messages (user + AI)
  6. Frontend displays the updated chat thread

This creates a smooth end-to-end AI conversation experience.


🏗️ What You Should Already Have (From Previous Days)

✔️ Acceptance Criteria

  • Chat API successfully connected with frontend
  • Messages visible in chat interface
  • Real-time AI replies displayed
  • Conversation history loads correctly
  • No CORS or authentication issues

Use Case

Feature

Benefits

Learning

Add ScreenShots

Image

Priority

High

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I'm a IEEE IGDTUW contributor
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions