> ## Documentation Index
> Fetch the complete documentation index at: https://developer.flabslis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

> The Flabs WhatsApp templates to copy into your provider.

Create these templates in your WhatsApp provider, then fill them from the event: patient fields from `data.patientData`, everything else from `data.variables`. WhatsApp button URLs need a fixed domain, so the Download Report buttons use the domain of the report link (`https://<report-domain>/`) with the rest of the link as the variable. Use **Copy template** to copy the text exactly.

## Report to patient

L

Your Lab

Business account

Report PDF

1 page · PDF

10:30 am

Download Report

<details>
  <summary>View text</summary>

  <pre>
    Dear \{\{1}},

    Important Update from \{\{2}} regarding your test results.

    Your report is now available for collection. Kindly visit the lab to collect it at your earliest convenience.

    For any further assistance, you can reach the lab at: \{\{3}} during working hours.
  </pre>
</details>

Copy template

**Button:** Download Report → `https://<report-domain>/{{4}}`

| Variable | Fill with |
| - | - |
| Document | `reportLink` |
| `{{1}}` | `firstName` |
| `{{2}}` | `labName` |
| `{{3}}` | `labContact` |
| `{{4}}` | `reportLink` without its `https://<report-domain>/` part |

## Report due reminder

L

Your Lab

Business account

10:30 am

Check Report Status

<details>
  <summary>View text</summary>

  <pre>
    Dear *\{\{1}}*,

    Your report is ready. Please pay your due payment.

    Contact no. of *\{\{2}}* :- *\{\{3}}*.

    Check Report Status: \{\{4}}

    Thank you.
  </pre>
</details>

Copy template

**Button:** Check Report Status → `https://records.flabslis.com/report-status/{{5}}`

| Variable | Fill with |
| - | - |
| `{{1}}` | `firstName` |
| `{{2}}` | `labName` |
| `{{3}}` | `labContact` |
| `{{4}}` | `reportStatusLink` |
| `{{5}}` | `data.billID` |

The event also carries `data.due` (with `data.total` and `data.paid`), so you can add the pending amount to your version of this template.

## Report to B2B centre

L

Your Lab

Business account

Report PDF

1 page · PDF

10:30 am

Download Report

<details>
  <summary>View text</summary>

  <pre>
    Dear B2B Client,
    Patient Report Ready
    Patient \{\{1}}, \{\{2}}, \{\{3}}.
    Please download it!

    \{\{4}}
    Thanks
  </pre>
</details>

Copy template

**Button:** Download Report → `https://<report-domain>/{{5}}`

| Variable | Fill with |
| - | - |
| Document | `reportWithLetterheadLink` or `reportWithoutLetterheadLink` |
| `{{1}}` | `firstName` |
| `{{2}}` | `age` + `ageType`, e.g. `32 year` |
| `{{3}}` | `gender` |
| `{{4}}` | `labName` |
| `{{5}}` | The same report link as the Document, without its `https://<report-domain>/` part |

## Report to doctor

L

Your Lab

Business account

Report PDF

1 page · PDF

10:30 am

Download Report

<details>
  <summary>View text</summary>

  <pre>
    Hello Dr. \{\{1}},

    Report for \{\{2}} is ready.View report 👉 \{\{4}}

    \{\{5}}
    Please check and review at your convenience.
  </pre>
</details>

Copy template

**Button:** Download Report → `https://<report-domain>/{{6}}`

| Variable | Fill with |
| - | - |
| Document | `reportLink` |
| `{{1}}` | `doctorName` |
| `{{2}}` | `firstName` + `lastName` |
| `{{4}}` | `reportLink` |
| `{{5}}` | `labName` |
| `{{6}}` | `reportLink` without its `https://<report-domain>/` part |

## Bill to patient

L

Your Lab

Business account

Bill PDF

1 page · PDF

10:30 am

Check Report Status

<details>
  <summary>View text</summary>

  <pre>
    Hi *\{\{1}}*,

    You requested a copy of your bill from *\{\{2}}*.
    The bill is attached to this message.
    You can check your report status here: \{\{3}}

    For any assistance, contact *\{\{4}}* at *\{\{5}}* during working hours.
    Please check and review at your convenience.
  </pre>
</details>

Copy template

**Button:** Check Report Status → `https://records.flabslis.com/report-status/{{6}}`

| Variable | Fill with |
| - | - |
| Document | `billLink` |
| `{{1}}` | `firstName` |
| `{{2}}` | `labName` |
| `{{3}}` | `reportStatusLink` |
| `{{4}}` | `labName` |
| `{{5}}` | `labContact` |
| `{{6}}` | `data.billID` |

## CRM messages

These are the default texts for the CRM and Bookings messages. To change them, contact Flabs support. A provider template always shows every line, so leave out optional lines (like Discount) if you don't want them blank.

### Patient Booking Confirmation

`booking.send`

L

Your Lab

Business account

10:30 am

<details>
  <summary>View text</summary>

  <pre>
    Hi \{\{patient\_name}}, your booking is scheduled on \{\{booking\_date}}, \{\{booking\_time}}.
    Type: \{\{booking\_type}}

    Tests:
    \{\{tests\_list}}

    Packages:
    \{\{packages\_list}}

    Total MRP: ₹\{\{total\_mrp}}
    Discount: ₹\{\{discount}}
    Total: ₹\{\{total\_price}}

    Thank you - \{\{lab\_name}}
  </pre>
</details>

Copy template

| Variable | Fill with |
| - | - |
| `{{patient_name}}` | `patientData.firstName` + `patientData.lastName` |
| `{{booking_date}}`, `{{booking_time}}`, `{{booking_type}}` | `variables.bookingDate`, `.bookingTime`, `.bookingType` |
| `{{tests_list}}`, `{{packages_list}}` | `variables.testsList`, `.packagesList` |
| `{{total_mrp}}`, `{{discount}}`, `{{total_price}}` | `variables.totalMrp`, `.discount`, `.totalPrice` |
| `{{lab_name}}` | `variables.labName` |

### Phlebotomist Booking Details

`phlebotomist.send`

L

Your Lab

Business account

10:30 am

<details>
  <summary>View text</summary>

  <pre>
    Hi \{\{phlebotomist\_name}}, a new booking has been assigned to you.

    Patient: \{\{patient\_name}} (\{\{patient\_phone}})
    Date: \{\{booking\_date}} at \{\{booking\_time}}
    Address: \{\{patient\_address}}

    Tests:
    \{\{tests\_list}}

    Packages:
    \{\{packages\_list}}

    Total MRP: ₹\{\{total\_mrp}}
    Discount: ₹\{\{discount}}
    Total: ₹\{\{total\_price}}

    Please confirm receipt.

    * \{\{lab\_name}}
  </pre>
</details>

Copy template

| Variable | Fill with |
| - | - |
| `{{phlebotomist_name}}` | `variables.phlebotomistName` |
| `{{patient_name}}` | `patientData.firstName` + `patientData.lastName` |
| `{{patient_phone}}` | `patientData.contact` |
| `{{patient_address}}` | `patientData.address` |
| `{{booking_date}}`, `{{booking_time}}` | `variables.bookingDate`, `.bookingTime` |
| `{{tests_list}}`, `{{packages_list}}` | `variables.testsList`, `.packagesList` |
| `{{total_mrp}}`, `{{discount}}`, `{{total_price}}` | `variables.totalMrp`, `.discount`, `.totalPrice` |
| `{{lab_name}}` | `variables.labName` |

### Patient Quotation

`quotation.send`

L

Your Lab

Business account

10:30 am

<details>
  <summary>View text</summary>

  <pre>
    Hi \{\{patient\_name}}, here is your quotation from \{\{lab\_name}}:

    Tests:
    \{\{tests\_list}}

    Packages:
    \{\{packages\_list}}

    Total MRP: ₹\{\{total\_mrp}}
    Discount: ₹\{\{discount}}
    Total: ₹\{\{total\_price}}

    Reply YES to confirm and book your tests.

    Thank you - \{\{lab\_name}}
  </pre>
</details>

Copy template

| Variable | Fill with |
| - | - |
| `{{patient_name}}` | `patientData.firstName` + `patientData.lastName` |
| `{{lab_name}}` | `variables.labName` |
| `{{tests_list}}`, `{{packages_list}}` | `variables.testsList`, `.packagesList` |
| `{{total_mrp}}`, `{{discount}}`, `{{total_price}}` | `variables.totalMrp`, `.discount`, `.totalPrice` |

Other default values (`uhid` → `patientData.uhid`, `company`, `corporateClient`, `quotationLines`, `testNames`, `patientMapLink`, `phlebotomistPhone`) are listed under [CRM messages](https://developer.flabslis.com/whatsapp/payload.md#crm-messages). Custom fields (`{{cf_…}}`) are not sent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.