Webhook CRM

This page is for your technical team.

Connect your in-house CRM or internal tool to Jay through an HTTPS endpoint. Jay sends a signed event for every voice action you validate.

Usage

Everything you can ask Jay to do with Webhook CRM.

Contact events

Jay sends creer_contact, modifier_contact or supprimer_contact whenever a voice action touches a contact. The payload contains the filled fields (first name, last name, email, phone, job title, company).

Create the contact Jean Dupont, email jean.dupont@orange.fr
15:11
Update Sarah's title, she's now Head of Sales
15:11
Add phone 06 12 34 56 78 to contact Michel
15:11

Header X-Jay-Event: creer_contact. The body includes action.fields with prenom, nom, email, telephone, fonction, societe_nom. You decide what to do server-side (create, dedupe, log).

Deal events

Jay sends creer_opportunite, modifier_opportunite, deplacer_deal, gagner_deal, perdre_deal based on what's said. You get the linked contact, amount and target stage.

Create a 12,000 euro deal for Acme, negotiation stage
15:11
Move the Orange deal to won
15:11
The Total deal moves to proposal sent
15:11

Headers X-Jay-Event: creer_opportunite, deplacer_deal, gagner_deal, perdre_deal. The payload routes pipeline transitions so your CRM applies its own stage logic.

Note events

On every voice note Jay sends ajouter_note (generic), ajouter_note_contact or ajouter_note_opportunite with the structured summary (context, key points, next steps).

Note for contact Jean Dupont: he wants a quote before Friday
15:11
Note on the Acme deal: they validate the budget next week
15:11

The action.fields.contenu field contains the formatted note (lightweight HTML). voice_note_id lets you group events from the same voice note on your webhook side.

Task events

Jay sends creer_tache, modifier_tache, terminer_tache or supprimer_tache for concrete actions (reminder, explicit follow-up, deadline).

Create a task to follow up with Pierre Friday 2pm
15:11
Mark the task send the Total proposal as done
15:11

Jay filters out generic tasks (Follow up without context) to avoid noise. The payload includes date_echeance, contact_lie and priorite when mentioned.

Meeting events

Jay sends creer_rdv, modifier_rdv or supprimer_rdv with the detected date, time, duration and participants.

Schedule a meeting with Sophie tomorrow at 10am, 1 hour
15:11
Cancel Thursday's meeting with Pierre
15:11

The payload contains date_debut (ISO 8601), duree_minutes and participants. Jay does not create the event in Google Calendar if the webhook is your only integration.

HMAC signature

Every request is signed with a shared secret (HMAC-SHA256 of the JSON body). Verify the X-Jay-Signature header on your server to reject any unauthenticated payload.

Headers: X-Jay-Signature, X-Jay-Event, X-Jay-Delivery-Id
15:11
Compare HMAC_SHA256(secret, body) === X-Jay-Signature
15:11

The secret is shown only once at webhook creation. Store it server-side. If lost, regenerate it from the configuration UI.

Automatic retries

Jay retries 3 times on failure (10s timeout, 5xx, 429) with 0/1/5 second back-off. 4xx errors (except 429) are not retried.

200/201/2xx: success, no retry
15:11
5xx or timeout: 2 additional retries
15:11
4xx (except 429): immediate abort
15:11

Return 2xx as soon as you receive the request (without waiting for processing) to avoid useless retries. Use X-Jay-Delivery-Id to dedupe server-side.

Delivery logs

Every attempt is recorded (HTTP status, response body, attempt number). You can review them from the webhook configuration UI.

200 OK delivered on first try
15:11
503 Service Unavailable retried 2 times
15:11
Timeout after 10s: marked as failed
15:11

The last 20 deliveries are visible in the 'Webhook CRM' dialog. Keep your endpoint under 10s to avoid timeouts.

Help

What payload format does Jay send?

JSON body with event (action type), ISO timestamp, voice_note_id, client (contact info if relevant), action.type, action.external_id (ID returned by your server on creation) and action.fields (the business fields). The payload is documented in the configuration dialog.

How do I verify the signature on my server?

Compute HMAC-SHA256 of the raw body (JSON string) with your secret, in hex. Compare with X-Jay-Signature. Reject if different. Important: use the raw body, not JSON.parse, otherwise the signature won't match.

What to do with X-Jay-Delivery-Id?

Store it and dedupe. On network retries, Jay may resend the same event (same delivery_id). Keeping a cache of recent delivery_ids prevents duplicates on your CRM side.

Does Jay wait for a response from my endpoint?

Jay expects an HTTP 2xx status to validate delivery. You can return JSON with an external_id so Jay memorises it (e.g. the internal ID of the created contact). This external_id will be sent back on subsequent events related to the same entity.

Does the webhook work alongside an existing CRM (HubSpot, Pipedrive...)?

Webhook CRM is intended for in-house CRMs or tools without native integration. If you also connect HubSpot or Pipedrive, Jay sends actions to both. To avoid duplicates, disable the native integration or filter on the webhook side.

How does Jay handle errors if my server goes down?

3 retries with 0/1/5s back-off. After 3 failures (timeout, 5xx, 429), the event is marked failed and logged. You can replay it by asking Jay 'replay the last note' or by querying the delivery logs.