Skip to content

Harshvasava307/AI-INTEGRATION-WEB-PAGE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 ECHO AI — API Learning Demo

License: MIT JavaScript Bootstrap 5


🌟 About ECHO AI

ECHO AI is a demonstration web application built to help students understand how APIs work in modern web development using JavaScript.
It allows users to interact with multiple AI models in real-time, sending input data to an API and receiving structured responses.

This hands-on tool helps students see asynchronous programming, HTTP requests, and data processing in action.

🔹 How It Works

  • Users type a message and hit Send.
  • JavaScript captures the input and sends it as a request to the AI API.
  • The API processes the message using the selected AI model and returns a response.
  • The response is displayed dynamically in the chat window — no page reload needed!

Students can experiment by switching AI models, learning that APIs are flexible interfaces allowing access to functionality without exposing internal implementation details.

🎯 Learning Outcomes

  • Fetch API & async/await — Understand asynchronous requests.
  • Promises & error handling — Handle success and failure gracefully.
  • DOM manipulation — Dynamically update the chat interface.
  • Single-page behavior — Learn real-time UI updates.

ECHO AI acts as a mini-laboratory, enabling students to inspect network requests, modify JavaScript, and experiment with API responses.


🛠️ Tools Used

Tool Purpose
HTML Page structure
CSS Styling and layout
JavaScript Interactivity & API communication
Bootstrap 5 Responsive design
Marked.js Render Markdown responses from AI
VS Code + Live Server Real-time development & testing
Git & GitHub Version control and collaboration

💡 Bonus Learning: Students learn how to structure requests, process JSON responses, log errors, and design responsive layouts.


👨‍💻 Developer

Harsh Vasava — Full-stack Web Developer

The project emphasizes:

  • Clean code & modular functions
  • Clear documentation & comments
  • API integration & error handling
  • Educational clarity over production complexity

Students can extend ECHO AI by adding:

  • Chat history storage
  • Custom AI prompts
  • Integration with additional AI models

This encourages experimentation and hands-on learning.


📞 Contact

Students and developers can reach out for guidance, questions, or collaborations.

💡 Tip: Always provide clear, concise questions with context when reaching out to developers or mentors.


🎉 Summary

ECHO AI is more than a demo — it’s a learning platform that bridges theory and practice in web development. Students gain practical experience with APIs, asynchronous programming, and front-end integration while experimenting with AI models.

Highlights:

  • Real-time AI chat simulation
  • API request-response cycle demonstration
  • Mobile responsive interface using Bootstrap
  • Markdown rendering via Marked.js
  • Focused on educational clarity and experimentation

Made with ❤️ by Harsh Vasava

About

This Page is a simple demonstration for students to understand how to integrate AI in your webpage using API and simple code of javascript.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages