Automating your workflows with Metrikia webhooks
Build automations by connecting Metrikia webhooks to Zapier, Make or n8n: sale notification, follow-up of new leads, sending to another tool, a task for every appointment.
Why automate with webhooks?
Metrikia webhooks send every business event (new lead, appointment, won sale) to your automation tool within seconds. Examples:
- Slack notification when a sale is won
- Immediate follow-up of every new lead by email, then by WhatsApp if they agreed
- Sending new leads to a CRM or an emailing tool not connected natively
- An Asana or Trello task for every booked appointment
Prerequisites
- Be an owner or an administrator of your Metrikia workspace.
- A Zapier, Make or n8n account.
- A webhook created in Settings > API & Webhooks, ideally with an authentication header (see the "Configure webhooks" guide).
Protect the receiving URL: in n8n, turn on Header Auth on the Webhook node with the same name and value as the header set in Metrikia; in Make or Zapier, add a first filter that checks that header.
Automation 1: "Deal won" Slack notification
Goal: get a Slack message as soon as a sale becomes won (payment recorded, Stripe or GoCardless payment, sync of your CRM).
With Zapier
- Trigger: Webhooks by Zapier > Catch Hook. Copy the URL it gives.
- In Metrikia, create a webhook with that URL and the Deal won event.
- Optional: Filter, only continue if data.total_amount is greater than 5000.
- Action: Slack > Send Channel Message, channel #sales, message "Deal won: {data.lead_name}, {data.total_amount} {data.currency} (closer: {data.closer_name})".
- Test by recording a payment that settles a sale, then turn the Zap on.
With Make or n8n
- Make: Webhooks > Custom webhook module. n8n: Webhook node in POST. Copy the URL into Metrikia with the Deal won event.
- Trigger a first delivery so the tool detects the structure.
- Add the Slack module or node, use the fields data.lead_name, data.total_amount, data.currency and data.closer_name, then turn it on.
Automation 2: follow up every new lead
Goal: send an email as soon as a lead arrives, then a WhatsApp or SMS only if they agreed to it.
- Create a webhook with the Lead created event.
- Filter on data.source if you only follow up some of the leads (the value is the source key shown in your CRM settings).
- Send the email with data.email and data.firstName from your emailing tool.
- Send the WhatsApp or SMS to data.phone (international format) only if data.metadata.consent_whatsapp is true. Missing or false: email only.
- Keep data.id so you never follow up the same person twice.
Automation 3: send leads to another tool
Goal: copy every new lead into a CRM or an emailing tool Metrikia does not connect natively. Flow: Metrikia (Lead created), then Zapier, Make or n8n, then the target tool's API.
- Create a webhook with the Lead created event.
- Optional: filter on data.source or on data.metadata.utm_source.
- Call the target tool's API (HTTP POST request with its authentication), mapping the fields below.
- Add a notification when the call fails.
| Metrikia field | Target tool field | Notes |
|---|---|---|
| data.firstName | first_name | Direct |
| data.lastName | last_name | Can be empty |
| data.email | Direct | |
| data.phone | phone | International format |
| data.source | lead_source | Metrikia source key, translate if needed |
| data.metadata.utm_source, utm_campaign | Origin fields | Present only when known |
| data.id | External id | Prevents duplicates |
Automation 4: a task for every appointment
- Create a webhook with the Appointment created event.
- In Asana or Trello, create a task "Prepare the call with {data.lead_name}", due {data.scheduled_at}, assigned from data.closer_name.
Appointments and sales imported from history trigger no webhook: only new ones reach your tool.
What about metrics?
Webhooks carry events, not performance figures. For scheduled reporting (Google Sheets, an alert when ROAS drops), query the Metrikia API or MCP server: see the "Advanced API integration" guide.
Good practices
- Test with a test lead or sale, then archive it.
- Answer within 10 seconds and process the content afterwards.
- Deduplicate on data.id: a delivery can arrive twice.
- Avoid loops: a tool that recreates the lead in Metrikia triggers a new webhook.
- Keep the header value and the signing secret in your tool's vault, never in clear in a scenario.
- There is no delivery history yet: if your tool was down, compare with the lead list in Metrikia.
Tip: n8n is free when self-hosted and handles complex automations well, with no per-task cost.
Previous guide
Managing multiple ad accounts
Next guide
Understanding data calibration and the setup score
To go further, check out our blog, the documentation or contact support.