Automate Inbound Email → Pipedrive Deal + Slack Alert, Automatically in n8n — Step by Step
An inbound inquiry lands in your shared inbox at 4:47 PM. By the time someone sees it, opens Pipedrive, copies the sender's name and email, creates a deal, sets the pipeline stage, and pings the accou
An inbound inquiry lands in your shared inbox at 4:47 PM. By the time someone sees it, opens Pipedrive, copies the sender's name and email, creates a deal, sets the pipeline stage, and pings the account owner in Slack, it's 9:15 the next morning. The lead has already emailed two competitors. This is the silent tax on manual data entry: not the ten minutes it takes, but the hours of latency and the deals that leak through the cracks between your inbox and your CRM.
The problem: your inbox is a leaky funnel
Most teams treat their sales inbox as a to-do list they process when they get around to it. That works until volume grows. Then three failures compound:
- Latency kills conversion. Response time is the single strongest predictor of whether an inbound lead converts. Every hour a deal sits uncreated is an hour a rep isn't following up.
- Manual entry is inconsistent. One rep tags the deal "Website Inquiry," another writes "web lead," a third forgets the source entirely. Your pipeline reporting becomes fiction.
- Nothing is visible. If a lead isn't in the CRM and nobody was notified, it effectively doesn't exist. Ownership is ambiguous and follow-up is nobody's job.
You don't need more discipline. You need the path from email to CRM to be automatic, deterministic, and instant.
The solution: one workflow, three moves
The fix is a single n8n workflow that runs the moment an email arrives: read the inbound message, create a structured Pipedrive deal from it, and post a Slack alert to the right channel so a human can act within seconds. No copy-paste, no context switching, no leads lost between systems.
The logical flow is simple:
Email Trigger (IMAP) → parse sender + subject + body
→ Pipedrive: find-or-create Person
→ Pipedrive: create Deal (linked to Person)
→ Slack: post alert with deal link
Everything runs server-side in n8n. There's no browser extension, no Zapier task limit to worry about, and you own the logic end to end. Below is exactly how to build it.
Step-by-step setup in n8n
1. Trigger on new email
Add an Email Trigger (IMAP) node. Connect it to the inbox that receives inquiries (for example sales@yourdomain.com). Configure:
- Mailbox:
INBOX— or a dedicated folder if you use a mail rule to route inquiries there. - Action after processing: mark as read, so the same email never fires twice.
- Format: resolved, so n8n hands you a parsed object with
from,subject,text, andhtmlinstead of a raw MIME blob.
If your provider is Gmail or Outlook, use the dedicated Gmail Trigger or Microsoft Outlook Trigger node instead — both support OAuth2 and are more reliable than raw IMAP polling.
2. Normalize the data
Drop a Set (Edit Fields) node right after the trigger to pull clean values into named fields. This keeps downstream nodes readable and gives you one place to adjust parsing:
email→{{$json.from.value[0].address}}name→{{$json.from.value[0].name || $json.from.value[0].address.split('@')[0]}}subject→{{$json.subject}}body→{{$json.text}}
Optionally add an IF node here to filter out noise — auto-replies, newsletters, or internal senders — by checking the subject for "out of office" or the domain against your own. Filtering early keeps junk out of your pipeline.
3. Find or create the Person in Pipedrive
Add a Pipedrive node. Authenticate with an API token from Pipedrive → Personal Preferences → API. First, search for an existing person so you don't create duplicates:
- Resource: Person Operation: Search
- Term: the
emailfield Fields: email
Follow it with an IF node: if the search returned no result, branch to a Pipedrive Create Person operation (name + email); if it did, pass the existing person ID through. Merge both branches so the next node always receives a valid person_id.
4. Create the Deal
Add another Pipedrive node set to Deal → Create:
- Title:
Inbound: {{$json.subject}}— a scannable, consistent naming convention. - Person ID: the ID resolved in step 3.
- Pipeline / Stage: your inbound pipeline, first stage.
- Add fields: set the source custom field to "Inbound Email" and paste the email
bodyinto a note or the deal's description so the rep has full context without leaving the CRM.
Consider chaining a Pipedrive Note → Create node to attach the full email body to the deal — deals with a title-only summary force reps back into the inbox, which defeats the purpose.
5. Alert the team in Slack
Finish with a Slack node set to Message → Post. Authenticate via OAuth2 or a bot token with chat:write scope. Post to your #sales-inbound channel with a message built from the previous nodes:
🔔 New inbound lead
*{{$json.name}}* — {{$json.email}}
Subject: {{$json.subject}}
<https://yourcompany.pipedrive.com/deal/{{$json.id}}|Open deal in Pipedrive>
That deep link is the whole point: the rep taps once and lands directly on the deal. Activate the workflow, send yourself a test email, and confirm all three systems light up in sequence.
The benefits: speed, consistency, visibility
- Sub-minute response capability. The deal exists and the owner is notified within seconds of the email arriving — often before the sender has closed their laptop.
- Zero manual entry. No copy-paste, no typos, no forgotten fields. Every inbound deal is tagged identically, so your source reporting is finally trustworthy.
- Clear ownership. The Slack alert turns an invisible email into a visible, claimable task. Nothing sits unassigned.
- A single source of truth. Because every inquiry becomes a structured deal, your pipeline reflects real inbound volume — the data you need to decide whether to hire, spend, or optimize.
- You own it. Self-hosted n8n means no per-task billing and full freedom to extend the logic later.
Common pitfalls to avoid
- Duplicate deals from re-fired emails. Always set the trigger to mark messages as read (or move them to a processed folder). An IMAP node that re-reads unread mail on every poll will create the same deal repeatedly.
- Skipping the find-or-create step. Creating a Person on every email pollutes Pipedrive with duplicates for repeat contacts. The search-then-branch pattern in step 3 is not optional at scale.
- Auto-replies and newsletters becoming deals. Without the filter in step 2, your pipeline fills with "Delivery Status Notification" and marketing blasts. Filter on sender domain and subject keywords early.
- Storing the API token in the node instead of credentials. Use n8n's credential store for both Pipedrive and Slack so secrets aren't exposed in exported workflow JSON.
- No error path. If Pipedrive is briefly down, the deal is lost silently. Add an Error Trigger workflow or set the workflow's error behavior to post a fallback Slack message, so a failure alerts a human instead of vanishing.
- Parsing HTML-only emails. Some senders ship no plain-text part. Fall back to the
htmlfield (stripped of tags) whentextis empty, or you'll create deals with blank bodies.
Build it once and every inbound inquiry — today's and next quarter's — flows into Pipedrive and Slack the instant it arrives. The leak is closed, and your reps spend their time selling instead of transcribing emails.
Ja construimos isso pra voce
Nao comece do zero. O Inbound Email → Pipedrive Deal + Slack Alert, Automatically e um workflow n8n pronto para instalar — conecta suas ferramentas em minutos, sem codigo.
Instalar por $29 →