Pro plan. Pipedrive works through a connection, HTTP steps and listeners (Wait for webhook, Call & wait), which are part of Pro and Agency (and the free trial). Anything you already have keeps working on every plan. See Plans and billing.
How it connects: through Pipedrive’s API with your API token, and Pipedrive webhooks (no app to install). See Pipedrive’s Persons and Deals API docs and its authentication guide. The requests and answers below follow Pipedrive’s docs.
Before you start
- Pipedrive plan: Pipedrive says every plan has an API token.
- Your API token: in Pipedrive, open Settings > Personal preferences > API and copy it.
- Your company domain: the part before
.pipedrive.comin your Pipedrive address.
1. Connect Pipedrive
In Kerux, open Integrations > Connections, click Connect on Custom API (under Developers):- How it signs in: API key in a header, Header name
x-api-token, paste the token. - Base URL:
https://YOUR-COMPANY.pipedrive.com
2. Run the steps when the contact replies
A contact who replies leaves the campaign (the When the contact replies box). In that box, add the action Send to another campaign and pick a short campaign, for example “Replied: to Pipedrive”. Its steps run for every contact who replies.Create the person
Add a Webhook / HTTP step, pick the Pipedrive connection and name itperson. Paste this in the step’s JSON:
Create the deal
Add a second Webhook / HTTP step nameddeal. Pipedrive’s ids are numbers, so this body is sent as text, which keeps the id unquoted:
{ or } would be read as a choice between words (spintax), so the JSON braces are written \{ and \} (here doubled, \\{, because the body sits inside the step’s JSON). The double braces of variables stay as they are.
You can also send owner_id, org_id, pipeline_id, stage_id and value (Pipedrive’s field names). The deal id is {{steps.deal.response.body.data.id}}.
To keep the LinkedIn profile on the person, create a custom field in Pipedrive and send it under its key, as Pipedrive’s docs describe for custom fields.
3. Hear back when the deal is won or lost
1
Add a Wait for webhook step
After the deal step, add Wait for webhook, choose One shared URL + a match rule and match the deal id in Pipedrive’s payload to
{{steps.deal.response.body.data.id}}. Click Listen for test event.2
Add the webhook in Pipedrive
In Pipedrive, open Tools and apps > Webhooks, create a webhook for deal updates and paste the Kerux URL. Change a test deal so Kerux receives a sample, then pick the deal id and status fields from it.
3
Branch on the status
Add a Condition on the status field from the sample: won goes to a thank-you message, lost to a tag and the end.
Test with one contact
In the follow-up campaign’s Builder, click Test to open Test on one contact. The contact’s journey shows both requests and Pipedrive’s answers. Check the person and the deal in Pipedrive.Common errors
401 or 403 from Pipedrive
401 or 403 from Pipedrive
The token is wrong or belongs to a user without access. Copy it again from Personal preferences > API, edit the connection and paste it.
The deal has no person
The deal has no person
The deal step ran before the person step had an answer, or the name in
steps. doesn’t match the step’s name. Name the first step person and use {{steps.person.response.body.data.id}}.Same person twice in Pipedrive
Same person twice in Pipedrive
Pipedrive’s create endpoint doesn’t check for duplicates. Search first (Pipedrive’s person search endpoint) and branch, or merge in Pipedrive.