Mazecare Logo
Integrations & Settings

WhatsApp Business Account Setup

How to link your WhatsApp Business API credentials to Mazecare to send patient appointment reminders, prescriptions, and digital MCs via Workflow Definitions.

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:

  1. Log in to the Meta for Developers Portal.
  2. Create or select a Business App and set up the WhatsApp integration.
  3. In the left menu, go to WhatsApp > API Setup.
  4. 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:

  1. Log in to Mazecare as an Administrator.
  2. Navigate to WhatsApp Integration settings.
  3. 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.
  4. 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:

  1. Create and submit message templates (e.g., Booking Confirmations, Digital Medical Certificate links, Invoice receipts) for approval in your Meta Business Manager > WhatsApp Manager.
  2. Once approved, return to Mazecare and navigate to Message Templates.
  3. Click Sync Templates to download approved templates from Meta.
  4. Open the template mapping drawer:
    • Map each approved Meta template to the corresponding clinical trigger in Mazecare (e.g., mapping booking_confirmation to the Appointment Scheduled trigger).
    • Map variable placeholders (such as patient name, appointment date, or receipt link) to dynamic clinic parameters.
  5. 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:

  1. Navigate to Settings → Workflow Definitions and open your active workflow.
  2. 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).
  3. 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).
  4. 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.
Important Note
Ensure your Meta WhatsApp Business account is in good standing and has a valid payment method configured in Meta Business Suite to prevent message delivery interruptions.
Copyright © 2026