[{"data":1,"prerenderedAt":514},["ShallowReactive",2],{"navigation_docs_en":3,"-en-integrations-settings-1-whatsapp-setup":110,"-en-integrations-settings-1-whatsapp-setup-surround":509},[4,35,65,90,100],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fen\u002Fgetting-started","en\u002F1.getting-started",[10,15,20,25,30],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fen\u002Fgetting-started\u002F1-introduction","en\u002F1.getting-started\u002F1-introduction","i-ph-book-open-duotone",{"title":16,"path":17,"stem":18,"icon":19},"Onboarding","\u002Fen\u002Fgetting-started\u002F2-onboarding","en\u002F1.getting-started\u002F2-onboarding","i-ph-buildings-duotone",{"title":21,"path":22,"stem":23,"icon":24},"Practitioners","\u002Fen\u002Fgetting-started\u002F3-staff-roles","en\u002F1.getting-started\u002F3-staff-roles","i-ph-users-three-duotone",{"title":26,"path":27,"stem":28,"icon":29},"Queue Setup","\u002Fen\u002Fgetting-started\u002F4-queue-management","en\u002F1.getting-started\u002F4-queue-management","i-ph-list-numbers-duotone",{"title":31,"path":32,"stem":33,"icon":34},"Workflow Setup","\u002Fen\u002Fgetting-started\u002F5-workflow-definitions","en\u002F1.getting-started\u002F5-workflow-definitions","i-ph-git-fork-duotone",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Core Workflows","\u002Fen\u002Fcore-workflows","en\u002F2.core-workflows",[40,45,50,55,60],{"title":41,"path":42,"stem":43,"icon":44},"In-Person Walk-In","\u002Fen\u002Fcore-workflows\u002F1-in-person-walk-in","en\u002F2.core-workflows\u002F1-in-person-walk-in","i-ph-user-plus-duotone",{"title":46,"path":47,"stem":48,"icon":49},"Appointment Check-In","\u002Fen\u002Fcore-workflows\u002F2-appointment-to-walk-in","en\u002F2.core-workflows\u002F2-appointment-to-walk-in","i-ph-calendar-check-duotone",{"title":51,"path":52,"stem":53,"icon":54},"Telehealth","\u002Fen\u002Fcore-workflows\u002F3-telehealth","en\u002F2.core-workflows\u002F3-telehealth","i-ph-video-camera-duotone",{"title":56,"path":57,"stem":58,"icon":59},"Repeat Medication","\u002Fen\u002Fcore-workflows\u002F4-admin-repeat-medication","en\u002F2.core-workflows\u002F4-admin-repeat-medication","i-ph-arrows-counter-clockwise-duotone",{"title":61,"path":62,"stem":63,"icon":64},"Hybrid Lab Flow","\u002Fen\u002Fcore-workflows\u002F5-hybrid-flow","en\u002F2.core-workflows\u002F5-hybrid-flow","i-ph-flask-duotone",{"title":66,"icon":6,"path":67,"stem":68,"children":69,"page":6},"Clinical Playbooks","\u002Fen\u002Fclinical-playbooks","en\u002F3.clinical-playbooks",[70,75,80,85],{"title":71,"path":72,"stem":73,"icon":74},"Acute Care","\u002Fen\u002Fclinical-playbooks\u002F1-acute-care-playbook","en\u002F3.clinical-playbooks\u002F1-acute-care-playbook","i-ph-first-aid-duotone",{"title":76,"path":77,"stem":78,"icon":79},"Chronic Disease","\u002Fen\u002Fclinical-playbooks\u002F2-chronic-disease-management","en\u002F3.clinical-playbooks\u002F2-chronic-disease-management","i-ph-heartbeat-duotone",{"title":81,"path":82,"stem":83,"icon":84},"Vaccinations","\u002Fen\u002Fclinical-playbooks\u002F3-vaccinations-and-preventative","en\u002F3.clinical-playbooks\u002F3-vaccinations-and-preventative","i-ph-syringe-duotone",{"title":86,"path":87,"stem":88,"icon":89},"Admin & Workplace","\u002Fen\u002Fclinical-playbooks\u002F4-admin-and-workplace","en\u002F3.clinical-playbooks\u002F4-admin-and-workplace","i-ph-file-text-duotone",{"title":91,"icon":6,"path":92,"stem":93,"children":94,"page":6},"Advanced Settings","\u002Fen\u002Fintegrations-settings","en\u002F4.integrations-settings",[95],{"title":96,"path":97,"stem":98,"icon":99},"WhatsApp Setup","\u002Fen\u002Fintegrations-settings\u002F1-whatsapp-setup","en\u002F4.integrations-settings\u002F1-whatsapp-setup","i-ph-whatsapp-logo-duotone",{"title":101,"icon":6,"path":102,"stem":103,"children":104,"page":6},"Public Directory","\u002Fen\u002Fpublic-directory","en\u002F5.public-directory",[105],{"title":106,"path":107,"stem":108,"icon":109},"Maze.care Listing","\u002Fen\u002Fpublic-directory\u002F1-publish-to-mazecare","en\u002F5.public-directory\u002F1-publish-to-mazecare","i-ph-globe-duotone",{"id":111,"title":112,"body":113,"description":502,"extension":503,"links":504,"meta":505,"navigation":506,"path":97,"seo":507,"stem":98,"__hash__":508},"docs_en\u002Fen\u002F4.integrations-settings\u002F1-whatsapp-setup.md","WhatsApp Business Account Setup",{"type":114,"value":115,"toc":491},"minimark",[116,129,132,137,142,145,203,205,209,212,279,281,285,288,369,371,375,378,483],[117,118,119,120,124,125,128],"p",{},"Mazecare integrates with the ",[121,122,123],"strong",{},"Meta WhatsApp Business API"," to automate patient communications. This guide details how to configure your WhatsApp Business Account (WABA) credentials, sync message templates, and wire automated notifications directly into ",[121,126,127],{},"Workflow Definition"," state machines.",[130,131],"hr",{},[133,134,136],"h2",{"id":135},"detailed-step-by-step-walkthrough","Detailed Step-by-Step Walkthrough",[138,139,141],"h3",{"id":140},"step-1-retrieve-meta-api-credentials","Step 1: Retrieve Meta API Credentials",[117,143,144],{},"Before configuring Mazecare, set up your WhatsApp Business application in the Meta Developer Console:",[146,147,148,160,171,177],"ol",{},[149,150,151,152,159],"li",{},"Log in to the ",[153,154,158],"a",{"href":155,"rel":156},"https:\u002F\u002Fdevelopers.facebook.com\u002F",[157],"nofollow","Meta for Developers Portal",".",[149,161,162,163,166,167,170],{},"Create or select a ",[121,164,165],{},"Business App"," and set up the ",[121,168,169],{},"WhatsApp"," integration.",[149,172,173,174,159],{},"In the left menu, go to ",[121,175,176],{},"WhatsApp > API Setup",[149,178,179,180],{},"Retrieve and copy the following parameters from the credentials panel:\n",[181,182,183,188,193],"ul",{},[149,184,185],{},[121,186,187],{},"Phone Number ID",[149,189,190],{},[121,191,192],{},"WhatsApp Business Account ID",[149,194,195,198,199,202],{},[121,196,197],{},"Access Token"," (We recommend generating a ",[121,200,201],{},"Permanent System User Access Token"," in your Meta Business Suite settings for production use, rather than a temporary token).",[130,204],{},[138,206,208],{"id":207},"step-2-configure-waba-credentials-in-mazecare","Step 2: Configure WABA Credentials in Mazecare",[117,210,211],{},"Link your Meta WhatsApp Business app details to the Mazecare settings panel:",[146,213,214,220,236,269],{},[149,215,216,217,159],{},"Log in to Mazecare as an ",[121,218,219],{},"Administrator",[149,221,222,223,226,227,231,232,235],{},"Navigate to ",[121,224,225],{},"WhatsApp Integration"," settings (",[228,229,230],"code",{},"\u002Fsettings\u002Fwhatsapp",") using the WABA table (",[228,233,234],{},"waba-table.vue",").",[149,237,238,239,242,243,246,247,250,251],{},"Click ",[121,240,241],{},"Register WABA"," to open the registration form (",[228,244,245],{},"waba-register-form.vue"," \u002F ",[228,248,249],{},"waba-register-guide.vue","):\n",[181,252,253,259,264],{},[149,254,255,256,258],{},"Paste your ",[121,257,187],{}," into the Phone ID field.",[149,260,255,261,263],{},[121,262,192],{}," into the Business Account ID field.",[149,265,255,266,268],{},[121,267,197],{}," into the Token field.",[149,270,238,271,274,275,278],{},[121,272,273],{},"Verify & Save Credentials"," (",[228,276,277],{},"waba-object-layout.vue","). The system performs a handshake test with the Meta API and creates a WABA record.",[130,280],{},[138,282,284],{"id":283},"step-3-sync-approved-message-templates","Step 3: Sync Approved Message Templates",[117,286,287],{},"To start sending messages, sync and map your Meta-approved templates to clinical events:",[146,289,290,296,313,319,363],{},[149,291,292,293,159],{},"Create and submit message templates (e.g., Booking Confirmations, Digital MC links, Invoice receipts) for approval in your ",[121,294,295],{},"Meta Business Manager > WhatsApp Manager",[149,297,298,299,274,302,305,306,309,310,235],{},"Once approved, return to Mazecare and navigate to ",[121,300,301],{},"Message Templates",[228,303,304],{},"\u002Fsettings\u002Fwhatsapp\u002F[wabaId]\u002Fmessage-templates"," using ",[228,307,308],{},"waba-message-templates.vue"," and ",[228,311,312],{},"waba-message-template-table.vue",[149,314,238,315,318],{},[121,316,317],{},"Sync Templates"," to download approved templates from Meta.",[149,320,321,322,325,326,250,329],{},"Open the template mapping drawer (",[228,323,324],{},"waba-message-template-slideover.vue"," or ",[228,327,328],{},"waba-message-template-create-form.vue",[181,330,331,342],{},[149,332,333,334,337,338,341],{},"Map each approved Meta template to the corresponding clinical trigger in Mazecare (e.g., mapping ",[228,335,336],{},"booking_confirmation"," to the ",[121,339,340],{},"Appointment Scheduled"," trigger).",[149,343,344,345,348,349,352,353,348,356,359,360,235],{},"Map variable placeholders like ",[228,346,347],{},"{{1}}",", ",[228,350,351],{},"{{2}}"," to patient\u002Fclinic parameters (e.g., ",[228,354,355],{},"{patient_name}",[228,357,358],{},"{appointment_date}",", or ",[228,361,362],{},"{receipt_link}",[149,364,238,365,368],{},[121,366,367],{},"Apply Template Routing"," to save the configuration.",[130,370],{},[138,372,374],{"id":373},"step-4-integrate-whatsapp-notifications-into-workflow-definitions","Step 4: Integrate WhatsApp Notifications into Workflow Definitions",[117,376,377],{},"To automate delivery, wire the synchronized templates into your clinical workflows:",[146,379,380,389,412,463],{},[149,381,222,382,274,385,388],{},[121,383,384],{},"Settings → Workflow Definitions",[228,386,387],{},"\u002Fsettings\u002Fworkflow-definitions",") and open your active workflow.",[149,390,391,392,395,396,399,400,404,405,408,409,235],{},"In the ",[121,393,394],{},"Editor"," tab (",[228,397,398],{},"workflow-definition-editor.vue","), select the target state node or transition edge where you want to send a notification (e.g., select the ",[401,402,403],"em",{},"Registration"," state's entry hook, or the transition from ",[401,406,407],{},"Consultation"," to ",[401,410,411],{},"Completed",[149,413,414,415,274,418,250,421],{},"In the side properties panel, add an ",[121,416,417],{},"HTTP Action",[228,419,420],{},"workflow-http-action.vue",[181,422,423,429,438,444,450],{},[149,424,425,428],{},[121,426,427],{},"Name",": e.g., \"Send Booking Confirmation\".",[149,430,431,434,435],{},[121,432,433],{},"Method",": ",[228,436,437],{},"POST",[149,439,440,443],{},[121,441,442],{},"URL",": Set to the WhatsApp delivery endpoint (or the system's GraphQL mutation endpoint).",[149,445,446,449],{},[121,447,448],{},"Payload",": Configure the mutation body in GraphQL or raw JSON mode.",[149,451,452,455,456,348,459,462],{},[121,453,454],{},"Liquid Templating",": Use Liquid-style template interpolation to inject context variables dynamically (e.g., ",[228,457,458],{},"{{workflowContext.whatsAppTemplateName}}",[228,460,461],{},"{{workflowContext.whatsAppPhoneNumberId}}",", and the patient's phone number).",[149,464,465,468,469],{},[121,466,467],{},"Asynchronous Sub-Workflows",":\n",[181,470,471,480],{},[149,472,473,474,274,477,235],{},"For complex patient notifications (like sending multi-stage reminders), you can link states to a dedicated ",[121,475,476],{},"WhatsApp notification sub-workflow",[228,478,479],{},"subWorkflowDefinitionId",[149,481,482],{},"When the parent workflow enters that state, it spawns the notification sub-workflow asynchronously. This executes all message dispatches in the background without blocking the primary clinical queue or physician encounters.",[484,485],"u-alert",{"color":486,"description":487,"icon":488,"title":489,"variant":490},"warning","Ensure your Meta WhatsApp Business account is in good standing and has a valid payment method configured to prevent message delivery failures.","i-ph-warning-bold","Important Note","soft",{"title":492,"searchDepth":493,"depth":493,"links":494},"",2,[495],{"id":135,"depth":493,"text":136,"children":496},[497,499,500,501],{"id":140,"depth":498,"text":141},3,{"id":207,"depth":498,"text":208},{"id":283,"depth":498,"text":284},{"id":373,"depth":498,"text":374},"How to link your WhatsApp Business API credentials to Mazecare to send patient appointment reminders, prescriptions, and digital MCs via Workflow Definitions.","md",null,{},{"title":96,"icon":99},{"title":112,"description":502},"EM_aTxkgLAxFpXHUKfzLPybqKWjYdd6cdU-NZMT6f4Y",[510,512],{"title":86,"path":87,"stem":88,"description":511,"icon":89,"children":-1},"Guidelines for generating specialist referral letters and completing pre-employment medical checks using EMR structured questionnaires.",{"title":106,"path":107,"stem":108,"description":513,"icon":109,"children":-1},"How to configure and list your branches, doctors, service offerings, and appointment schedules on the public Maze.care directory to enable patient self-booking.",1780281880116]