Custom Integration (Webhook)
Send every automation run to your own system as a signed event - n8n, Make, Zapier or your own code.
Last updated: 2026-11-07
fluss.ai runs the built-in automations itself — emails, SMS, valuations. If you need something we don't do — a CRM without a native integration, a notification in your channel, your own lead scoring — you point a custom integration at your own system and we send it a signed event on every run.
You host the logic. We hold none of your credentials.
It works with anything that can receive an HTTP POST: n8n, Make, Zapier, a Lambda or your own backend.
Setup
- Create an automation of type CRM integration
- Choose Custom webhook as the provider
- Enter your webhook URL — this is where we POST. In n8n that's the Webhook node's Production URL, not the link to the workflow and not the test URL
- Click generate next to Signing secret and copy the value
- Click Send test event to check delivery
- Save the automation and attach it to your flow
Copy the signing secret straight away. We store it encrypted and will not show it again. If you lose it, generate a new one and set it in both places.
The secret is what lets your endpoint prove a request really came from fluss.ai. Without it, anyone who learns your URL can post fake leads into your CRM.
The other fields
| Field | Meaning |
|---|---|
| Authorization token | Optional. Sent as a Bearer token if your endpoint requires its own authentication. |
| Include template variables | Adds the full variable map. Larger requests, and rarely needed. |
The event
POST to your URL, Content-Type: application/json.
Headers
| Header | Meaning |
|---|---|
x-fluss-signature | t=<unix seconds>,v1=<hex hmac> — see below |
x-fluss-timestamp | The same timestamp, for convenience |
x-fluss-event | Event name, currently always lead.automation |
x-fluss-delivery | Unique id for this delivery — use it to dedupe |
Authorization | Bearer <your token>, only if you configured one |
Body
{
"version": 1,
"event": "lead.automation",
"executionId": 84213,
"attempt": 1,
"account": { "userId": "user_2ab…", "orgId": null },
"lead": {
"hashId": "K9mQx2",
"locale": "de",
"firstName": "Ada",
"lastName": "Lovelace",
"salutation": "ms",
"email": "ada@example.com",
"phone": "+4915112345678",
"street": "Unter den Linden",
"streetNumber": "1",
"postalCode": "10117",
"city": "Berlin",
"country": "DE",
"latitude": "52.5170",
"longitude": "13.3889",
"segment": "WHG_K",
"spaceLiving": 84,
"spacePlot": null,
"yearOfConstruction": 1998,
"propRooms": 3,
"value": 512000,
"rentMonthly": 1706,
"currency": "EUR",
"valuationUrl": "https://fluss.ai/f/…",
"status": "new",
"source": "website",
"createdAt": "2026-08-18T09:14:22.000Z"
},
"template": { "id": 12, "name": "Push to CRM" }
}
hashId is the lead's public id — use it to call back into fluss.ai.
value is null when the property couldn't be valued automatically — an
unusual segment, or an address outside our coverage. That is normal; handle
the case.
Stability
version is bumped only for a breaking change. New fields can appear at any time — parse defensively and ignore what you don't recognise.
Verifying the signature
Compute HMAC-SHA256 over <timestamp>.<raw body> using your signing secret and compare it against v1 from the header.
Sign the raw body bytes, exactly as received. Re-serialising parsed JSON can reorder keys, and then the signature won't match.
const crypto = require('crypto');
function verify(rawBody, header, secret) {
const parts = Object.fromEntries(
header.split(',').map((p) => {
const [k, ...rest] = p.trim().split('=');
return [k, rest.join('=')];
})
);
const timestamp = Number(parts.t);
if (!Number.isFinite(timestamp)) return false;
// Reject replays. 5 minutes is what we recommend.
if (Math.abs(Date.now() / 1000 - timestamp) > 300) return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${timestamp}.${rawBody}`)
.digest('hex');
const a = Buffer.from(expected, 'hex');
const b = Buffer.from(parts.v1 ?? '', 'hex');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
Delivery behaviour
- Timeout 20 seconds. Answer fast and do slow work asynchronously.
- Retries on
5xx,429and network errors: 1m → 5m → 25m, four attempts in total.4xxis treated as permanent and is not retried. - Redirects are not followed. Point us at the final URL.
- Private addresses are refused. We won't call loopback, internal networks or cloud-metadata addresses. Your endpoint must be reachable from the public internet.
- At-least-once. A retry after a timeout can deliver something you already processed. Dedupe on
x-fluss-deliveryor onexecutionId.
Every attempt is visible in fluss.ai on the lead's timeline, with the response status and a snippet of the body.
Testing it
Send test event delivers a sample lead to your URL immediately, signed exactly the way a real event is. Nothing is written to your account.
The body is shape-identical to a real one, with test: true added and obviously fake data (Ada Lovelace, an example.com address).
Use the flag to avoid writing a test contact into a real CRM — but don't take a different code path on it, or a passing test tells you nothing about the real event.
The failure message comes straight from the attempt, so a wrong URL, a bad TLS certificate or a rejected private address all say so directly.
Writing back into fluss.ai
Create a key under Account → API keys, choosing only the scopes you need. API keys require a Pro plan. It's shown once — store it immediately. A key is bound to your account and can be revoked at any time.
Send it as x-fluss-api-key: flk_… or as Authorization: Bearer flk_….
| Endpoint | Scope | Does |
|---|---|---|
external.getLead | leads:read | Fetch the full lead |
external.updateLead | leads:write | Enrich or correct fields |
external.addComment | comments:write | Leave a note on the lead's timeline |
external.attachDocument | documents:write | Attach a file to the lead |
external.createLead | leads:create | Create a lead from your own form |
external.whoami | leads:read | Check a key and see its scopes |
curl https://fluss.ai/api/trpc/external.addComment \
-H "x-fluss-api-key: $FLUSS_API_KEY" \
-H "x-raw-output: 1" \
-H "content-type: application/json" \
-d '{"json":{"leadHashId":"K9mQx2","text":"Pushed to HubSpot as #4711"}}'
x-raw-output: 1 gives you plain JSON instead of our internal encoding.
updateLead accepts contact details, address, value, rentMonthly, status, priority, source and valuationUrl. Omitted fields are left alone, so a partial update won't wipe anything.
Creating leads from your own form
If you collect the details yourself, with a form on your website or from your CRM, send them to external.createLead. fluss.ai creates the lead in the funnel you name and runs that funnel's automations for it, exactly as if the homeowner had filled in the funnel: the valuation is created and emailed, follow-ups are scheduled, your CRM push runs.
It needs a key with the leads:create scope and the Pro plan.
curl https://fluss.ai/api/trpc/external.createLead \
-H "x-fluss-api-key: $FLUSS_API_KEY" \
-H "x-raw-output: 1" \
-H "content-type: application/json" \
-d '{"json":{
"funnelId": "Xk3pQ",
"contact": { "salutation": "mr", "firstName": "Max", "lastName": "Mustermann",
"email": "max@example.com", "phone": "+49 151 2345678" },
"address": { "street": "Hauptstraße", "streetNumber": "5",
"postalCode": "82205", "city": "Gilching" },
"property": { "segment": "EZFH_K", "spaceLiving": 140, "spacePlot": 520,
"yearOfConstruction": 1998, "qualityFurnishings": 2 },
"consent": true,
"source": "website-form"
}}'
{
"leadId": "K9mQx2",
"duplicate": false,
"link": "https://fluss.ai/leads/K9mQx2",
"automations": "started",
"limits": {
"today": {
"used": 1,
"limit": 20,
"resetsAt": "2026-11-07T23:00:00.000Z"
},
"thisMonth": {
"used": 1,
"limit": 100,
"resetsAt": "2026-11-30T23:00:00.000Z"
}
}
}
funnelIdis the id in the funnel's editor address,fluss.ai/flow-groups/<id>.consentmust betrue. With it you confirm that the homeowner agreed to be contacted and to the processing of their data. Asking for that consent in your form is up to you.contactneeds an email address or a phone number.automationsisstarted,paused(the funnel's automations are switched off),none(the funnel has none),not-run(a duplicate, see below) orfailed(the lead is saved but its automations could not be started; we are alerted, so don't send it again).
Unknown field names are rejected with the field named, so a typo can't silently cost a lead its valuation.
What a valuation needs
For a funnel that sends a valuation, the address (street, postalCode, city) and the property type are always required, plus:
segment | Property | Also required |
|---|---|---|
WHG_K | Apartment | spaceLiving, yearOfConstruction, qualityFurnishings |
EZFH_K | House | spaceLiving, spacePlot, yearOfConstruction, qualityFurnishings |
MFHWGH_K | Multi-family / commercial | spaceLiving, spacePlot, yearOfConstruction |
GRST_K | Land | spacePlot |
That table applies to properties in Germany. Elsewhere, set country (e.g. AT), and only the address and type are required. Send streetNumber whenever you have it: the valuation is more precise with it.
Areas are in m². Three fields take a number on a scale from 0 to 4. The funnel asks them with a few answers, and sending the same numbers gets you the same valuation a funnel lead would get:
| Field | Funnel answer → value |
|---|---|
qualityFurnishings | Simple 0, Good 2, High quality 4 |
propertyCondition | Poor 0, Normal 2, Excellent 4 |
degreeModernizationCategory | Unrenovated or unknown 0, Slightly 1, Moderately 2, Extensively renovated 3 |
The values in between (and 4 for modernisation) are valid too, if your form asks more finely.
Optional, and used when present: yearOfModernization, propRooms, buildingType (houses: 7 detached, 8 mid-terrace, 9 end-terrace or semi-detached, 10 two-family, 33 unspecified), apartmentType, buildingFloor, buildingFloors, buildingUnits, spaceCommercial, propEnergy, and the yes/no fields propCellar, propElevator, propGarage, propGarageUnderground, propParkingLot, propBalconyTerrace, propAdditionalBathroom, propRented.
If something the valuation needs is missing, the call fails with the missing fields listed and nothing is saved, so you can fix it and send it again.
Limits
- 20 leads a day and 100 a month per account, counted together for the API and the AI assistant. Days and months follow German time. Every response shows how much is used and when it resets. Need more? Write to support@fluss.ai.
- The same person and the same property within 30 days returns the existing lead with
duplicate: true. Nothing runs again and it doesn't count. The person is the email address, or the phone number when there is no email; the property is street, house number, postal code and type. - Over a limit, the call fails with
429and nothing is saved. Send it again afterresetsAt.
Errors
| Status | Meaning |
|---|---|
400 | The input is invalid: the message names the field |
401 | The key is missing or invalid |
403 | The key lacks leads:create, or the account isn't on Pro |
404 | No funnel with that id in your account |
412 | The funnel still runs older automations we need to move over first. Write to support@fluss.ai |
422 | The valuation needs fields that are missing (listed in the message) |
429 | Daily or monthly limit reached |
n8n starter workflow
Download fluss-lead-starter.n8n.json and import it into your own n8n (Workflows → Import from File).
It arrives wired up: webhook trigger → signature verification → field mapping → a placeholder CRM node → a comment back into fluss.ai.
Then:
- Copy the Production URL from the Fluss Webhook node into fluss.ai
- Set
FLUSS_WEBHOOK_SECRETon your n8n to the signing secret - Set
FLUSS_API_KEYif you want the write-back node - Replace the Your CRM node with your actual CRM
Works on n8n Cloud and self-hosted alike — it's your instance either way.
Migrating off our n8n
Customers who wanted custom automation used to get an account on our n8n, and we built and maintained the workflow. That is going away: fluss.ai now runs its automations itself.
| Before | Now |
|---|---|
| Your workflow lived on our n8n | It lives on your n8n (or Make, Zapier …) |
| We operated it | You operate it — and can change it whenever |
| Wrote back with an admin token from us | Writes back with your own API key |
| Our support built it for you | Import the starter workflow — or still ask us |
The scoped key is the real improvement: the old token was far broader than any integration needs. Yours is limited to your account and to the scopes you pick.
Requirements
- fluss.ai Pro or higher (CRM integrations are available from the Pro plan)
- An HTTPS endpoint reachable from the public internet
If you'd rather we built it, the contact link is right on the integration screen. Or write to us at support@fluss.ai.