---
title: "Confirm a customer's email in the chat"
description: "Add the Verify email step: the customer gets a code by email, types it in the Messenger, and the conversation continues as the contact you already know."
url: https://help.gleap.ai/en/articles/16751992-confirm-a-customer-s-email-in-the-chat
collection: "Workflows"
updated: 2026-11-19
language: en
---

# Confirm a customer's email in the chat

Add the Verify email step: the customer gets a code by email, types it in the Messenger, and the conversation continues as the contact you already know.

The **Verify email** step asks a customer for their email address in the Messenger, sends a 6-digit code to it and waits for them to type it in. Use it before you show account details or act on someone's behalf, and to bring a visitor's chat together with the contact you already know.

### What the customer sees

1.  A card asks for their email address. If Gleap already knows it, the card can skip the question and send the code straight away.
    
2.  A 6-digit code arrives by email.
    
3.  They type the code into the card. A wrong code shows how many tries are left, and they can ask for a new code after 30 seconds.
    

When the code is right, the card turns into a short confirmation and the workflow takes the **Verified** path. After the last wrong try, or when the code expires, it takes the **Not verified** path.

### Add the step

1.  Open a workflow that runs on conversations in the Messenger, or create one.
    
2.  Click **Add step** and choose **Verify email** (category **Customer interaction**).
    
3.  Write the **Message** the card shows above the field, for example "Please confirm your email so we can look up your account."
    
4.  Choose what happens next on both paths: **Verified** and **Not verified**.
    

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Setting</p></th><th colspan="1" rowspan="1"><p>What it does</p></th></tr><tr><td colspan="1" rowspan="1"><p><strong>Use the email we already have</strong></p></td><td colspan="1" rowspan="1"><p>Sends the code to the email on file and skips the question. Without an email on file, the card asks for one.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Continue as the matching contact</strong></p></td><td colspan="1" rowspan="1"><p>When a known contact has this email, the conversation moves to that contact and the visitor continues as them, with their earlier conversations. On by default.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Tries</strong></p></td><td colspan="1" rowspan="1"><p>How many wrong codes are allowed before the <strong>Not verified</strong> path. Default 3.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Code valid for</strong></p></td><td colspan="1" rowspan="1"><p>How long a code works. Default 10 minutes.</p></td></tr></tbody></table>

The card only exists in the Messenger. On email, WhatsApp and other channels the step takes the **Not verified** path straight away, so put a fallback there.

### Which contact the conversation moves to

With **Continue as the matching contact** on, Gleap looks for a contact with the confirmed email:

-   **A user whose email is proven**, because your server sent it (for example with `POST /admin/identify`) or your app's login signed it. The conversation moves to that user, and the visitor sees their earlier conversations.
    
-   **Otherwise, a single contact that only has this email**, for example from an email to your support address.
    
-   **Nobody else.** A user whose email only came from your app without proof is never a target, because anyone could have typed that email into their own account. In that case the visitor keeps their own contact, which now has a confirmed email.
    

If the visitor is already logged in to your app, they stay themselves: contacts without a user ID that have the confirmed email join them instead.

### Use the result later

The contact's **Email verified** attribute is true from then on, as long as their email stays the same. Use it in a **Condition** step, for example to give account answers only to verified contacts. Your server and signed logins set it too.

> **Info:** Codes are sent from Gleap's mail service. Each conversation can request a new code at most every 30 seconds, and each email address gets at most 5 codes per hour.

### Related

-   [Workflow steps reference](https://help.gleap.ai/en/articles/312-workflow-steps-reference.md)
    
-   [Avoid and clean up duplicate contacts](https://help.gleap.ai/en/articles/16751964-avoid-and-clean-up-duplicate-contacts.md)
    
-   [Identify users and send attributes and events](https://help.gleap.ai/en/articles/230-identify-users-and-send-attributes-and-events.md)
