> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user-documentation/messaging-channels/whatsapp-api/managing-your-whatsapp-api/creating-templates/whatsapp-template-with-a-dynamic-website-button.md).

# WhatsApp Template with a Dynamic Website Button

### Step 1: Open Template Manager

1. Login to your CRM Portal.
2. Go to **Channels → WhatsApp → Template Manager**.
3. Click **Create Template**.

### Step 2: Enter Template Details

1. Enter the **Template Name**.
2. Select the **Language**.
3. Choose the **Category** (Utility, Marketing, or Authentication).
4. Click **Next**.

### Step 3: Create the Template

1. Select the template type.
2. Add the **Header** (optional).
3. Enter your message in the **Body**.
4. Add variables if required.
5. Enter sample values for all variables.
6. Add a **Footer** (optional).

### Step 4: Add a Website Button

1. Click **Add Button**.
2. Select **Website Button**.
3. Enter the **Button Text**.

### Step 5: Configure the Dynamic URL

1. Select **Dynamic** as the URL type.
2. Enter your website URL.
3. Add a variable at the end of the URL.

**Example:**

```
https://example.com/{{1}}
```

4. Enter a dummy sample URL for template approval.

**Example:**

```
https://example.com/order123
```

> **Note:** Do not use actual customer data in the sample URL.

### Step 6: Submit the Template

1. Review the template.
2. Click **Save & Submit**.

Your template will be submitted to Meta for approval.

{% embed url="<https://youtu.be/oSv6fO_FtlI?si=fHDiiLVsU5zafcwo>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocumentation.gitbook.io/user-documentation/messaging-channels/whatsapp-api/managing-your-whatsapp-api/creating-templates/whatsapp-template-with-a-dynamic-website-button.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
