FlowsBook a callSign inCreate free accountSign up
Logic

Ask a person

Ask a person stops the run to ask someone a question, waits for the answer and carries on with it: “Which of these 3 sites should I dig into?”, “Should I call this clinic?”, “How many visits can we do this week?”. The question goes by email (with a link to a page where they answer), on WhatsApp from xMap’s number (their next message there is the answer, and choices come as buttons) or in a Slack channel (the first reply in its thread). The answer goes on with the items as answer, with who answered and when, and later blocks can use {{answer}}. Approval says only yes or no to items; this block takes a free answer, a choice, a number or a yes or no.

In the editor: Asks someone a question in the middle of the run and waits for the answer, such as “Which of these 3 sites should I dig into?”: by email, on WhatsApp from xMap’s number, or in a Slack channel. The answer goes on with the items as answer (use {{answer}} in later blocks) and the run carries on at once. Everything before this block has already run. A test run does not ask: it uses an example answer.

Settings

Question

Text, several lines

The question. {{items}} lists the items that reached the block (the first 20, numbered), {{count}} says how many there are, and {{field}} is a field of the first item (or of each item, when you ask about each one).

{{items}} is the list (the first 20, numbered), {{count}} how many there are, {{field}} a field of the first item.

Needed before the flow can run.

Ask

Pick one

The flow’s owner, a teammate (a member of your organization), or someone outside it, who answers through the link in their email.

  • The flow’s owner
  • A teammate
  • Someone outside my organization

Their email address

Text

A member of your organization. On WhatsApp they need a confirmed number (Settings, Your WhatsApp).

Needed before the flow can run.

Their email address

Text

Needed before the flow can run.

Ask by

Pick one

Email, xMap’s WhatsApp (for people who confirmed their number in Settings, Your WhatsApp) or a Slack channel.

An email with a link to a page where they answer. The person asked also gets a notice in the app.

  • Email
  • xMap’s WhatsApp
  • Slack

Slack account

An account you connect

Channel

Text

Invite the xMap Flows app to a private channel first.

Needed before the flow can run.

Answer as

Pick one

Free text, one of your choices, a number, or yes or no. An answer that does not fit is asked again.

Any words, up to 2,000 characters.

  • Free text
  • Pick one of my choices
  • A number
  • Yes or no

Choices

Text, several lines

2 to 6, one a line.

Needed before the flow can run.

Ask it

Pick one

One question for the run, or one for each item (up to 20), each item going on with its own answer.

One question for the whole run; every item goes on with the same answer.

  • Once for the run, with the list
  • For each item

Wait up to

Pick one

How long the run waits, from 1 hour to 14 days.

  • 1 hour
  • 4 hours
  • 1 day
  • 3 days
  • 7 days
  • 14 days

If nobody answers

Pick one

Stop the run, or carry on with a default answer.

The run stops here; nothing after this block runs or is sent. With one question per item, the items answered go on.

  • Stop the run
  • Carry on with a default answer

Default answer

Text

Needed before the flow can run.

What comes out

Each item that leaves the block carries these fields, to use in the blocks after it as {{field}}.

What each item gets

Once the answer comes in.

  • answer: The answer, checked against what the block asked for.
  • answered_by: Who answered.
  • answered_at: When.

How to use it

Retail

Pick the site to study

The flow shortlists three sites, the property manager picks one on WhatsApp, and only that site gets the full report.

Sales

Call or skip

Each new clinic is asked about on its own; only those the rep says yes to get a message.

Field operations

How many visits this week

The supervisor answers with a number in Slack and the route is planned for that many stops.

Agencies

Ask the client

The client answers by email, with no account, and the brief is written about what they picked.

Good to know

  • A test run does not ask anyone: it carries on with an example answer (the first choice, Yes, or the words Example answer) and says so.
  • Only real runs wait: Run once, a schedule or another trigger of a live flow. The run carries on within moments of the answer.
  • Each question is answered once. The person asked answers; your organization’s admins can also answer in the app.
  • Someone outside your organization is asked only by email, and only by a run that sends for real; on the Free plan only your organization’s own addresses can be asked.
  • On WhatsApp, a waiting question takes the person’s next message, before Ask xMap or a Chat flow; a message that starts with xMap, goes to Ask xMap as usual.
  • Asking is free.

Works well with

  • Approval: Stops the run until someone says yes.
  • Filter: Keeps only the items that match a rule.
  • Wait: Holds the items for a while, then lets them carry on: a reminder two days after the first email, or nothing sent before 9 in the morning.
  • WhatsApp Business: Send text, media and template messages from your WhatsApp Business number.

Help articles

Read more

Try it

Build a flow with Ask a person on the home page, no account needed, or book a call. Try it live