Rule-based AI-powered chatbot built in Python using control flow and loops. Helps with coding, study tips, career advice, and motivation.
ChatPy is a feature-rich, rule-based chatbot built purely using Python's conditional logic and input()/print() statements. It simulates intelligent, dynamic conversation flows on various real-world topics.
This project fulfills the internship task requirement:
“Build a Chatbot using if-else” — using only Python, control flow, and user input.
The chatbot can carry full-length conversations, suggest real resources, offer logical help, share motivation, and even give latest updates from sports and entertainment — all through layered if-elif-else logic.
| Internship Requirement | Delivered in This Project ✅ |
|---|---|
| ✅ Use Python (no AI/ML) | Done — Pure Python Script |
✅ Use if-elif-else |
Used extensively across all branches |
| ✅ Use input/output loops | Yes, continuous while loop with input() |
| ✅ Simulate a chatbot | Achieved with multi-topic branching & follow-ups |
| ✅ Understand NLP Structure | Simulated realistic topic flows |
ChatPy is built to help users with 8+ real-world domains:
| Topic | Subtopics & Resources Provided |
|---|---|
| ✅ Coding | Logic building, Python basics, DSA topics, project ideas, GitHub repos |
| ✅ Studies | Focus, Pomodoro, environment setup, YouTube motivation links |
| ✅ Career | Resume tips, job portals, LinkedIn, portfolios |
| ✅ Motivation | Consistency rules, daily goal tracker, Spotify podcast |
| ✅ Productivity | Time management techniques and tools |
| ✅ Sports News | Latest updates (e.g. Shubman Gill, Diogo Jota) |
| ✅ Movies & OTT | Recent releases, upcoming movies, Bollywood/Hollywood updates |
| ✅ Fallback Chat | Handles invalid inputs and guides user to try again |
- ✅ Time-Based Greeting (Good Morning / Afternoon / Evening)
- ✅ Full Conversation Flow with nested decisions
- ✅ Multiple Conditionals for intelligent decision-making
- ✅ Real Resource Suggestions (YouTube, GitHub, Spotify, Resume builders)
- ✅ Topic Continuation through follow-up user inputs
- ✅ Handles Fallback Gracefully when topic is unknown
All screenshots are stored inside the screenshots/ folder:
| Screenshot File | Description |
|---|---|
screenshot_1_greeting.png |
Time-based greeting and intro |
screenshot_2_coding.png |
User selects coding → Logic/DSA help |
screenshot_3_project_ideas.png |
Project suggestions with GitHub |
screenshot_4_studies_focus.png |
Study tips with Pomodoro & playlists |
screenshot_5_career_resume.png |
Resume advice and portfolio suggestions |
screenshot_6_motivation_podcast.png |
Motivation tips and 5-min podcast |
screenshot_7_sports_news.png |
Sports updates with match highlights |
screenshot_8_movies_news.png |
Latest movie releases and poster reveals |
screenshot_9_fallback_case.png |
Unknown input handling and user guidance |
Also see screenshots/description.txt for detailed proof mapping.
advanced-rule-based-chatbot/
├── chatbot.py # Main Python chatbot script
├── README.md # Top-level professional project overview
├── screenshots/ # All screenshots as task proof
│ ├── screenshot_1_greeting.png
│ ├── ...
│ └── description.txt # Explanation for each screenshot
🧪 How to Run
Open terminal / command prompt
Navigate to project folder
Run:
python chatbot.py
Ensure Python 3 is installed and properly configured.
🏁 Outcome
This project clearly demonstrates:
Mastery of Python if-elif-else, loops, and string logic
Creative thinking in designing conversations
Problem-solving ability using simple tools
Real-world awareness (live news, motivation, career prep)
Internship guidelines strictly followed
💬 Final Note
This chatbot isn't just a project — it's a smart planning, and strong command over Python fundamentals. It’s designed to help users, simulate AI-like behavior, and showcase real value with no libraries or AI models — just pure logic.
Built with passion and purpose 💪🔥