Get the FREE Ultimate OpenClaw Setup Guide →
d

Pipedrive CRM (OpenClaw)

Scanned

@danielfoch

npx machina-cli add skill @danielfoch/pipedrive-crm-openclaw --openclaw
Files (1)
SKILL.md
2.9 KB

Pipedrive CRM for OpenClaw

Use this skill to run day-to-day CRM operations in Pipedrive through API calls, including CRUD, search, pipeline movement, activity logging, and any unsupported operation via raw endpoint requests.

Required Environment

Set one authentication mode:

  • PIPEDRIVE_API_TOKEN for API token auth (simplest)
  • PIPEDRIVE_ACCESS_TOKEN for OAuth bearer auth

Set base routing:

  • PIPEDRIVE_COMPANY_DOMAIN (for example: acme for https://acme.pipedrive.com)

Optional:

  • PIPEDRIVE_API_BASE to override full API base URL (defaults to https://<company>.pipedrive.com/api/v1)
  • PIPEDRIVE_TIMEOUT request timeout in seconds (default 30)

Setup

If the user asks to connect or validate credentials:

python3 skills/pipedrive-crm-openclaw/scripts/setup-wizard.py

Primary Script

Run:

python3 skills/pipedrive-crm-openclaw/scripts/pipedrive-api.py <command> [args]

Core commands:

  • test_connection
  • list <entity> [--start N] [--limit N]
  • get <entity> <id>
  • create <entity> <json_payload>
  • update <entity> <id> <json_payload> [--method PUT|PATCH]
  • delete <entity> <id>
  • search <entity> <term> [--limit N] [--fields csv] [--exact-match]
  • move_deal_stage <deal_id> <stage_id> [--status open|won|lost|deleted]
  • add_note <content> [--deal-id ID] [--person-id ID] [--org-id ID] [--lead-id UUID]
  • request <METHOD> <path> [--query '{...}'] [--body '{...}']

Supported entities:

  • persons
  • organizations
  • deals
  • leads
  • activities
  • notes
  • products
  • users
  • pipelines
  • stages

Practical OpenClaw Playbooks

Lead Intake and Qualification

  1. search persons "name or email" to deduplicate.
  2. create persons '{...}' if no match.
  3. create deals '{...}' and link person/org.
  4. add_note "summary" --deal-id <id> to preserve context.

Pipeline Management

  1. list deals with filters through request query.
  2. move_deal_stage <deal_id> <stage_id>.
  3. create activities '{...}' for next follow-up.

Daily Follow-Up Queue

  1. list activities and search persons.
  2. update activities <id> '{"done":1}' after completion.
  3. Log interaction with add_note.

Safety Rules

  • Never print or echo raw tokens in chat output.
  • Read before write when user intent is ambiguous.
  • Validate IDs from API responses before destructive actions.
  • If response is 401 or 403, stop and request corrected credentials/scopes.
  • Use request for endpoints not yet wrapped by helper commands.

References

Load as needed:

  • references/entity-playbooks.md
  • references/pipedrive-v1-notes.md

Source

git clone https://clawhub.ai/danielfoch/pipedrive-crm-openclawView on GitHub

Overview

This skill lets you perform day-to-day Pipedrive CRM operations through API calls, including CRUD, search, pipeline movement, activity logging, and notes. It supports custom endpoint actions and raw requests for unsupported operations, enabling automation and UI-free CRM workflows.

How This Skill Works

Authenticate with PIPEDRIVE_API_TOKEN or PIPEDRIVE_ACCESS_TOKEN and set the company domain with PIPEDRIVE_COMPANY_DOMAIN. Use the provided core script to run commands like test_connection, list, get, create, update, delete, search, move_deal_stage, add_note, and request against entities such as persons, organizations, deals, leads, activities, notes, products, users, pipelines, and stages. Optional PIPEDRIVE_API_BASE and PIPEDRIVE_TIMEOUT let you customize the base URL and request timeout.

When to Use It

  • Deduplicate and create records during lead intake (search persons, then create) and link to deals or leads
  • Move deals through pipeline stages using move_deal_stage
  • Log activities and attach notes to deals, persons, or organizations with add_note
  • List and search records with pagination and filtering to support dashboards and reports
  • Execute raw endpoint requests for unsupported or custom actions via request

Quick Start

  1. Step 1: Configure authentication and base URL by exporting PIPEDRIVE_API_TOKEN or PIPEDRIVE_ACCESS_TOKEN, PIPEDRIVE_COMPANY_DOMAIN, and optional PIPEDRIVE_API_BASE and PIPEDRIVE_TIMEOUT
  2. Step 2: Run the core script with a command, e.g. python3 skills/pipedrive-crm-openclaw/scripts/pipedrive-api.py test_connection or list deals
  3. Step 3: Validate results, handle errors (401/403), and use create/update/delete as needed via the supported commands

Best Practices

  • Validate credentials with test_connection before performing actions
  • Use minimal payloads and verify IDs from API responses before chaining operations
  • Prefer API token auth for simplicity; switch to OAuth with appropriate scopes if required
  • Use request for endpoints not yet wrapped by helper commands and avoid exposing sensitive data in logs
  • Handle 401/403 responses gracefully and implement timeouts/retries where appropriate

Example Use Cases

  • Create a new person and a linked deal in a single flow: create persons '{...}' then create deals '{...}' and associate them
  • Move a deal to a specific stage and immediately log a follow-up activity with create activities '{...}'
  • List deals with pagination and perform a search for a customer by email to locate related records
  • Add a note to a deal after a phone call and attach it to the corresponding organization
  • Use request to hit a custom/unwrapped endpoint for an unsupported operation

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers