# Test results ready WhatsApp template

> Notify patients that lab results are available in the secure portal without sharing the results. Account alert WhatsApp template.

- Category: Utility
- Industry: Healthcare
- Use case: Account alert
- Language: en_US
- Approval rate: 74%
- Page: https://template-builder.dev/whatsapp-template/healthcare-test-results-ready
- JSON: https://template-builder.dev/whatsapp-template/healthcare-test-results-ready.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiaGVhbHRoY2FyZV90ZXN0X3Jlc3VsdHNfcmVhZHkiLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJVVElMSVRZIiwiYm9keSI6eyJ0ZXh0IjoiSGkge3tmaXJzdF9uYW1lfX0sIHlvdXIgdGVzdCByZXN1bHRzIGZyb20ge3tkYXRlfX0gYXJlIG5vdyBhdmFpbGFibGUgaW4gdGhlIHt7Y2xpbmljfX0gcGF0aWVudCBwb3J0YWwuIExvZyBpbiBzZWN1cmVseSB0byB2aWV3IHRoZW0uIn0sImJ1dHRvbnMiOlt7InR5cGUiOiJVUkwiLCJ0ZXh0IjoiT3BlbiBwYXRpZW50IHBvcnRhbCIsInVybCI6Imh0dHBzOi8vYWNtZWhlYWx0aC5leGFtcGxlLmNvbS9wb3J0YWwifV0sInZhcmlhYmxlcyI6eyJmaXJzdF9uYW1lIjp7ImV4YW1wbGUiOiJNYXJpYSJ9LCJkYXRlIjp7ImV4YW1wbGUiOiJNYXJjaCAxNCJ9LCJjbGluaWMiOnsiZXhhbXBsZSI6IkFjbWUgSGVhbHRoIENsaW5pYyJ9fX0

## How to get it approved

Never put results in the message. Point to the secure portal only; this is also a privacy requirement.

## Message text

Hi {{first_name}}, your test results from {{date}} are now available in the {{clinic}} patient portal. Log in securely to view them.

## Variables

- `{{first_name}}`: Maria
- `{{date}}`: March 14
- `{{clinic}}`: Acme Health Clinic

## Template JSON

```json
{
  "name": "healthcare_test_results_ready",
  "language": "en_US",
  "category": "UTILITY",
  "body": {
    "text": "Hi {{first_name}}, your test results from {{date}} are now available in the {{clinic}} patient portal. Log in securely to view them."
  },
  "buttons": [
    {
      "type": "URL",
      "text": "Open patient portal",
      "url": "https://acmehealth.example.com/portal"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "date": {
      "example": "March 14"
    },
    "clinic": {
      "example": "Acme Health Clinic"
    }
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "healthcare_test_results_ready",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, your test results from {{date}} are now available in the {{clinic}} patient portal. Log in securely to view them.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "date",
            "example": "March 14"
          },
          {
            "param_name": "clinic",
            "example": "Acme Health Clinic"
          }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Open patient portal",
          "url": "https://acmehealth.example.com/portal"
        }
      ]
    }
  ]
}'
```
