AI-Powered Conversational Web Assistant Using Gemini API
AI-Powered Conversational Web Assistant Using Gemini API
1GUNUPURU VAMSI, 2VINAY KUMAR MALE
1Associate Professor and Placement Officer, 2Student
1,2Department of Master of Computer Applications
1Sanketika Vidya Parishad Engineering College, Andhra University, 2Visakhapatnam, 3Andhra Pradesh, India
Abstract: The rapid evolution of Large Language Models (LLMs) has opened new possibilities for building intelligent, human-like conversational systems capable of understanding and responding to open-domain queries in real time. Traditional chatbot architectures, whether rule-based or narrow-domain trained, are constrained by limited contextual understanding, poor conversational continuity, and an inability to generate fluent, human-like responses across varied topics. This paper presents the design, development, and evaluation of an AI-Powered Conversational Web Assistant that integrates Google's Gemini 1.5 Flash large language model with a lightweight Python Flask web application to deliver real-time, context-aware conversational support. The system accepts free-form natural-language input through a responsive browser-based chat interface, forwards the query to the Gemini API through secure RESTful calls, and renders the generated response asynchronously without page reload. A Flask backend manages session handling, prompt construction, and API communication, while a SQLite-backed logging layer stores conversation history for auditing and future personalization. The architecture is deliberately modular, separating the presentation layer, the dialogue-management logic, and the external LLM service, which allows any of these layers to be replaced or extended independently. Experimental use of the deployed prototype across a range of factual, technical, and conversational queries demonstrated that the assistant produces fluent, contextually relevant, and largely accurate responses while maintaining low perceived latency. The study also documents the practical challenges encountered during development, including prompt-engineering trade-offs, API rate limits, session-memory handling, and safe-response filtering, together with the mitigation strategies adopted. The resulting prototype confirms that a cloud-hosted multimodal LLM, when combined with a minimal and well-structured web stack, can serve as a practical foundation for next-generation digital assistants suitable for customer support, education, and personal productivity applications, with a clear pathway toward voice interaction, sentiment-aware responses, multilingual support, and persistent contextual memory in future iterations.
Index Terms: - Artificial Intelligence • Natural Language Processing • Large Language Models • Google Gemini API • Conversational AI • Chatbot • Flask Framework • Prompt Engineering • Intent Recognition • Dialogue Management • Natural Language Generation • SQLite • Human-Computer Interaction • Web-Based Assistant.