Sprootal fires a signed webhook when something happens on LinkedIn: a new message, an accepted invitation, a deal that moved. n8n is a good place to catch it.
By the end of this guide an n8n workflow wakes on every new LinkedIn message, asks a model for a draft, posts the draft back into the Sprootal inbox for a person to approve, and pushes the deal to your CRM when it is marked won. Nothing in it sends a LinkedIn message on its own.
What you need
- A Sprootal workspace with an API key (Settings → API keys). The Sandbox is free and has the full API.
- An n8n instance, cloud or self-hosted, reachable from the internet.
- A model credential in n8n, such as OpenAI or Anthropic, if you want drafts.
The events you can subscribe to
| Event | Fires when |
|---|---|
conversation.new_message |
A message arrives in a conversation on any connected sender |
connection.accepted |
Someone accepts an invitation |
message.sent |
A queued message actually leaves LinkedIn |
lead.created, lead.updated |
A contact is added or changed |
lead.campaign_completed |
A contact reaches the end of a campaign |
draft.created, draft.approved, draft.discarded, draft.superseded |
A reply draft changes state |
deal.created, deal.updated, deal.stage_changed, deal.won, deal.lost, deal.deleted |
The pipeline moves |
webhook.disabled |
An endpoint was switched off after repeated failures |
The list reflects the API on the date this guide was updated. The documentation is always current.
Step 1. Create the n8n trigger
Add a Webhook node, set the method to POST, and copy its production URL. Leave the workflow inactive for now.
Step 2. Register the endpoint in Sprootal
In Sprootal, open Settings → Developer → Webhooks, add the n8n URL and choose conversation.new_message. Filters narrow it further: by campaign, list, sender, tag or stage, with conditions in a group combined with AND. A common one is "Automation is any of" the campaigns you want automated.
The same thing over the API:
curl -X POST https://sprootal.com/api/v1/webhooks \
-H "Authorization: Bearer $SPROOTAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"n8n replies","url":"https://n8n.example.com/webhook/sprootal","events":["conversation.new_message"]}'
The response carries the signing secret, once. Store it in n8n as a credential. It is never shown again, and the only way to get a new one is to rotate it.
Step 3. Verify, then test
Every delivery is signed with that secret. Check the signature in a Code node before doing anything else, so a stranger who finds the URL cannot wake the workflow. The header and the exact scheme are in the webhooks section of the docs.
Then use Test webhook in Sprootal, or POST /webhooks/{id}/test. A test goes through the normal dispatch path, with the same signature, retries and delivery log as a real event.
Step 4. Draft the reply with your model
Add your model node after the check. Give it the message and, if you want more context, fetch the conversation with GET /contacts/{id}/messages first. Then post the result back as a draft:
curl -X POST https://sprootal.com/api/v1/contacts/{id}/drafts \
-H "Authorization: Bearer $SPROOTAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sender_id":"<sender uuid>","text":"<the model draft>"}'
The draft appears in the master inbox, in the thread it belongs to, and waits for a person. When they approve it, it joins that sender's queue. Approval answers right away with 202, and message.sent fires when the message is actually on LinkedIn. Because the queue paces every send, at least two minutes apart and inside working hours, you never need retry logic for LinkedIn limits.
Step 5. Close the loop into your CRM
Add a second webhook for deal.won (or deal.stage_changed with a stage filter) pointing at another n8n workflow, and map the payload onto your CRM node: HubSpot, Pipedrive, Attio or a database. Teams that move a thread to Booked in Sprootal see the deal in their CRM before they switch tabs.
When a webhook stops arriving
Look at the deliveries first. GET /webhooks/{id}/deliveries with the filter {"success":{"eq":false}} lists failed attempts with their payloads and the response your endpoint gave. Any delivery can be replayed. An endpoint that keeps failing is disabled and fires webhook.disabled. Re-enabling it clears the failure counter.
Common questions
Can n8n send the reply without a person?
The API allows it for keys created by a workspace owner, by creating the draft with auto-send. We recommend a person approves replies, and keeping automatic sends for narrow, low-stakes cases.
Does this work with Make or Zapier?
Yes. Use their webhook trigger as the endpoint URL and the HTTP module for the API calls. The steps are the same.
Can I use Sprootal's own co-pilot instead of a model in n8n?
Yes. The inbox co-pilot runs on Claude and ChatGPT and is included in Pro, with no credits. Bring your own model in n8n only if you want the drafting logic to live in your own workflow.


