Skip to content

This is a chatbot, made with the help of Python. It aims to provide mental peace and support to users, according to their requirements. It also provides few helpline numbers in certain needs.

Notifications You must be signed in to change notification settings

Navraj-07/Peace-Therapist-Chatbot

Repository files navigation

Peace - Your Personal Therapist Chatbot

This is a chatbot, made with the help of Python. It aims to provide mental peace and support to users, according to their requirements. It also provides few helpline numbers in certain needs. Peace is a simple chatbot implemented in Python using the tkinter library for the graphical user interface (GUI). It provides a friendly interface for users to chat with and receive responses covering a range of topics, including greetings, emotions, and mental health support.

Features

  • Interactive chat interface using tkinter.
  • Predefined responses based on user input patterns.
  • Responses covering greetings, emotions, mental health support, and more.
  • Regular expressions used for matching user input patterns.
  • Tips and helpline numbers provided for specific mental health concerns.
  • Easy-to-use interface for users to interact with.

Getting Started

To use Peace, simply download or clone the repository to your local machine. You need to have Python installed on your system to run the chatbot.

Overview:

This program implements a simple chatbot using the tkinter library in Python. The chatbot, named Peace, responds to user input with predefined messages related to various emotional states and situations, offering support and guidance.

Features:

  • Allows users to interact with Peace by typing messages into an entry field and pressing "Send".
  • Peace responds to user input with appropriate messages based on predefined patterns.
  • Supports emotional states such as sadness, anxiety, loneliness, and provides relevant advice or resources.
  • Provides guidance on coping with various challenges like stress, confusion, and difficulty in sleeping.
  • Offers support for users experiencing feelings of betrayal, heartbreak, or low motivation.

Components:

Main Interface: The main interface consists of a tkinter window with a chat history display and an entry field for user input. Response Dictionary: Responses for different user inputs are stored in a dictionary. Each key is a regular expression pattern, and the corresponding value is a list of possible responses. Matching Responses: User input is matched against the patterns in the response dictionary, and a random response is selected based on the matched pattern. Interaction Handling: The program handles user interactions, displays user messages in the chat history, and shows Peace's responses. Exit Functionality: Typing "bye" terminates the conversation and closes the chat window after a brief farewell message.

Dependencies:

Python 3.x tkinter library

How to Run:

Ensure you have Python installed on your system. Run the script in a Python environment. The chat window will appear, allowing you to interact with Peace. Type messages into the entry field and press "Send" or press "Enter" to communicate with Peace. To exit the chat, type "bye" and press "Send" or press "Enter", or simply close the window.

Note:

This chatbot is a simple demonstration and may not cover all possible scenarios or provide comprehensive support. Users are encouraged to seek professional help for serious emotional or mental health issues.

About

This is a chatbot, made with the help of Python. It aims to provide mental peace and support to users, according to their requirements. It also provides few helpline numbers in certain needs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages