> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Pipedrive

> Connect Pipedrive and your agent can find a caller in your CRM while it is talking to them, answer with their real details, and read their deals.

Connect Pipedrive and your agent can find a caller in your CRM while it is talking to
them, answer with their real details, and read their deals. If you allow it, the agent
can also add a note or log an activity on their record.

Pipedrive is free to connect.

## What you need

| You need | Details |
| - | - |
| A Pipedrive account | And your personal API token from it (step 1 shows where). |
| An agent | See [Set up your first voice agent](https://docs.getsmartalex.com/how-to/first-voice-agent.md). |
| Time | About five minutes. |

## 1. Copy your Pipedrive API token

In Pipedrive, open your profile menu, then **Personal preferences**, then **API**, and
copy your personal API token.

## 2. Connect Pipedrive in SmartAlex

1. Open **Agent Settings**, then **Connectors**.
2. On **Browse**, find **Pipedrive** ("Look up and update Pipedrive people, deals and
   activities") under **CRM and contacts**, and click it.
3. Click **Install connector**, then **Continue**.
4. Paste the token into **API key** ("Paste the API key"). **Where do I find this?**
   opens the API page in Pipedrive.
5. Click **Connect**. SmartAlex checks the token with Pipedrive before saving it.

You see "Pipedrive connected".

## 3. Choose what the agent can do

Tools are switched on per agent. Tick the ones this agent may use, then click **Save
tools**. You see "N tools saved. Applies on the next call."

| Tool | What the agent can do |
| - | - |
| **Find a person** | Look up the caller in your Pipedrive. |
| **Open a person** | Open the record it found. |
| **Find an organisation** | Look up a company. |
| **Find a deal** | Look up a deal. |
| **Read deals** | Read deal stage and value. |
| **Add a note** | Add a note to a record. Marked **Changes data**. |
| **Log an activity** | Log an activity on a record. Marked **Changes data**. |
| **Add a person** | Add a new person. Marked **Changes data**. |
| **Read account setup** | Read how your Pipedrive account is set up. |

"Tools marked "Changes data" write to your Pipedrive account. Leave them off unless you
want the agent making changes there."

Two ready-made sets switch on a group in one go:

* **Look up callers**: "The agent can find a caller and read their record."
* **Look up and log the call**: everything in **Look up callers**, plus **Add a note**
  and **Log an activity**.

### Notes and activities on phone calls

On phone calls, a **Changes data** tool runs only if you ticked it on its own. To let
the agent add a note or log an activity on a phone call, tick **Add a note** and **Log
an activity** one by one, then click **Save tools**.

The agent adds a note or activity while it is on the call, when it decides it should.
Nothing is written to Pipedrive by itself after the call ends.

### The tool limit

One agent can only have so many tools on, counting every connector. When you reach the
limit you see "Untick a tool to swap": turn a tool off to make room.

## Disconnect

At the top of the Pipedrive page, click **Disconnect**. You see "Pipedrive disconnected".
To stop just one agent using Pipedrive, untick its Pipedrive tools and click **Save
tools**.

## If it does not work

| What you see | What to do |
| - | - |
| "Enter the API key first." | Paste your token into **API key**, then click **Connect**. |
| "Pipedrive turned down that token. Copy it again from Personal preferences, then API." | Copy the token again in Pipedrive and paste it in full. |
| "Pipedrive did not confirm that token. Check it under Personal preferences, then API, and try again." | Check the token in Pipedrive and try again. |
| "Could not connect to the server. Check the credential and try again." | Check the token, wait a moment and try again. |
| The agent cannot find a caller | Check **Find a person** and **Open a person** are on for that agent. |
| The agent does not add notes on phone calls | Tick **Add a note** on its own, then click **Save tools**. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.