Developer documentation v1.x

Documentation

WhatsApp Bot - Health Tips Flow

User selects "Quick Health tips (waspé)" from the main menu.

Flow Diagram

flowchart TD
    START([User selects 'Health Tips']) --> TUTORIAL_LIST[/"Quick health tips:
    1. How to prevent malaria?
    2. Signs of diabetes
    3. Healthy eating habits
    4. Exercise benefits
    5. Mental health tips"/]
    
    TUTORIAL_LIST --> USER_INPUT{User Input}
    
    USER_INPUT -->|"1-5"| SELECT_TIP[Select Health Tip]
    USER_INPUT -->|"0"| MAIN_MENU[Return to Main Menu]
    USER_INPUT -->|Invalid| INVALID[/"Invalid option.
    Please select 1-5"/]
    INVALID --> TUTORIAL_LIST
    
    SELECT_TIP --> CHECK_FORMAT{Content Format}
    
    CHECK_FORMAT -->|Text| TEXT_RESPONSE[/"📚 *[Question]*
    
    [Answer/Response]"/]
    
    CHECK_FORMAT -->|Video| VIDEO_RESPONSE[Send video with caption]
    
    CHECK_FORMAT -->|Image| IMAGE_RESPONSE[Send image with caption]
    
    TEXT_RESPONSE --> COMPLETED([Conversation Completed])
    VIDEO_RESPONSE --> COMPLETED
    IMAGE_RESPONSE --> COMPLETED

Content Formats

Format Response Type
Text Text message with question & answer
Video Video file with caption
Image Image file with caption