# Happy hour offer WhatsApp template

> Drive weekday traffic with a happy hour announcement and a copyable code. Seasonal campaign WhatsApp template for bars and restaurants.

- Category: Marketing
- Industry: Restaurants
- Use case: Seasonal campaign
- Language: en_US
- Approval rate: 91%
- Page: https://template-builder.dev/whatsapp-template/restaurants-happy-hour-offer
- JSON: https://template-builder.dev/whatsapp-template/restaurants-happy-hour-offer.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoicmVzdGF1cmFudHNfaGFwcHlfaG91cl9vZmZlciIsImxhbmd1YWdlIjoiZW5fVVMiLCJjYXRlZ29yeSI6Ik1BUktFVElORyIsImJvZHkiOnsidGV4dCI6IkhpIHt7Zmlyc3RfbmFtZX19LCBoYXBweSBob3VyIGlzIG9uIGF0IHt7cmVzdGF1cmFudH19IGZyb20gNSB0byA3IFBNLiBTaG93IHRoaXMgY29kZSB0byBnZXQge3twZXJjZW50fX0lIG9mZiBhbGwgZHJpbmtzLiJ9LCJmb290ZXIiOnsidGV4dCI6IlJlcGx5IFNUT1AgdG8gb3B0IG91dCJ9LCJidXR0b25zIjpbeyJ0eXBlIjoiQ09QWV9DT0RFIiwiZXhhbXBsZSI6IkhBUFBZMjAifV0sInZhcmlhYmxlcyI6eyJmaXJzdF9uYW1lIjp7ImV4YW1wbGUiOiJNYXJpYSJ9LCJyZXN0YXVyYW50Ijp7ImV4YW1wbGUiOiJOb3J0aHdpbmQgQmlzdHJvIn0sInBlcmNlbnQiOnsiZXhhbXBsZSI6IjIwIn19fQ

## How to get it approved

Send early afternoon on the day. Make the time window explicit so the offer is verifiably real.

## Message text

Hi {{first_name}}, happy hour is on at {{restaurant}} from 5 to 7 PM. Show this code to get {{percent}}% off all drinks.
Reply STOP to opt out

## Variables

- `{{first_name}}`: Maria
- `{{restaurant}}`: Northwind Bistro
- `{{percent}}`: 20

## Template JSON

```json
{
  "name": "restaurants_happy_hour_offer",
  "language": "en_US",
  "category": "MARKETING",
  "body": {
    "text": "Hi {{first_name}}, happy hour is on at {{restaurant}} from 5 to 7 PM. Show this code to get {{percent}}% off all drinks."
  },
  "footer": {
    "text": "Reply STOP to opt out"
  },
  "buttons": [
    {
      "type": "COPY_CODE",
      "example": "HAPPY20"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "restaurant": {
      "example": "Northwind Bistro"
    },
    "percent": {
      "example": "20"
    }
  }
}
```

## 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": "restaurants_happy_hour_offer",
  "language": "en_US",
  "category": "MARKETING",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, happy hour is on at {{restaurant}} from 5 to 7 PM. Show this code to get {{percent}}% off all drinks.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "restaurant",
            "example": "Northwind Bistro"
          },
          {
            "param_name": "percent",
            "example": "20"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Reply STOP to opt out"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "COPY_CODE",
          "example": "HAPPY20"
        }
      ]
    }
  ]
}'
```
