This project is a Conversational AI chatbot built using IBM Watson Assistant and Flask. It provides a simple web-based interface that allows users to interact with a smart chatbot capable of understanding and responding to user queries.
The aim of this project is to demonstrate how IBM Watson Assistant can be integrated into a custom Flask web application to build an intelligent chatbot. The chatbot is capable of handling conversation flows defined in Watson Assistant and provides real-time interaction through a web interface.
- To integrate IBM Watson Assistant with a Flask-based backend.
- To develop a user-friendly frontend for chat interaction.
- To enable real-time, intelligent responses powered by a cloud-based AI service.
- To deploy a working chatbot prototype demonstrating practical use of GenAI in communication.
- Python 3
- Flask (Backend Web Framework)
- IBM Watson Assistant (Cloud-based NLP service)
- HTML/CSS/JavaScript (Frontend)
- IBM Watson SDK (
ibm-watson)
git clone https://github.com/AnshBansalbpl/GenAI-project.git
- Install Required Dependencies
pip install flask ibm-watson
- Configure IBM Watson Assistant Update these values in your app.py file:
API_KEY = 'your-api-key' ASSISTANT_ID = 'your-assistant-id' URL = 'your-service-url'
- Run the Application python app.py
Visit http://127.0.0.1:5000 in your browser to access the chatbot interface.
π§ͺ Project Structure
genai-project/
βββ app.py # Flask backend logic
βββ templates/
β βββ index.html # Frontend page
β Features Real-time messaging with Watson Assistant
Session handling for each interaction
Clean and responsive chat UI
Easily extendable for more use cases
π References
IBM Watson Assistant Documentation
Flask Documentation
IBM Watson Python SDK
π¨βπ» Authors Ansh Bansal
π¦ License This project is for academic purposes only.