# Pipedrive

> This page is about FlutterFlow (the app builder you use by describing your app), not FlutterFlow Studio.

URL: https://docs.flutterflow.io/ffx/pipedrive

Connect Pipedrive with an API token, then ask the agent to add leads from your app, move deals through your pipeline, and log activities and notes.

Use Pipedrive to add leads from your app, move deals through your pipeline, and log activities and notes. To connect, you paste your Pipedrive personal API token.

## Connect Pipedrive {#connect-pipedrive}

Your API token acts as you, so your app sees and changes what you can see and change in Pipedrive. You find the token in Pipedrive under **Settings › Personal preferences › API**. If you change the token there, your app's connection stops working.

Only a project owner can connect Pipedrive, and everyone on the project can use the connection. If you're a project owner, connect Pipedrive:

1. Open **Project Settings › Connections**, and then turn on the switch for **Pipedrive**.
2. In the **Connect Pipedrive** dialog, paste your token into **API token**, and then click **Connect**. **Find it** opens Pipedrive's API page.

For more about connecting, see [Connect a service](https://docs.flutterflow.io/ffx/connect-a-service).

## What to ask

With Pipedrive connected, your app can work with your people, organizations, deals, pipelines, activities, and notes. For example, it can search for a person by email address, read your pipelines and their stages, add a person, an organization, or a deal, change a deal's stage, status, value, or expected close date, and log an activity or a note.

> Example request: "Add a Contact us form that saves each person who sends it to Pipedrive, with a deal for them in the first stage of my pipeline. Search Pipedrive for their email address first, so the same person isn't added twice."

> Example request: "Add a Deals screen that lists my open Pipedrive deals by stage, and lets me move a deal to another stage or mark it won or lost."

> Example request: "When someone books a demo, add a call activity in Pipedrive on their deal for the next day, with a note about what they asked for."

Pipedrive doesn't merge people who share an email address, so ask your app to search before it adds a person or an organization.

## Agent questions

If Pipedrive isn't connected, the agent asks you to connect it in a card above the message box. See [Connect when the agent asks](https://docs.flutterflow.io/ffx/connect-a-service#connect-when-the-agent-asks).

## Review

After the agent finishes, read the turn's [**Summary**](https://docs.flutterflow.io/ffx/what-changed#summary) and review its [**Changes**](https://docs.flutterflow.io/ffx/what-changed#changes-tab). Check the affected screens in **Screens**, and try the change in **Preview**. If the change uses records or sign-in, test it with [the thread's own data in **Data**](https://docs.flutterflow.io/ffx/thread-data).

After you push a backend change, check the result in **Backend**.

## Call limit {#call-limit}

Your app and the agent share a limit of 60 calls a minute to Pipedrive through your app's connection. Pipedrive also limits how many requests your Pipedrive company can make each day. Because a search counts for more than a list, ask for a search that runs when a person submits it, not on every keystroke. See [Limits](https://docs.flutterflow.io/ffx/limits#connections).

## Push

When the feature works, [push the changes to your app](https://docs.flutterflow.io/ffx/push).

## Next steps

- To replace the token or disconnect Pipedrive, see [Manage connections](https://docs.flutterflow.io/ffx/manage-connections).
- For other services your app can use, see [Available services](https://docs.flutterflow.io/ffx/services).

## Troubleshooting

- **Pipedrive refuses your token:** copy the token again from **Settings › Personal preferences › API** in Pipedrive, and paste all of it. See [A service refuses your key](https://docs.flutterflow.io/ffx/troubleshoot-connections#key-refused).
- **Your app shows a message about the service:** see [Messages shown in your app](https://docs.flutterflow.io/ffx/troubleshoot-connections#app-messages).
