FlowsBook a callSign inCreate free accountSign up
AI employees and automation

Webhook to workflow: how another system can start a flow today

xMap Flows offers no public webhook address right now. Here is how your systems can still start a flow, what the items look like, and how an answer gets back.

Part of the guide AI employees

By the xMap team · · 6 min read

If you came here to wire a webhook to workflow steps in xMap Flows, the plain answer first: a public webhook address is not offered at the moment, so an outside system cannot start a flow by calling a URL of its own. A flow can still start the moment something happens, through five doors that are open today: new rows in a table, an event in a connected app, a form page, a chat page, or another flow.

This page is for the developer or operations lead who has a system that knows something first, such as an order tool or a booking app, and wants an AI employee to act on it. It explains which door suits which job, what the data looks like once it is inside, and how to get a result back to whoever asked. For the wider picture of triggers and steps, read the guide to workflow automation.

What a webhook does, and what replaces each part

A webhook is one system telling another, "this just happened, here are the details." Three things make it useful: it starts work at once, it carries data, and it can return an answer in the same call. None of the doors below is a drop-in copy of all three, so choose by the part you need most.

What you haveDoor to useHow the answer gets back
A system that can write rowsNew rows, on a table in My data or a sheet in Google SheetsEmail, an app message or your own database
A message in WhatsApp, Telegram, Teams or OutlookAn app event on that connected accountReply, in the same conversation
A person filling in details on your siteForm pageReply on the page, or the results by email
A person asking a questionChat pageReply, in the chat
One of your own flowsRun another flowIts results carry on in the first flow

The ways to start a flow from outside a timetable, and how each one answers.

The closest match: a system that adds rows

When a machine is doing the calling, New rows is the door to look at first. Your system posts rows to a table through the xMap API, signed with an access key that has full access. The live flows watching that table, up to five, then run on just the new rows. A table in My data starts the flow as the rows arrive. A sheet in Google Sheets is different: it is checked on a timetable of every 5, 15 or 60 minutes, so expect that much delay.

Two limits are worth planning around. A table holds up to 5,000 rows, so a busy feed needs old rows cleared out now and then. And the call that adds rows reports how many flows started, not what they found, so it cannot hand your system a finished result in the same response.

What the items look like

Each new row becomes one item, and each column becomes a field. Say, as a made-up example, a courier firm's order tool adds this row: order_id A-1042, customer Bakehouse Lisbon, latitude 38.72, longitude -9.14. The next block can read {{customer}} or {{order_id}} anywhere in its settings, and blocks that work around a position use the latitude and longitude. Name your columns the way you would want to read them later, because those names are what you will type in every block after it.

Starting from an app, a form or a chat

An app event starts the flow when something arrives in an account you connected, for example a new WhatsApp or Telegram message. The event's details become fields on one item. Because the flow knows which conversation the message came from, a Reply block answers in that same thread, through the same account.

A Form page suits anything a person would otherwise email you. You choose up to 12 fields, share the link or embed the page on your site, and each submission runs the flow once with the answers as one item. A city or address field is looked up, so a search block can work around it straight away. After sending, the page can say thank you, show the results when the run ends within a minute, or email them.

A Chat page is the door for questions. Each message is a run, carrying the message and a session id, and an AI agent can use blocks as tools to look things up before it answers.

Passing work between your own flows

If the system doing the calling is really another flow, you need no address at all. Run another flow hands its items to a second flow, once with the whole list or once per item, and can carry on with what comes back. The receiving flow needs a way in called From another flow, which one click in the block's settings adds. It takes items only from your own flows and cannot be reached from the internet.

A worked example: from new order to nearest depot

Here is a made-up case. A parts distributor in Monterrey wants each urgent order matched to its closest depot, with the depot told by email. Their order system can make an API call but nothing else.

  1. Create a table in My data with the columns order_id, customer, latitude and longitude.
  2. Build a flow that starts with New rows on that table.
  3. Add Find nearest, with the depots as your points and the name depot, so each order gets depot_name and depot_km.
  4. Add an Email block set to one email per item, with the order and its depot in the message.
  5. Deploy the flow, then have the order system post each urgent order to the table through the API.

The order system gets confirmation that the row was added and a flow started. The useful answer travels by email rather than back through the call. If your system needs the result, add Save to my database at the end and let it read the row from there.

Mistakes to avoid

  • Expecting an instant answer from New rows. Treat it as fire and forget, and deliver the result somewhere your system or team can read it.
  • Leaving a flow in draft. Rows, forms and app events only start flows that are deployed.
  • Adding Reply to a flow started by rows. There is nobody on the line to answer, so use Email or an app block instead.
  • Sending the same event twice. If your system can retry, put Only new or Remove duplicates early so nothing is acted on twice.

Questions

Can I call an xMap Flows webhook URL from my own app?

Not at the moment: a public webhook address is not offered. The nearest route is for your app to add rows to a table through the API, which starts any live flow watching that table.

Can a flow send a webhook out to another system?

Yes. A flow can tell another system when it has run, through a signed outgoing webhook set up in its alerts and exports. That is separate from starting a flow from outside.

How do I get a result back to the system that started the flow?

With a form, chat or message app, Reply answers in the same place. With new rows, finish with an email, an app message or Save to my database, and read the result from there.

How quickly does a flow start after new rows arrive?

Rows added to a table in My data start it as they arrive. A sheet in Google Sheets is checked every 5, 15 or 60 minutes, whichever you choose.

Templates that do this

Read next

More on ai employees and automation · Every article · Templates

Put it to work

An AI employee in xMap Flows does this on live data, on its own timetable. Start from a template or describe it in plain words.