thoughtful-ai / README.md
NaderAfshar
updated the README file
02a0a29

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: Thoughtful Ai
emoji: πŸ‘
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
license: mit
short_description: Thoughtful AI Agent

πŸ’¬ Thoughtful AI Support Agent

A simple customer support chatbot for Thoughtful AI, built with Gradio and Cohere.
It provides instant answers to common questions using a hardcoded FAQ, and gracefully falls back to Cohere's powerful language model for everything else.


πŸš€ Live Demo

πŸ‘‰ Click here to try it out


🧠 How It Works

  • User asks a question via the chat UI.
  • The bot first tries to match the question against a predefined FAQ using fuzzy string matching.
  • If a match is found, the bot responds instantly with the corresponding answer.
  • If not, the question is sent to Cohere's Command R+ model for a smart fallback response.

✨ Features

  • βœ… Hardcoded customer support FAQ (fast, accurate)
  • βœ… Cohere-powered fallback for general questions
  • βœ… Friendly conversational chat UI with Gradio
  • βœ… Publicly shareable via Hugging Face Spaces

🧾 Example Questions

Ask things like:

  • β€œWhat does the eligibility verification agent EVA do?”
  • β€œTell me about Thoughtful AI's agents.”
  • β€œHow does PHIL work?”

For anything else, the bot will ask Cohere.


πŸ“¦ Installation

Clone this repo or copy the files into your own environment.

Install dependencies:

pip install -r requirements.txt