# Double opt-in confirmation workflow

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

{% hint style="info" %}

## Before you begin

Not sure where to use this template? Check out [Get started with workflow templates library](/xflow-app/workflows/get-started-with-workflow-templates-library.md)
{% endhint %}

## About this template

When a new subscriber signs up, send a confirmation email and **update their subscription status** to pending until they confirm. **Mark as completed** after confirmation action.

## Step-by-step guide to set up this template

{% stepper %}
{% step %}

### Trigger – New customer sign up

This trigger activates the workflow when a user submits a Notify me form on your store (not during checkout).

{% hint style="success" %}
📝 Learn more about triggers: [Understanding workflow triggers](/xflow-app/workflows/understanding-workflow-triggers.md)
{% endhint %}

<figure><img src="/files/fab4tW1hJAAPvTugbcnA" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action – Update subscription status

Set the customer’s subscription status to **Pending** to indicate they haven’t confirmed yet.

{% hint style="success" %}
📝 Learn more about actions: [Understanding workflow actions](/xflow-app/workflows/understanding-workflow-actions.md)
{% endhint %}

<figure><img src="/files/19L2grOBpf4QtZAoaitW" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action – Send email

Send a confirmation email that includes an opt-in link for the customer to verify their subscription.

{% hint style="success" %}

1. Enter the **email subject**.
2. Select the **email template** that you have prepared in advance.
   {% endhint %}

{% hint style="info" %}
If you don’t have an **email template** yet, check out [Create an email template](/xflow-app/email-templates/create-an-email-template.md)

Read more about the **variables** you can use in email: [Available variables in email templates](/xflow-app/email-templates/understanding-personalization-variables-in-email-templates/available-variables-in-email-templates.md)
{% endhint %}

<figure><img src="/files/3LdWGDMp7M9vRap9aYmG" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="success" %}
Setup complete! This workflow helps confirm new signups and ensures your emails reach people who truly opted in.
{% endhint %}

{% hint style="info" %}
**🌟 Pro Tip:**

* Make sure your confirmation email clearly explains why the customer needs to confirm.
* Use a simple and visible CTA button for the opt-in link to improve confirmation rates.
* Keep the email friendly and short to reduce drop-offs.
  {% endhint %}

## Common use cases

The **Double opt-in confirmation workflow** workflow template is commonly used when:

* You want to ensure **only verified users** are added to your email list.
* You need to **comply with email marketing regulations** like GDPR or CAN-SPAM.
* You want to **improve email deliverability** by avoiding unengaged or invalid subscribers.

***

#### 📩 **Need help?**

We’re here to make your XFlow experience smooth and successful.\
Our support team is always ready to assist you—no matter how big or small your question is.

<a href="https://admin.shopify.com/apps/xflow?chat=true&#x26;utm_source=foxecom&#x26;utm_medium=help_center_xflow_double_opt_in_confirmation_workflow&#x26;utm_campaign=cta_button&#x26;utm_term=chat_now" class="button primary" data-icon="comment-lines">Chat now</a> <a href="mailto:contact@help.xflow.so" class="button secondary" data-icon="envelopes">Message us</a>


---

# 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://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/double-opt-in-confirmation-workflow.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.
