Skip to content
Input & data

Ask: the bot puts a question and remembers the answer

The bot asks for a name, email, phone or address, checks the answer and saves it to a variable — to reuse later in the flow.

In short

The "Ask" block in the Forgebot Telegram bot builder is a flow step where the bot asks the person a question, waits for their answer in the chat, optionally checks its form (email, phone, number) and saves it to a variable. Use it wherever you need something from the customer: a name, a delivery address, a note on the order.

Free plan — no card required.

The “Ask” block’s settings panel in the editor
About the block

What the "Ask" block does

The bot sends the person a question and pauses until they reply. It remembers the answer in a "cell" (a variable) — you can then insert it into other messages or attach it to the customer. If you set what kind of answer to expect (an email, say), the bot checks it and politely re-asks when the person gets it wrong.

Fields

Block settings

The block's settings panel — what to fill in:

Question text
The question the bot sends the person in chat — for example "What's your name?". You can insert a saved value via {{...}} and format text bold or italic. Up to 4096 characters (a counter flags overflow).
Attach media
Optional: attach a photo, video, GIF, audio, voice note or file to the question — the question text then becomes its caption. The file is given as an https link the server checks on save.
Text format
How to read the question's formatting (bold, italic, links): automatically or in a specific format. Automatic by default.
Variable name
The name of the "cell" where the bot saves the answer to use later — for example email or name. Latin letters, no spaces, not starting with a digit.
Where to remember
Remember the answer only within this conversation or attach it to the person permanently. Only within this conversation by default.
Answer type
What kind of answer to expect: any text, email, phone or a number. If the answer doesn't fit, the bot asks again. Any text by default.
Message on a wrong answer
Optional: what the bot writes if the person answered in the wrong form (a malformed email, say). Leave it empty and the bot simply repeats the question. Up to 4096 characters.
How many times to re-ask
How many times the bot re-asks before it stops waiting for a valid answer and moves on. From 0 to 5, 2 by default.
Example

Example: a delivery address

The bot writes "Where should we deliver?", the person sends the address, and the bot saves it to the variable address. If a phone is needed next, another "Ask" block with the answer type "phone" checks the number and re-asks if the format is wrong.

FAQ

Frequently asked questions

What happens if the person answers in the wrong way?

If you picked an answer type (email or phone, say) and the person answered incorrectly, the bot sends the error message (or repeats the question) and waits again — as many times as set in "How many times to re-ask" (0 to 5). After that the flow moves on.

Where do I get the saved answer later?

The answer sits in the variable with the name you set. In any later block you can insert it via {{name}} — for example "Thanks, {{name}}!". If you keep it "attached to the person", the answer stays with the customer in future conversations too.

How is "Ask" different from the "Phone / location" block?

"Ask" waits for the person to type an answer as text. "Phone / location" offers a button that lets Telegram share the number or location itself — the person doesn't type them by hand.

// Start today

Launch your Telegram bot with Forgebot

Build your first flow, reply to subscribers and watch analytics — free, no code.

Free plan: 1 bot, 5 flows, 100 subscribers. No card required.