Library / CRM & Sales Pipeline
CRM & Sales Pipeline
Create and approve Xero invoices from Pipedrive Closed Won deals with Slack
When something happens in a connected app, it updates your CRM using Pipedrive, Slack, Xero.
What it does
## Deal-to-invoice automation (CRM → Xero) ### How it works This workflow listens for Pipedrive deal updates and continues only when a deal enters the Closed Won stage. It retrieves the related person, finds or creates the matching Xero contact, builds invoice line items from the deal products, and creates a draft invoice in Xero. The draft is sent to Slack for approval; approved invoices are authorised and emailed when a contact email exists, while rejected or non-email cases are reported in Slack. ### Setup steps - Connect Pipedrive credentials for the trigger and CRM lookup nodes. - Connect Xero credentials or configure OAuth headers for the Xero contact and invoice API requests. - Connect Slack credentials and choose the channel or approvers for the approval and notification messages. - Set the Workflow Config values, including Xero organization ID, Closed Won stage ID, sales account code, and tax type. - Verify the Pipedrive deal/person fields and product fields used to build contact data and invoice line items. ### Customization Adjust the Closed Won stage filter, invoice account code, tax type, Slack approver/channel, and line-item mapping logic to match the sales process and accounting setup.
The steps
- If Closed Won Stage Entered
- Search Xero Contact
- If Contact Exists
- Create New Xero Contact
- Set Existing Contact ID
- Set New Contact ID
- Build Invoice Items
- Send for Slack Approval
- If Approval Received
- Post Xero Invoice Email
- Notify Slack of Sent Invoice
- Notify Slack of Rejection
- Configure Workflow Settings
- Retrieve Pipedrive Person
21 steps in total.
Similar automations
CRM & Sales PipelineCreate Stripe Customers from Won Pipedrive Deals17 stepsFinance, Invoices & AccountingValidate EN 16931 e-invoices from Gmail and create draft bills in Xero46 stepsFinance, Invoices & AccountingSync Shopify orders to Xero invoices with Slack and email alerts12 stepsFinance, Invoices & AccountingCreate Stripe Customers When Pipedrive Deals Are Won7 steps