Loading repository data…
Loading repository data…
karangupta8 / repository
A simple Python-based chatbot that combines AIML (Artificial Intelligence Markup Language) with OMDB API integration to create a conversational AI that can discuss movies and engage in general conversation.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A simple Python-based chatbot that combines AIML (Artificial Intelligence Markup Language) with OMDB API integration to create a conversational AI that can discuss movies and engage in general conversation.
Built in 2016 by an inquisitive undergraduate with a passion for coding, movies and conversation 🎓
This project represents a the general approach at the time to AI conversation - built entirely without modern ML, NLP libraries, or dynamic APIs. It instead uses the simplicity of AIML (Artificial Intelligence Markup Language) to create meaningful interactions.
This code is preserved for eternity! H.U.G.O-Chatbot is archived under the GitHub Archive Program 2020, meaning this code lives in the Doomsday Arctic Cold Vault in Svalbard, Norway 🌍❄️. It may or may not be used to reconstruct human civilization from scratch if required! 😉
H.U.G.O-Chatbot operates on a pattern-matching paradigm rather than modern neural networks:
User Input → AIML Pattern Matching → Response Selection → API Calls (if needed) → Output
Python_Applications/first.py - The Core Chatbot# Main chatbot application - handles basic conversation
Purpose: Primary chatbot interface using AIML for conversation Key Functions:
../Configuration/std-startup.xmlbot_brain.brn) for performance optimizationPython_Applications/first (copy).py - Enhanced Movie Chatbot# Enhanced version with movie API integration
Purpose: Full-featured chatbot with movie information capabilities Key Functions:
first.py plus movie API integrationmov() function: Fetches movie data from OMDB APIatt_check(): Identifies movie-related attributes in user queriestitle(): Extracts movie titles from natural languagePython_Applications/omdb-api.py - Standalone Movie API Client# Standalone movie information retrieval
Purpose: Direct movie data access without chatbot interface Key Functions:
urllibxml.etree.ElementTreeConfiguration/rename.py - Utility Script# AIML tag generator utility
Purpose: Generates AIML <learn> tags from file listings
Key Functions:
list.txt to get all AIML file names┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ User Input │───▶│ AIML Engine │───▶│ Response Gen │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
▼
┌──────────────────┐
│ Knowledge Base │
│ (100+ AIML) │
└──────────────────┘
│
▼
┌──────────────────┐ ┌─────────────────┐
│ API Gateway │───▶│ OMDB API │
└──────────────────┘ └─────────────────┘
User: Hello
H.U.G.O: Well, hello! How are you today?
User: What's your favorite movie?
H.U.G.O: I love discussing movies! What genre interests you?
User: What is the rating of the movie Inception?
H.U.G.O: [Fetches from OMDB API] Inception (2010) has a rating of 8.8/10 on IMDb.
User: Who directed The Matrix?
H.U.G.O: [Fetches from OMDB API] The Matrix was directed by Lana Wachowski and Lilly Wachowski.
aiml>=0.9.2 - AIML processing enginerequests>=2.25.1 - API communicationurllib, xml.etree.ElementTree, osH.U.G.O-Chatbot/
├── 📁 Python_Applications
│ ├── first.py # Main chatbot application
│ ├── first (copy).py # Enhanced version with movie API
│ └── omdb-api.py # Standalone movie API client
│
├── 📁 AIML_Knowledge_Base (100+ files)
│ ├── 🎭 Core Conversation
│ │ ├── basic_chat.aiml # Basic conversation patterns
│ │ ├── salutations.aiml # Greetings and farewells
│ │ ├── bot_profile.aiml # Bot personality and profile
│ │ └── movies.aiml # Movie-related conversations
│ │
│ ├── 📚 Subject Knowledge
│ │ ├── ai.aiml # Artificial Intelligence topics
│ │ ├── computers.aiml # Computer and technology
│ │ ├── geography.aiml # Geography and places
│ │ ├── history.aiml # Historical topics
│ │ ├── humor.aiml # Jokes and humor
│ │ ├── math.aiml # Mathematics
│ │ ├── science.aiml # Scientific topics
│ │ ├── sports.aiml # Sports and athletics
│ │ └── music.aiml # Music and entertainment
│ │
│ ├── 🎭 Personality & Social
│ │ ├── personality.aiml # Personality traits
│ │ ├── emotion.aiml # Emotional responses
│ │ ├── psychology.aiml # Psychological topics
│ │ ├── gossip.aiml # Social conversation
│ │ └── pickup.aiml # Social interaction patterns
│ │
│ ├── 📚 Academic & Professional
│ │ ├── literature.aiml # Literary topics
│ │ ├── politics.aiml # Political discussions
│ │ ├── religion.aiml # Religious topics
│ │ ├── philosophy.aiml # Philosophical discussions
│ │ └── knowledge.aiml # General knowledge
│ │
│ ├── 🏠 Lifestyle & Culture
│ │ ├── food.aiml # Food and cuisine
│ │ ├── money.aiml # Financial topics
│ │ ├── phone.aiml # Communication devices
│ │ ├── date.aiml # Dating and relationships
│ │ └── drugs.aiml # Health and medicine
│ │
│ ├── 🔧 Standard AIML Set (std-*.aiml)
│ │ ├── std-startup.xml # Main configuration loader
│ │ ├── std-hello.aiml # Standard greetings
│ │ ├── std-botmaster.aiml # Bot management
│ │ ├── std-errors.aiml # Error handling
│ │ ├── std-srai.aiml # Response redirection
│ │ └── [40+ more std-*.aiml files]
│ │
│ └── 🔄 Reduction & Processing
│ ├── reduction*.safe.aiml # Text reduction patterns
│ ├── reduction.names.aiml # Name processing
│ └── reductions-update.aiml # Update patterns
│
├── 📁 Configuration
│ ├── std-startup.xml # Main AIML loader configuration
│ ├── bot_brain.brn # Compiled brain file (auto-generated)
│ ├── list.txt # Complete file listing
│ └── rename.py # AIML tag generator utility
│
├── 📁 Documentation
│ └── README.md # This file
│
└── 📁 Miscellaneous
├── junktest.text # Test file
└── [other utility files]
File Categories:
Key Statistics:
This project is based on the ALICE A.I. Foundation's AIML files, released under the GNU General Public License.
This code is preserved in the Arctic Vault for future civilizations - a testament to human creativity and resillience ❄️🏛️