Skip to navigation

Pipedrive

Look up and add callers, and log deals and follow-ups in Pipedrive with webhook tools.

With the webhook tools below, your receptionist can recognize callers who are already in Pipedrive, add new callers as people with their phone number, open a deal for a new opportunity, and schedule a follow-up call for your team.

Before you start

In Pipedrive, open Personal preferences → API and copy your API token. Every tool below sends it in the x-api-token request header, as a Secret. The tools act as you, so use the token of a user who can see the right pipeline.

Create the tools

For each tool, go to Integrations, select Add integration, choose Webhook Tool, and set Assign to agents to Receptionist.

Find a caller

FieldValue
Namefind_pipedrive_person
Description”Find the caller in our CRM by phone number or name. Use it at the start of a call about a sale, a quote, or an existing deal. If they aren’t found, add them with create_pipedrive_person.”
MethodGET
URLhttps://api.pipedrive.com/api/v2/persons/search
Request Headersx-api-token (Secret): your API token
Query Parametersterm (string, required): “The caller’s phone number or full name, at least 2 characters.”

The search returns each match’s name, phone numbers, and email addresses, and a caller can ask it to search for someone else’s name. Add a rule telling your receptionist to use it only to recognize the caller, and never to read a person’s details back to them.

Add a new caller

FieldValue
Namecreate_pipedrive_person
Description”Add the caller as a person in our CRM, only when find_pipedrive_person didn’t find them. Pass the id it returns to create_pipedrive_deal and create_pipedrive_followup.”
MethodPOST
URLhttps://api.pipedrive.com/api/v2/persons
Request Headersx-api-token (Secret): your API token
Body Parametersname (string, required): “The caller’s full name.”
phones (array, required): “Exactly one item, for the caller’s phone number.”
emails (array): “Exactly one item, for the caller’s email address. Leave it out if they didn’t give one.”

Pipedrive keeps a person’s phone numbers and email addresses as lists. For both phones and emails, under Each item, choose object and add three fields:

  • value (string, required, from the conversation): “The caller’s phone number in international format, for example +14155550123” for phones, or “The caller’s email address” for emails
  • primary (boolean, fixed value): true
  • label (string, fixed value): mobile for phones, work for emails

Open a deal

FieldValue
Namecreate_pipedrive_deal
Description”Open a deal when a caller wants a quote or wants to buy. Include the caller’s name in the title.”
MethodPOST
URLhttps://api.pipedrive.com/api/v2/deals
Request Headersx-api-token (Secret): your API token
Body Parameterstitle (string, required): “Short title with the caller’s name and what they want.”
person_id (integer, required): “The id from find_pipedrive_person, or from create_pipedrive_person if the caller is new.”
value (number): “The deal value, if the caller gave one.”

Schedule a follow-up

FieldValue
Namecreate_pipedrive_followup
Description”Schedule a call back from the team whenever you promise the caller a follow-up.”
MethodPOST
URLhttps://api.pipedrive.com/api/v2/activities
Request Headersx-api-token (Secret): your API token
Body Parameterssubject (string, required): “For example: Call back Jane Doe about a kitchen quote.”
type (string, fixed value): call
due_date (string, required): “The follow-up date as YYYY-MM-DD.”
note (string, required): “The caller’s name, phone number, and what they need.”
deal_id (integer): “The deal id, if you opened one.”
participants (array, required): “Exactly one item, for the caller.”

participants links the follow-up to the caller in Pipedrive. Under Each item, choose object and add two fields:

  • person_id (integer, required, from the conversation): “The id from find_pipedrive_person, or from create_pipedrive_person if the caller is new.”
  • primary (boolean, fixed value): true

Add a procedure so your receptionist searches for the caller first and only adds a person when no match is found.

Select Enable on each tool, then test your receptionist as a new caller who asks for a quote. The person, the deal, and the follow-up appear in Pipedrive, linked to each other.

Troubleshooting

ProblemWhat to check
401 from PipedriveThe header must be named x-api-token and hold a current token.
Known callers aren’t foundPipedrive matches phone numbers as stored. Store numbers in one format, or search by name as well.
Returning callers are added twiceTell your receptionist, in a procedure or the tool’s description, to add a person only when the search finds no one.
The follow-up has no typecall must be an activity type in your Pipedrive account. Check Company settings → Activities.
The follow-up isn’t linked to the callerEach participants item needs person_id as an integer and primary fixed to true.