This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
Capsule CRM Pipeline Automation with n8n: Move Deals and Send Emails Automatically
If your sales team is manually dragging deals across pipeline stages and copy-pasting follow-up emails, you are leaving time and money on the table. This guide shows you exactly how to wire up Capsule CRM — the clean, small-business-friendly CRM with a built-in sales pipeline — to n8n, the open-source automation tool with 400+ integrations, so that deals move themselves and emails fire without anyone lifting a finger.
The whole setup takes around 20 minutes. You do not need to write a single line of code.
What You Will Build
- A trigger that fires every time a deal (opportunity) reaches a specific pipeline stage in Capsule CRM
- A condition check that filters only the deals you care about
- An action that moves the deal to the next stage automatically
- An email sent to the contact (or your sales rep) via Gmail, Outlook, or SMTP
Prerequisites
- Capsule CRM account — free trial available, paid plans start from a low monthly fee per user
- n8n instance — either self-hosted (free) or n8n Cloud
- Capsule API key — found under your Capsule account settings → API Authentication
- An email sending credential in n8n (Gmail OAuth2, Outlook OAuth2, or SMTP)
Step 1 – Get Your Capsule API Key
Log in to Capsule CRM, click your avatar in the top-right corner, go to My Preferences → API Authentication, and generate a new API token. Copy it somewhere safe — you will paste it into n8n in a moment.
Step 2 – Create the n8n Workflow
Open your n8n editor and create a new workflow. The finished flow will look like this:
Schedule Trigger → HTTP Request (fetch opportunities) → IF node (filter by stage) → HTTP Request (update stage) → Send Email
Node 1: Schedule Trigger
Add a Schedule Trigger node. Set it to run every 15 minutes (or every hour — your choice). This polls Capsule for new or updated deals on a regular cadence.
Alternative: If you are on a Capsule plan that supports webhooks, you can replace the schedule trigger with an n8n Webhook node and configure Capsule to push events in real time. This cuts latency to seconds.
Node 2: HTTP Request – Fetch Opportunities
Add an HTTP Request node and configure it as follows:
- Method: GET
- URL:
https://api.capsulecrm.com/api/v2/opportunities?embed=party - Authentication: Header Auth — Header Name:
Authorization, Header Value:Bearer YOUR_API_TOKEN
This returns all open opportunities including the embedded contact (party) details. You can add query parameters such as milestoneId to narrow results to a specific pipeline stage right at the API level, which reduces processing overhead.
Node 3: IF Node – Filter by Stage
Add an IF node. Set the condition:
- Value 1:
{{ $json.milestone.name }} - Operation: Equal
- Value 2:
Proposal Sent(or whatever stage name you want to act on)
Deals that match go to the true branch. All others are ignored.
Node 4: HTTP Request – Move Deal to Next Stage
Add a second HTTP Request node on the true branch:
- Method: PUT
- URL:
https://api.capsulecrm.com/api/v2/opportunities/{{ $json.id }} - Body (JSON):
{
"opportunity": {
"milestone": {
"id": 123456
}
}
}
Replace 123456 with the actual milestone ID of your target stage. You can retrieve all milestone IDs with a GET request to https://api.capsulecrm.com/api/v2/milestones.
Node 5: Send Email
Add a Gmail, Microsoft Outlook, or Send Email (SMTP) node. Connect it after the stage-update node. Configure it like this:
- To:
{{ $('HTTP Request').item.json.party.emailAddresses[0].address }} - Subject:
Your proposal is under review – {{ $('HTTP Request').item.json.name }} - Body: Write a short follow-up message referencing the deal name and next steps
If you want a richer email sequence — think multi-step nurture campaigns tied directly to your Capsule contacts — pair this with Transpond, the email marketing tool built by the same team behind Capsule CRM. It syncs contacts natively and supports automated sequences, so you can keep the pipeline trigger in n8n and hand off the email journey to Transpond.
Step 3 – Activate and Test
- Click Execute Workflow in n8n to run a manual test.
- Check that the correct deals are matched by the IF node.
- Confirm the stage update appears in Capsule CRM within seconds.
- Verify the email lands in the recipient inbox.
- Toggle the workflow to Active.
Practical Variations
- Notify a Slack channel instead of (or in addition to) sending an email — add a Slack node after the stage update.
- Create a follow-up task in Capsule automatically — POST to
/api/v2/taskswith the opportunity and due date. - Log the event to a Google Sheet — useful for weekly pipeline reporting without any manual export.
- Add a delay node — if you want the email to go out 24 hours after the stage change rather than immediately.
Troubleshooting Tips
- 401 Unauthorized: Double-check that your API token is correct and prefixed with
Bearerin the header. - No items from the IF node: Use the n8n Input panel to inspect the actual milestone name coming from the API — it might have a different capitalisation.
- Email not delivered: Confirm OAuth2 scopes include
gmail.sendor the equivalent for your provider. - Rate limits: Capsule's API allows 4,000 requests per hour on paid plans. A 15-minute polling interval with a small contact list will never come close to that ceiling.
Why This Stack Works for Small Teams
Capsule CRM is intentionally simple — no bloated feature list, just contacts, pipeline, and tasks. That simplicity makes it fast to use but also means some repetitive actions are left to the user. n8n fills that gap perfectly: it handles the logic layer (conditions, delays, branching) while Capsule stays the source of truth for your deals. Together, they give a small sales team the kind of automation that enterprise CRMs charge thousands per month for.
If you want to automate your Capsule CRM pipeline without writing code, you can build and host your workflow via n8n — including open-source self-hosting with 400+ integrations — to move deals and trigger emails in minutes.