Quick overview
This workflow monitors a Gmail inbox for lead replies, looks up the sender in Pipedrive, uses OpenAI to classify the lead’s intent and urgency, then creates the appropriate Pipedrive follow-up activity, logs an AI analysis note, and notifies the deal owner via Slack and Gmail.
How it works
- Triggers every minute when a new email arrives in the Gmail inbox.
- Extracts and cleans the sender name/email, subject, and message snippet for analysis.
- Searches Pipedrive for a matching person using the sender’s email address and emails an internal reviewer if no match is found.
- Sends the email details to OpenAI (GPT-4o) to classify intent, buying stage, sentiment, urgency, and recommended next action as JSON.
- Normalizes the AI intent and routes the reply to the correct path (Meeting Request, Pricing Inquiry, Follow Up Later, or Not Interested).
- Creates a corresponding Pipedrive activity (meeting, call, or mail) or marks the deal as lost for “Not Interested,” then adds a Pipedrive note with the full AI analysis.
- Sends a Slack message to the deal owner with the AI summary and recommendation, then emails an internal summary with the same details.
Setup
- Connect Gmail OAuth2 credentials for both the Gmail Trigger (inbox monitoring) and Gmail nodes (sending the internal emails).
- Connect a Pipedrive credential with permission to search persons, create activities, update deals, and create notes, and confirm your activity types (Meeting/Call/Mail) match your Pipedrive configuration.
- Add an OpenAI credential (LangChain OpenAI node) and ensure the selected model (gpt-4o) is available in your account.
- Connect Slack OAuth2 credentials and set the target Slack user (or adjust the node to post to a channel) for deal-owner notifications.
- Update environment-specific fields such as the “lead not found” alert recipient email address and any variables used in the internal summary email (for example owner email/person/org fields if you want them populated from Pipedrive).
Requirements
-
AI Analysis Requirements
- Interested
- Meeting Request
- Pricing Inquiry
- Information Request
- Follow Up Later
- Not Interested
- Wrong Contact
- Competitor Mention
- Budget Constraint
- Project Delayed
Buying Stage
- Awareness
- Research
- Evaluation
- Vendor Selection
- Ready to Buy
Sentiment
- Positive
- Neutral
- Negative
Urgency
Additional info
Connect with us:
Website: https://www.intuz.com/n8n-workflow-automation-templates/
Email: [email protected]
LinkedIn: https://www.linkedin.com/company/intuz
Get Started: https://n8n.partnerlinks.io/intuz
For Custom Worflow Automation
https://www.intuz.com/get-started/