General Logic Overview
This chatbot schema functions as a multi-format media converter, allowing users to convert audio, video, and image files. The bot starts with a menu that presents users with options to convert an audio file, video file, or image. Each main option branches into specific formats for conversion, guiding the user through a series of interactions that check file types, request file uploads, and handle the conversion process. The bot provides feedback on the formats expected and confirms successful conversions while also offering to start the process over or navigate back to the main menu.
Detailed Breakdown by Groups
1. Main Menu
- Starting Point: The bot begins with a welcome message and a main menu offering three conversion options: audio, video, and image.
- User Choices: Users can click on buttons corresponding to their desired conversion type, leading them to the relevant commands for audio conversion, video conversion, or image conversion.
2. Audio Conversion
- Audio Conversion Menu: Selecting "Convert audio file" leads users to a specific selection menu, prompting them to choose the conversion direction (e.g., OGA to MP3, MP3 to OGA).
- File Format Direction: Each conversion choice links to a command that checks the format of the uploaded audio file.
- File Processing and Validation: The bot verifies if the input file matches the expected format and guides the user through the upload process, allowing for re-selection if the format is incorrect.
- Execution of Conversion: Once a valid file is provided, the bot processes the conversion, produces the converted file, and allows the user to download it.
3. Video Conversion
- Video Conversion Menu: Similar to audio, this section allows users to convert video files between several formats (e.g., MOV to MP4, AVI to MP4).
- Format Check: File type validation ensures that users upload videos in the correct format.
- File Handling: Upon file upload, the bot processes the conversion as per the selected type and dispatches the converted video file back to the user.
4. Image Conversion
- Image Conversion Menu: Users can choose to convert images, for example, from PNG to JPEG or HEIC to JPEG.
- Format Validation: The bot enforces file type rules, ensuring that users upload suitable image formats.
- Conversion Workflow: Like audio and video, the bot checks the input format, processes it if valid, and allows users to retrieve their converted images.
