Skip to main content

What are Webhooks?

Written by Oskar Johnson Hägglund

With a Webhook connector, Albacross sends the companies visiting your website to your own system or to another tool automatically. Here is what a webhook is.

There are two ways for one application to get news from another: polling and webhooks. With polling, you keep asking "anything new?". With a webhook, the other application tells you the moment something happens, by sending an HTTP request to an address you gave it.

An example: your bank can text you your balance when you ask for it. To always know the latest balance you'd have to keep asking, or know exactly when it changes. That's polling. With a webhook you give the bank your number once, and it texts you whenever the balance changes.

That example has the three parts of every webhook:

  • Destination: your phone number, where the text goes

  • Trigger: a change in the balance

  • Payload: the new balance, the text itself

A Webhook connector in Albacross works the same way. You never know when a company will visit your website, so polling would be wasteful. Instead:

  • Trigger: a company visits your website and matches the segment you chose for the connector.

  • Destination: the URL you enter in the connector. It can be your own system or another tool's API, as long as it accepts the data Albacross sends.

  • Payload: the company's data as JSON, or a ready-made chat message if you pick one of the custom formats.

If you need a format we don't offer, tell us through the chat.

To set one up, see Integrating with Webhooks.

Did this answer your question?