Skip to content

Repository files navigation

GenAI-project

πŸ’¬ Chatbot using IBM Watson Assistant and Flask

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.

πŸ“Œ Project Overview

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.

🎯 Objectives

  • 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.

🧰 Technologies Used

  • Python 3
  • Flask (Backend Web Framework)
  • IBM Watson Assistant (Cloud-based NLP service)
  • HTML/CSS/JavaScript (Frontend)
  • IBM Watson SDK (ibm-watson)

πŸ› οΈ Setup Instructions

1. Clone the Repository

git clone https://github.com/AnshBansalbpl/GenAI-project.git

  1. Install Required Dependencies

pip install flask ibm-watson

  1. 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'

  1. 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages