WhatsApp Business Account Setup
Mazecare integrates with the 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 Workflow Definition state machines.

Detailed Step-by-Step Walkthrough
Step 1: Retrieve Meta API Credentials
Before configuring Mazecare, set up your WhatsApp Business application in the Meta Developer Console:
- Log in to the Meta for Developers Portal.
- Create or select a Business App and set up the WhatsApp integration.
- In the left menu, go to WhatsApp > API Setup.
- Retrieve and copy the following parameters from the credentials panel:
- Phone Number ID
- WhatsApp Business Account ID
- Access Token (We recommend generating a Permanent System User Access Token in your Meta Business Suite settings for production use, rather than a temporary token).
Step 2: Configure WABA Credentials in Mazecare
Link your Meta WhatsApp Business app details to the Mazecare settings panel:
- Log in to Mazecare as an Administrator.
- Navigate to WhatsApp Integration settings.
- Click Register WABA to open the registration form:
- Paste your Phone Number ID into the Phone ID field.
- Paste your WhatsApp Business Account ID into the Business Account ID field.
- Paste your Access Token into the Token field.
- Click Verify & Save Credentials. The system verifies the connection with Meta and saves your configuration.
Step 3: Sync Approved Message Templates
To start sending messages, sync and map your Meta-approved templates to clinical events:
- Create and submit message templates (e.g., Booking Confirmations, Digital Medical Certificate links, Invoice receipts) for approval in your Meta Business Manager > WhatsApp Manager.
- Once approved, return to Mazecare and navigate to Message Templates.
- Click Sync Templates to download approved templates from Meta.
- Open the template mapping drawer:
- Map each approved Meta template to the corresponding clinical trigger in Mazecare (e.g., mapping
booking_confirmationto the Appointment Scheduled trigger). - Map variable placeholders (such as patient name, appointment date, or receipt link) to dynamic clinic parameters.
- Map each approved Meta template to the corresponding clinical trigger in Mazecare (e.g., mapping
- Click Apply Template Routing to save the configuration.
Step 4: Integrate WhatsApp Notifications into Workflow Definitions
To automate delivery, wire the synchronized templates into your clinical workflows:
- Navigate to Settings → Workflow Definitions and open your active workflow.
- In the Editor tab, select the visit stage or step where you want to send a notification (e.g., when a patient completes Registration, or when Consultation is finished).
- In the side properties panel, add an automated message action:
- Name: e.g., "Send Booking Confirmation".
- Template: Select the approved WhatsApp message template.
- Recipient & Parameters: Specify the patient's mobile number and the dynamic fields to include (such as doctor name, clinic address, or appointment time).
- Background Delivery:
- Notifications run automatically in the background when a visit transitions between stages, ensuring message dispatches never delay clinic front-desk operations or physician charting.
Insurance Networks
Comprehensive standard operating procedure for managing institutional insurance networks, third-party administrators (TPAs), contracted provider agreements, network tiers, and claims routing in Mazecare OS.
API Keys
How to generate, manage, and revoke API keys in Mazecare, exchange them for OAuth tokens, and call platform APIs like listing appointments.