This workflow creates deals in Pipedrive via a webhook. Key nodes include Deal Creation Webhook (receives deal data), Validate Deal Title (checks title presence), Title Missing Error (handles missing title), Validate Email Format (verifies email syntax), Email Format Error (handles invalid email), Set Deal Data (formats deal details), Create Pipedrive Deal (adds deal via Pipedrive API), Check Deal Creation (verifies API success), Pipedrive Error Response (handles API errors), Format Success Response (structures output), Send Success Response (returns results). It uses the Pipedrive API to manage deal creation. Setup Requirements Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Create a Pipedrive account at pipedrive.com, get an API token (Settings > Personal > API), and note your company domain (e.g., your-company.pipedrive.com). Configure n8n credentials: pipedriveApi with your token and domain. Set Webhook Trigger path to create-deal. Optionally, add headerAuth (Bearer YOUR_TOKEN) for security. Ensure your app sends POST requests with JSON: {"title": "New Deal", "value": "1000", "currency": "USD", "personName": "John Doe", "personEmail": "john@example.com", "orgName": "Example Inc", "stage": "Lead"}. Handle errors like missing title (400: Deal title is required), invalid email (400: Invalid email format), or invalid credentials (500: Failed to create deal). Testing and Deployment Import the JSON into n8n. Test by sending a POST request to the webhook URL with JSON: {"title": "Test Deal", "value": "500", "currency": "USD", "personName": "Test User", "personEmail": "test@example.com", "orgName": "Test Inc", "stage": "Lead"}. Verify Create Pipedrive Deal adds the deal and Send Success Response returns status 201 with deal details (e.g., id, title, value). Test with missing title (400: Deal title is required), invalid email (400: Invalid email format), or incorrect API token (500: Failed to create deal). Check for rate limits (429: Too Many Requests). If deal creation fails, verify token and domain. Activate the workflow and ensure the webhook is live. Deploy for reliable deal management.
$5.49
Workflow steps: 11
Integrated apps: webhook, if, respondToWebhook