PICTOPEDIA is a chatbot that allows users to search for information on specific words or terms using the Wikipedia API. It works like an interactive word-search assistant, where users can input queries and instantly receive relevant, real-time information.
🚀 Visit PICTOPEDIA Chatbot
How It Works (Step-by-Step):
-
User Input → User types a query in the chatbot.
Example:"What is Artificial Intelligence?"
-
Input Handling → Input validated and handled by
handleUserInput()
inscript.js
. -
API Request → Sends request to Wikipedia API for relevant information.
-
Response Processing → Extracts and formats the response.
-
Displaying Results → Shows content in a chat-style interface.
-
Interaction Loop → Supports multiple queries with chat history retention.
➡️ Flow Summary:
User Input ➡️ Input Handling ➡️ API Request ➡️ Response Processing ➡️ Display Results ➡️ Repeat Interaction
- 🖥️ Simple & Interactive UI – Clean and user-friendly interface.
- ⚡ Real-Time Retrieval – Fetches data live from Wikipedia.
- 💬 Chat-Style Display – Results presented conversationally.
- 🔄 Multi-Search Support – Keeps chat history during session.
- ❌ Error Handling – Provides fallback messages if data not found.
- HTML5, CSS3 – UI design & layout.
- JavaScript (ES6) – Logic, event handling & API calls.
- Wikipedia API – Fetches word/term information.
Below are ready-to-drop code snippets you can paste into your project to implement the five enhancements:
- 🔊 Text-to-Speech (TTS)
- 🌐 Multiple-language support (Wikipedia language domains)
- 🎨 UI/UX themes (theme presets + CSS variables)
- 📱 Mobile responsive layout (CSS breakpoints & flexible layout)
- 💾 Download chat history (JSON / TXT export)
Lomada Siva Gangi Reddy
- 🎓 B.Tech CSE (Data Science), RGMCET (2021–2025)
- 💡 Interests: Python | Machine Learning | Deep Learning | Data Science
- 📍 Open to Internships & Job Offers
📬 Contact Me:
- 📞 9346493592
- 💼 LinkedIn 🌐 GitHub
flowchart LR
A[User Input] --> B[Input Handling]
B --> C[Wikipedia API Request]
C --> D[Process Response]
D --> E[Display Results]
E --> F[Interaction Loop]
%% Styles
style A fill:#FFD54F,stroke:#F57F17,stroke-width:2px,color:#000;
style B fill:#4FC3F7,stroke:#0277BD,stroke-width:2px,color:#fff;
style C fill:#AED581,stroke:#33691E,stroke-width:2px,color:#000;
style D fill:#BA68C8,stroke:#4A148C,stroke-width:2px,color:#fff;
style E fill:#FF8A65,stroke:#BF360C,stroke-width:2px,color:#fff;
style F fill:#90CAF9,stroke:#0D47A1,stroke-width:2px,color:#000;