# Redirect Templates

### A. Creating Templates

You can create templates in two ways:

### **Process 1: From the Rule Creation Window**

While creating a redirect rule (in [**Step 3: Redirect Type**](/geoip-country-redirect/country-redirect/create-redirect-rule.md#step-4-redirect-type)), you can create and customise a new template:

* Choose Type → Display Based Redirect → select **"Create New template"** option.

<figure><img src="/files/wMTZHYEP8DUxnQuC5Zge" alt=""><figcaption></figcaption></figure>

* Choose from the Pre-designed templates.&#x20;

<figure><img src="/files/5VIUyhIPLmcoR7sOORSC" alt=""><figcaption></figcaption></figure>

* Customise the template in the Editor based on your preferences

<figure><img src="/files/jx3BjncpMEEHCfzmXryD" alt=""><figcaption></figcaption></figure>

Click on the Save button to apply the changes.\
You can add the [**Dynamic Keys**](/geoip-country-redirect/country-redirect/dynamic-keys.md) to display the country name and the country flag to the visitors.

The template will appear in the rule. Click the **Save Rule** button to add the template and create the rule.

<figure><img src="/files/64F4iodi7RYeoJc4QLLt" alt=""><figcaption></figcaption></figure>

### Process 2: From the Templates section

You can also create or manage templates directly from the **Templates** section:

* Click on **"+ Explore Redirect Template"**.

<figure><img src="/files/c42wjzu0UQ15VezjY82p" alt=""><figcaption></figcaption></figure>

* Choose from the Pre-designed templates.&#x20;

<figure><img src="/files/k1ujK1Pa8EqRm6DQ5hGl" alt=""><figcaption></figcaption></figure>

* Customise the template in the Editor based on your preferences. Click save to apply the changes.

<figure><img src="/files/Owfogm2xgQja5EPZG82D" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** In the pop-up within the **Template Editor** section, the countries shows **Canada** and the **United States** as default.

The visitor’s country data **\[country-name]** and **\[country-code]** configured in the rule is displayed when the **👁️ Live Preview button** is clicked.

The **\[store-name]** key displays information of **store name** when the rule is triggered.&#x20;
{% endhint %}

For customization, please refer to the link: [Popup Customization](/geoip-country-redirect/videos.md#popup-customization)

* The template will appear in the Templates section.

<figure><img src="/files/DFFbnLxjBari7SYe0gFN" alt=""><figcaption></figcaption></figure>

### B. Managing Existing Templates

#### **Clone a Template**

* Go to **Templates**.
* Click the **Clone** button next to the template you want to duplicate.
* After cloning, click **Customise** to edit the cloned version as per your needs.

<figure><img src="/files/0WWblQPGvj9IJWUlbpez" alt=""><figcaption></figcaption></figure>

#### **Delete a Template**

* Go to **Templates**.
* Click the **Delete** button next to the template you want to remove from the list.

<figure><img src="/files/Gxlw1TKYrMEFKwZ2fGL8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/geoip-country-redirect/country-redirect/create-clone-and-delete-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
