> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatflows.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Question steps: collect customer details

> Ask for a name, phone number, email, address, location or file in the chat, check the answer, and save it to the customer's record automatically.

Collect what you need without typing a single question yourself. The **Ask** category steps ask customers for their **name**, **phone number**, **email address**, **location** or **files**. Each step asks a question, validates the response, and saves the answer to the contact record for later use.

![Flow Builder with the Ask tab selected, showing the Ask Question, Ask Phone, Ask Email, Ask Address, Ask Location, Ask Media, and Get Input tiles, and a job application flow connecting a Start Trigger to an Ask Question, an Ask Phone, an Ask Media, and a closing Text Message](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-flow-steps.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=a2c6fe34e232fd2b8a34883d85189396)

## How every Ask step works

**1. Write the question**

Enter your question in the Question field. Depending on the step, this field may be called Question, Question Message, or Media Question. Type **@** to insert a [merge field](https://docs.chatflows.io/messaging/merge-fields.md), such as the contact's first name.

**2. Choose where to save the answer**

Set the **Capture Attribute** field. This is where the customer's answer will be saved. Give it a meaningful name, such as `preferred_date`. You can save the answer to a [customer field](https://docs.chatflows.io/core-setup/custom-fields.md), or to a flow variable that's only available during the current conversation.

**3. Set the retries**

**Number of Attempts** determines how many times the chatbot asks the question again if the customer's answer isn't valid. Set it to `0` to accept the first answer without asking again.

**4. Write the retry messages**

**Validation Error Message** is shown when the customer's answer isn't valid. You can use the default message or write your own. The same question is then asked again.

In later message steps, type **@** in any message field to insert the saved answer as a [merge field](https://docs.chatflows.io/messaging/merge-fields.md).

> [!NOTE]
>
> **Ask Address** and **Ask Location** don't have the retry fields — they save whatever the customer sends.

***

## Ask Question

**What it does.** Asks for anything and checks the answer against a format you choose: **Text**, **Any**, **Number**, **Email**, **Phone**, **URL**, **Date**, or a **Regular expression** pattern.

**When to use it.** Use it to collect any text information, such as a customer's name, order number, party size, preferred date, or review.

**Required fields**

* **Question** and **Capture Attribute** are required.
* **Attribute Format** sets what a valid answer looks like. It defaults to **Any**, which accepts whatever the customer sends.
* **Pattern** is required, but only if you set the Attribute Format to **Regular expression**.

![Ask Question settings with a Question box asking what date the customer would like their order delivered, a Capture Attribute of delivery\_date, an Attribute Format of Date, Number of Attempts set to 2, a Validation Error Message, and an Attempts Over Message](https://mintcdn.com/chatflows-docs/hkBJe4xsaJHOwUHL/automation/img/ask/ask-question-settings.png?fit=max\&auto=format\&n=hkBJe4xsaJHOwUHL\&q=85\&s=187c6e12b0335ae442fe2a53b75686ff)

**Example**

> **Question:** What date would you like your order delivered?
> **Attribute Format:** Date
> **Capture Attribute:** `delivery_date`
> **Number of Attempts:** 2
> **Validation Error Message:** That doesn't look like a date. Please send it as DD/MM/YYYY.

![A Start Trigger set to exact match on the keyword delivery date, connected to an Ask Question step asking what date the customer would like their order delivered](https://mintcdn.com/chatflows-docs/hkBJe4xsaJHOwUHL/automation/img/ask/ask-question.png?fit=max\&auto=format\&n=hkBJe4xsaJHOwUHL\&q=85\&s=bf42fd10d56e8f7650039acc6835d150)

***

## Ask Phone

**What it does.** Asks the customer for a phone number and checks that it's valid.

**When to use it.** Use it when you need to collect a phone number, such as for a callback or an alternate contact number.

**Required fields**

* **Question** and **Capture Attribute** are required. The format is already set to Phone for you.

![Ask Phone settings with a Question box reading Please send your phone number, helper text saying it validates as a phone number, a Capture Attribute of callback\_number, and the Show typing indicator switch turned off](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-phone-settings.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=0e9d9be312aaf2b42307d963d8b51d60)

**Example**

> **Question:** Please send your phone number
> **Capture Attribute:** `callback_number`

![A Start Trigger set to exact match on the keywords track and order status, connected to an Ask Phone step asking for the phone number used for the order](https://mintcdn.com/chatflows-docs/rriwZ7XlN4L4cQGe/automation/img/ask/ask-phone.png?fit=max\&auto=format\&n=rriwZ7XlN4L4cQGe\&q=85\&s=dc7c55d3537fb7ff0b524a550df87338)

***

## Ask Email

**What it does.** Asks the customer for an email address and checks that it's valid.

**When to use it.** Use it when you need the customer's email address, such as for sending invoices, order receipts, or newsletters.

**Required fields**

* **Question** and **Capture Attribute** are required. The format is already set to Email for you.

![Ask Email settings with a Question box reading Where should we email your invoice, helper text saying it validates as an email address, a Capture Attribute of email, and the Show typing indicator switch turned off](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-email-settings.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=0029c1dfaf2f5398ad4f4f78afcc70be)

**Example**

> **Question:** Where should we email your invoice?
> **Capture Attribute:** `email`

![A Start Trigger set to exact match on the keyword menu, connected to an Ask Email step asking where to email the invoice](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-email.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=8d77ed9ec402fb20a575760699f4d3b7)

***

## Ask Address

**What it does.** Asks the customer for their address.

**When to use it.** Use it to collect a delivery address, service address, or any other location where you need to visit or deliver.

**Required fields**

* **Question Message** and **Capture Attribute** are required.
* **Formatted Response Attribute** is optional. Use it if you want to save the formatted address in a separate field.
* There are no validation or retry options for this step. The customer's response is saved as it is.

![Ask Address settings with a Question Message box asking for the full delivery address including the pincode, a Capture Attribute of delivery\_address, an empty Formatted Response Attribute, and the Show typing indicator switch turned off](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-address-settings.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=4512cf5a998fb28e14687b5b599c8ede)

**Example**

> **Question Message:** What's the full delivery address, including the pincode?
> **Capture Attribute:** `delivery_address`

![A Start Trigger set to the Shopify Order placed event, connected to an Ask Address step asking for the full delivery address including the pincode](https://mintcdn.com/chatflows-docs/8QSpoWsCTFEf5plZ/automation/img/ask/ask-address.png?fit=max\&auto=format\&n=8QSpoWsCTFEf5plZ\&q=85\&s=eb2b057794c25d6a828a0d12bbd8de56)

***

## Ask Location

**What it does.** Asks the customer to share their actual GPS location using WhatsApp's location button.

**When to use it.** Use it when you need the customer's exact location, such as for deliveries, pickups, or on-site services.

**Required fields**

* **Question Message** and **Capture Attribute** are required.
* There are no validation or retry options for this step. The customer’s response is saved as it is.

![Ask Location settings with a note explaining that WhatsApp shows a Send location button the contact taps to share their GPS location, a Question Message box, a Capture Attribute of pickup\_location, and helper text saying the answer is stored as lat, lng](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-location-settings.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=544fa72fcf683ed99d19fbba31c2534b)

**Example**

> **Question Message:** Please share your location so the driver can find you.
> **Capture Attribute:** `pickup_location`

![A Start Trigger set to exact match on the keyword location, connected to an Ask Location step asking the customer to share their location so the driver can find them](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-location.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=037c2f4814f9aad00cb92e5cab1a5904)

> [!NOTE]
>
> Ask Location is a WhatsApp-only step. It's hidden on Messenger flows.

***

## Ask Media

**What it does.** Asks the customer to upload a file. You can choose which file types are allowed, such as **Image**, **Video**, **Audio**, **Document**, or **Sticker**, or allow **Any** file.

**When to use it.** Use it when you need customers to send files, **such as photos of damaged items**, **ID documents**, **prescriptions**, **screenshots**, or other **supporting documents**.

**Required fields**

* **Media Question** and **Capture Attribute** are required.
* **Media Type** defaults to **Any**, which accepts any file the customer sends.

![Ask Media settings with a Media Question box asking for a photo of the damaged item, a Capture Attribute of damage\_photo, a Media Type of Image, Number of Attempts set to 1, a Validation Error Message, and an Attempts Over Message](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-media-settings.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=09e6d0922b3044489dfb583839f9bdd0)

**Example**

> **Media Question:** Please send a photo of the damaged item so we can process your return.
> **Media Type:** Image
> **Capture Attribute:** `damage_photo`

![A Start Trigger set to exact match on the keywords replace and damage, connected to an Ask Media step asking for a photo of the damaged item](https://mintcdn.com/chatflows-docs/wJMcyFv6gdBNOsVY/automation/img/ask/ask-media.png?fit=max\&auto=format\&n=wJMcyFv6gdBNOsVY\&q=85\&s=8e70b7055c644e64fed24fe7dd0114eb)

***

## Get Input

**What it does.** Collects a customer's response and saves it. You can choose the type of answer to accept, such as **text**, **number**, **email**, **phone number**, **URL**, **date**, or **any value**.

**When to use it.** Use it when you need to collect a simple answer without additional validation or settings.

**Required fields**

* **Question** and **Capture Attribute** are required.
* **Attribute Format** defaults to **Any**, which accepts whatever they send.

![Get Input settings with a Question box asking how many the customer would like to order, a Capture Attribute of quantity, an Attribute Format of Number, Number of Attempts set to 0, and the Show typing indicator switch turned off](https://mintcdn.com/chatflows-docs/hkBJe4xsaJHOwUHL/automation/img/ask/get-input-settings.png?fit=max\&auto=format\&n=hkBJe4xsaJHOwUHL\&q=85\&s=24682d6315d0d275d2a58b1d29d30315)

**Example**

> **Question:** How many would you like to order?
> **Attribute Format:** Number
> **Capture Attribute:** `quantity`

![A Start Trigger set to exact match on the keyword order, connected to a Get Input step asking how many the customer would like to order](https://mintcdn.com/chatflows-docs/hkBJe4xsaJHOwUHL/automation/img/ask/get-input.png?fit=max\&auto=format\&n=hkBJe4xsaJHOwUHL\&q=85\&s=743379ce9db7d542b30dac80e54e852a)

***

## A worked example

A store takes a return request:

1. **Button Message** — "How can we help?" with `Return an item`.
2. **Ask Question** (Text) — "What's your order number?" → `order_number`
3. **Get Input** (Number) — "How many items are you returning?" → `return_qty`
4. **Ask Question** (Date) — "Which date can we pick it up?" → `pickup_date`
5. **Ask Phone** — "What number can the courier call?" → `callback_number`
6. **Text Message** — "Thanks \{\{contact.first\_name}}! We've noted your return of \{\{vars.return\_qty}} item(s) from order \{\{vars.order\_number}}. The courier will collect it on \{\{vars.pickup\_date}}."

![The finished return flow — a Start Trigger on the keyword return leading to a Button Message with a Return an item button, then an Ask Question for the order number, a Get Input for the number of items, an Ask Question for the pickup date, an Ask Phone for the courier's call-back number, and a closing Text Message that confirms the return using the saved answers as merge fields](https://mintcdn.com/chatflows-docs/hkBJe4xsaJHOwUHL/automation/img/ask/worked-example-return-flow.png?fit=max\&auto=format\&n=hkBJe4xsaJHOwUHL\&q=85\&s=e24882c05e54092fb284ff922bcc7c85)

Add a **Google Sheets** step at the end and every return request lands in a spreadsheet automatically.

## Show Typing Indicator

**Show Typing Indicator** — Available on every flow step in this category. When enabled, the customer sees a "typing..." indicator before your question is sent, making the conversation feel more natural.

The typing indicator works on both WhatsApp and Messenger, but only when the customer has already started the conversation.

## What's next

> [card] [Advanced](https://docs.chatflows.io/automation/flow-steps/advanced.md)
>
> Branch on the answers you just collected.

> [card] [Integrations](https://docs.chatflows.io/automation/flow-steps/integrations.md)
>
> Send the answers to Google Sheets or Google Calendar.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.