Connect your tools
Send records to your own system (webhook)
Who can open itViewer: noOperator: noSupervisor: noAdmin: yes
Use this to send records to an automation tool, a ticket system, a spreadsheet or your own API. An Admin connects it; a developer builds the receiving end from the second half of this page.
The Signed webhooks card under Alerts is a different thing: it sends your team’s alerts, not records (Webhook alerts).
Where to find it
Section titled “Where to find it”Work > Integrations, the Webhook card under CRM. Only an Admin can open the page. The card is there when your company has the CRM cards (Connect your CRM). It takes the place of a CRM: one of them can be connected at a time, and saving this card replaces a connected CRM.
Set it up
Section titled “Set it up”- Agree with your developer on the address of the receiver and on a signing secret: any text of at least 16 characters that only the two of you know.
- On Integrations, press Connect on the Webhook card and fill in the fields below.
- Press Set beside Webhook key, paste the signing secret and press Save in its box.
- Press Save at the foot of the panel. You see “CRM saved”.
- Press Test connection. A receiver that is ready answers, and you see “Worked: Your webhook accepted the signed test request.”
- Press Send a sample record to send one real document marked as a sample, and ask your developer to check it arrived.
| Field | Enter |
|---|---|
| Name your team sees | What the Send button calls it, such as “Send lead to Support desk” (up to 60 characters). Empty: “Webhook” |
| Endpoint address | A public https:// address on port 443, such as https://hooks.inkreda.example/everyknock/records. A path with a token in it is fine; an address inside a private network is refused |
| Webhook key | The signing secret, at least 16 characters. It is never shown again |
| Document version | Version 2: contact and details (a new connection starts here) or Version 1: lead, the earlier format |
| Send button | On: your team sees Send on a chat. Off: it is hidden and nothing is sent |
| Send automatically | On: a record is posted by itself once the visitor leaves an email or phone number, without a review (Send automatically) |
Testing, the card’s states, switching off and removing work as for a CRM: Connect your CRM. What your team presses: Close a chat and send its record.
What your receiver gets
Section titled “What your receiver gets”A POST with Content-Type: application/json, User-Agent: EveryKnock-CRM-Webhook/1 and these headers:
| Header | Value |
|---|---|
X-Xmindy-Event |
record (version 2), lead (version 1) or test |
X-Xmindy-Timestamp |
Unix seconds when the request was signed |
X-Xmindy-Signature |
v1= and the hex HMAC-SHA256 of <timestamp>.<raw body>, keyed with the signing secret |
Idempotency-Key |
The chat’s id and a fingerprint of the body: it repeats only when exactly the same body is sent again |
A version 2 record:
{ "version": 2, "event": "record", "sample": false, "conversationId": "c-1f3a", "conversationUrl": "https://app.example.com/conversations/all/c-1f3a", "updatesExisting": false, "skipDuplicateCheck": false, "reference": null, "contact": { "name": "John Brooks", "company": "MindPixels", "email": "john.brooks@example.com", "phone": "+1 415 555 0100" }, "attributes": [ { "key": "problem", "label": "Need", "value": "A booking system for three locations" }, { "key": "timing", "label": "Timeline", "value": "Before the summer" } ], "summary": "MindPixels wants online booking across its three locations.", "contactNotes": []}| Field | Meaning |
|---|---|
contact |
name, company, email, phone; each null when empty |
attributes |
Each detail the chat learned, in your order on What the AI learns: a key that never changes (map on it), the label your team sees, and the value. A detail nobody knows, or one your team marked as not right, is left out |
summary |
The summary of the chat, as the team member reviewed it, or null |
contactNotes |
Short notes from the email and phone checks; often empty |
sample |
true only for Send a sample record. Do not treat it as real |
conversationId, conversationUrl |
The chat’s id, and the chat in the dashboard (it needs a sign-in) |
skipDuplicateCheck |
true when a team member chose Send anyway after you answered 409 |
updatesExisting, reference |
true, with the id you returned last time, when this record was sent before |
Version 1 has "event": "lead" and, in place of contact and attributes, a lead object: name, company, email, phone, project, budget and timeline (the last three are the details your company calls Need, Budget and Timeline, null when it has none). Build a new receiver for version 2.
The test (Test connection) is {"version": 2, "event": "test", "sample": false} (1 on a version 1 connection), with no record. The sample (Send a sample record) is a full document with "sample": true, a contact named “Sample Lead” of “EveryKnock sample” with an example.com address, a null conversationId and no attributes.
The transcript, the team’s notes and the tags are never sent.
Check every request
Section titled “Check every request”Check the signature on the raw bytes you received, refuse a timestamp more than five minutes from your clock, and compare in constant time. The signature is the same as the alert webhooks’, so the code on Webhook alerts works here too. Answer 401 or 403 to a request that fails, and never act on it.
Your answer
Section titled “Your answer”| You answer | Your team sees |
|---|---|
Any 2xx |
The record is sent |
409 |
“Your webhook reports that it already has this record.” and Send anyway, which sends again with skipDuplicateCheck: true |
| Any other status | “Your webhook rejected the record (…)” and Try again |
| A redirect | An error. Redirects are never followed: set the address your receiver itself answers on |
| No answer | “Could not reach your webhook.” |
- Answer within 10 seconds, in under 1 MB. Save the record and answer straight away; do slow work afterwards.
- There are no automatic retries. Try again sends the same body with a new timestamp and the same
Idempotency-Key. - A record can be sent again after someone edits it. Use
conversationIdto recognise it and update your record instead of making a second one.
A 2xx answer may carry { "id": "rec-8841", "url": "https://tickets.example.com/leads/8841" }. The id (up to 200 characters) comes back as reference on a later send of the same record. The url (https) becomes View record on the chat. Anything else is ignored.
Treat the visitor’s words as untrusted text
Section titled “Treat the visitor’s words as untrusted text”Every value in contact, attributes, lead, summary and contactNotes comes from a visitor. A team member usually reviewed it (nobody did when it was sent automatically), but it is not made safe for any particular place.
- In a web page or email: escape it.
- In a spreadsheet: a value starting with
=,+,-or@can run as a formula. Store it as plain text. - In a database: use query parameters.
- Do not follow a link in the document automatically.
Good to know
Section titled “Good to know”- Replace key saves a new secret at once, so update your receiver at the same moment.
- To move to version 2, build the receiver for it first, then choose it under Document version, press Save and Test connection.
- With Send button off nothing is sent; Remove connection stops all sends.
- With Send automatically on, it is the same document, sent once; a later change arrives when someone presses Update record in {CRM}.
- A failed send puts “A record did not reach your CRM” in the Admins’ bell, at most once an hour, and shows in Recent activity on the card.
If something goes wrong
Section titled “If something goes wrong”| You see | What to do |
|---|---|
| “The endpoint address must be an https:// URL to a public host, answering on port 443, with no spaces.” | Use a public https:// address with no port other than 443 |
| “The signing secret is too short: use at least 16 characters.” | Choose a longer secret, and give the same one to your developer |
| “Did not work: Your webhook answered 401 to the signed test request.” (or another number) | The receiver refused the test. A 401 or 403 usually means it has a different secret: Replace key with the one it uses |
| “Did not work: Could not reach your webhook.” | The address is wrong, the receiver is down, or it cannot be reached from the public internet |
| “Your webhook answered with a redirect” | Enter the address the receiver itself answers on, with no forwarding |
| “Your webhook’s answer was larger than 1 MB or took too long to arrive.” | The receiver must answer within 10 seconds with a short answer |
Related
Section titled “Related”- Connect your CRM: the Integrations page, testing, switching off or removing
- Webhook alerts: the alerts webhook, with the same signature
- Record lookup: the AI reading a visitor’s record from your system
Reviewed
Source files for this page
apps/dashboard/src/views/IntegrationsView.tsxapps/dashboard/src/views/integrations/CrmCard.tsxshared/web/src/views/SecretField.tsxservices/api/app/crm/webhook.pyservices/api/app/crm/http.pyservices/api/app/crm/__init__.pyservices/api/app/crm/record.pyservices/api/app/contact/record_send.pyservices/api/app/conversations/auto_brief.pyservices/api/app/notifications/webhooks.py