Architecture
EduGo Architecture
User Interface (Telegram Bot Interface)
Telegram API: EduGo’s primary interaction happens through the Telegram bot interface, which serves as the front end for users. Here, users can select subjects, input questions, and interact with EduGo.
Input Handling: The bot parses user inputs, such as subject selections and specific problem queries, and sends the data to the backend for processing.
Bot Logic Layer
Bot Framework (e.g., Node.js, Python with Telegram API SDK): The bot logic is implemented using a backend framework that interacts with Telegram’s API. This logic controls the flow of user requests, subject selection, and response generation.
Command Handlers: Various commands like
/start
,/solve_math
,/solve_science
, etc., are used to navigate users to the correct part of the bot’s functionality.
Backend
Question Solver Modules: The core functionality of EduGo lies in its ability to solve problems across subjects.
Math Solver API: For solving mathematical problems, an external or in-house API processes the input and returns solutions.
Science/Language/Computer Science Knowledge Base: The bot uses a knowledge base (e.g., AI-based natural language processing models, APIs, or curated databases) to answer questions in different subjects.
API Gateway: An API gateway manages requests from the bot logic and directs them to the correct backend service for processing.
Payment Processing: Integration with payment APIs (if needed) to handle purchases of $EG tokens or premium features.
Database: User data, token balances, interaction logs, and problem-solving history are stored in a database like MySQL or PostgreSQL for persistence.
External APIs
Math Solver API: Third-party APIs or custom-built solvers to handle specific questions related to math or science.
Language Translation API: APIs for foreign language learning that provide translation and grammar assistance.
Blockchain APIs: These interact with the Ethereum network for $EG token validation and transactions.
Last updated