Collected data
The automation asks, the answer lands on the contact: naming variables, using {{var}} in messages, and applying them in segments.
Last updated: November 9, 2026
A tag is yes/no. Collected data is a value: size = M, city = Tashkent,
occupation = developer.
The automation asks, the person answers, and the answer is written onto the contact card. From there it gets used in three places.
How it's configured
An Action → Collect data step is added inside the automation. Each question sets two things:
- the question text — what the person sees;
- the variable name — which field the answer lands in.
A set for taking an order
"What size are you?" → size
"Which city are you in?" → city
"Please send your phone number" → phone
Name the variable in Latin letters, with no spaces, and short: size, city,
phone. That same name is used in messages as {{size}} and becomes the
column heading in Excel.
How the answer is captured
After the question the flow waits. When the person answers:
- the answer is written into the variable;
- the flow moves to the next step.
The answer can also be captured with buttons — and usually should be. A button
is more precise than text: size gets "M" rather than "probably M or L".
For phone numbers Telegram has a dedicated request step: the person taps one button and the number arrives from the platform. On Instagram the number has to be typed, so conversion there is naturally lower.
Used in three places
1. On the contact card and in live chat
When an operator opens the conversation they see every collected answer in the right panel. Which means nobody asks for a size twice.

2. In later messages
Write {{size}} in the text and it is replaced by the person's answer:
Your size is {{size}} — there are 3 options in it.
Delivery to {{city}} takes one day.
Variable names must match exactly. {{size}} and {{Size}} are different
things, and the second comes out empty.
3. In broadcast segments
Broadcasts have a condition on collected data: for example, people whose
occupation contains "developer", or whose size is XL or XXL.
That works more precisely than a tag, because with tags you would need a separate tag for every possible value.
How many questions to ask
Every extra question is a person lost. The practical ceiling: no more than five questions for an order.
If you need more, split the collection into two stages: the three most important in the first conversation, the rest gathered by an operator or in a later one.
Exporting to Excel
Every collected answer appears in the contacts export as its own column. A
practical case: filter the people with phone filled in and the "Lead" tag,
and get a call list.
Troubleshooting
| Symptom | Cause |
|---|---|
{{size}} came out empty | The variable isn't filled, or the name is spelled differently |
| The answer wasn't recorded | An ordinary message follows the question instead of "collect data" |
| The flow stalled | The person never answered — add a delay and a reminder |
| The segment matched 0 people | The variable name is spelled differently in the segment |
More detail: DM-triggered automation.
Questions
How should I name a variable?
In Latin letters, no spaces, and short: size, city, phone, occupation. That same name is used in messages as {{size}} and becomes the column heading in Excel, so it is worth getting right the first time.
What happens if the person doesn't answer?
The flow waits at that point. If they write later, the answer goes into the same variable and the flow continues. If waiting isn't wanted, add a delay step and a reminder after the question.
Can the answer be validated — that a phone number really is a number?
Telegram has a phone-request step: the person taps one button and the number comes from the platform, so it is definitely valid. On Instagram the number is typed as text, so mistakes are possible there and an operator should check.
Can I backfill data for older contacts?
Yes, but only through a new conversation: if an automation with the question runs for them, the answer is written onto the contact. There is no way to fill them in bulk.
{{size}} came out empty — why?
Either the variable isn't filled yet, or its name is spelled differently. Variable names must match exactly: {{size}} and {{Size}} are not the same thing.
Related guides
- TagsA tag is a mark on a contact and the basis of broadcast segments. How an automation applies one, and which four tags are enough to start.
- ContactsEveryone who messages you is stored as a contact: what the card holds, how to search and filter, and how to export to Excel.
- DM and keyword flowsAn automatic reply to an incoming message: keyword, first-message and /start triggers, button paths, and Telegram deep links.