# Calling your systems from a flow

> Call your own systems at the right moment of a conversation with an HTTP request step, and the webhooks Ñomongeta receives from WhatsApp.

Ñomongeta talks to your systems from inside your flows: an [HTTP request](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/http-request) step calls any web address you choose, at the moment you choose, with the data you choose. That's the way to send exactly what you want, when you want it.

## Send events to your systems

Put an HTTP request step where the event happens in the flow, and `POST` what your system needs. For example, to send a new lead to your CRM (or to Zapier, Make or n8n, which pass it on to almost anything):

| Setting | Value |
| --- | --- |
| Method | `POST` |
| Address | `https://hooks.example.com/leads` |
| Body | the JSON below |
| Sign in with | a secret from the [vault](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/developers/secrets-and-contacts#secrets) |

```json
{
  "name": "{{contact.name}}",
  "phone": "{{contact.address}}",
  "channel": "{{contact.channel}}",
  "interest": "{{interest}}",
  "contact_id": "{{contact.id}}"
}
```

Values are escaped as JSON, so nothing a contact types can break the body. Keep fields of the reply in variables to use further on (an order's status, a booking's id), and connect the step's **Error** output to something sensible.

Common places to put one:

- right after a lead form, to create the lead;
- before a [Hand to a person](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/handoff) step, to open a ticket or ping your team's chat;
- after a booking, to write it to your calendar or system.

> [!NOTE]
> A request runs when the flow reaches it, in test mode too. Point tests at a test address if a call would book, charge or change something. Requests have a timeout and limits per message; see [HTTP request](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/http-request).

## Events without a flow {#event-webhooks}

To be told about everything of a kind (every new conversation, every message, every captured lead) without adding steps to your flows, use the workspace's [webhooks](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/webhooks): pick the events once and we send each one, signed and retried. Zapier, Make and n8n subscribe to the same events; see the [integrations overview](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/overview).

## Webhooks Ñomongeta receives

You don't set up anything for numbers connected with Facebook, inboxes or the website chat: Ñomongeta receives their messages itself. The one exception is a WhatsApp number on **your own Meta app**: Meta has to deliver its messages to the callback URL and verify token the channel shows under **Webhook setup**. Every delivery must be signed with your app's secret; unsigned or forged ones are refused. See [your own Meta app](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/channels/whatsapp-cloud-api#your-own-meta-app-advanced).

## Reading data out

Conversations, contacts, agents and flows are all in the [REST API](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/developers/rest-api), so a script or a scheduled job can read them, for a report or a backup.
