Skip to main content
Pipedrive integration use case examples This article shows a real scenario for using Pipedrive with Treble from an AI agent: validating whether the customer already exists in the CRM, creating them if they do not exist, updating their data, creating a deal (Deal / Opportunity), and transferring the conversation to a human agent.

Practical scenario: qualification and handoff to sales

Imagine your customers message you on WhatsApp to request commercial information. Your goal is to automate this flow:
  1. Check whether the customer is already registered in Pipedrive as a Lead or Contact.
  2. If they do not exist, create them in Pipedrive and record basic data.
  3. Update additional Lead/Contact information during the conversation.
  4. Create a Deal (Deal / Opportunity) with quotation information.
  5. Transfer the conversation to a human agent in Treble.

Tools involved

In this scenario you can combine tools such as:
  • Lead/Contact search by phone.
  • create_crm_lead or create_crm_contact to register the customer.
  • update_crm_lead or update_crm_contact to complete missing fields.
  • create_crm_deal to create the sales opportunity.
  • transferToAgent for handoff to the human team.

Prompt for Leads and creating Deal in Pipedrive before transferring to sales.

Recommendations to adapt this example

  • Adjust field names (slug) according to your real properties in Pipedrive.
  • Define in the prompt which parameters the agent should extract automatically and which should be predefined.
  • If your operation uses Contact instead of Lead, replace Lead tools with Contact tools in the same flow.
  • Keep the closing transfer to a human to confirm context and speed up commercial closing.
This pattern applies to multiple cases: lead capture, commercial qualification, CRM updates, and handoff to human teams.