Automate Lemlist Email Replies with n8n and Slack Alerts

This n8n workflow automates the process of handling email replies from Lemlist campaigns by categorizing responses using OpenAI and sending structured Slack notifications. It saves time by auto-unsubscribing uninterested leads and marking interested ones, streamlining outbound outreach management.
lemlistTrigger
lmChatOpenAi
slack
+8
Workflow Identifier: 2061
NODES in Use: lemlistTrigger, markdown, lmChatOpenAi, outputParserStructured, chainLlm, merge, switch, slack, lemlist, httpRequest, stickyNote
Automate Lemlist email replies with n8n and Slack

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow listens for new replies to outbound email campaigns sent through Lemlist.
It reads each reply, cleans the text format, then uses AI to decide if the reply shows interest, asks to unsubscribe, is an out of office, or is not interested.
According to the reply type, it takes different actions automatically, like unsubscribing leads or marking them as interested.
Teams get clear Slack messages with key info to act fast.
This saves time and avoids missing important replies.


Who Should Use This Workflow

This is for sales teams or managers who run many Lemlist campaigns and get lots of replies.
If reading replies one by one is slow or error-prone, this automation helps handle emails faster.
It suits users who want to keep lead lists clean and act on interested customers quickly.


Tools and Services Used

  • Lemlist API: Detects new email replies from campaigns.
  • OpenAI GPT-4: Classifies replies into categories.
  • Langchain Chat Model node: Controls the AI prompt and output parsing.
  • Slack API: Sends detailed notification messages.
  • n8n automation platform: All nodes are set up and controlled here.

Inputs, Processing Steps, and Output

Inputs

  • New email reply data received from Lemlist campaigns through the Lemlist Trigger node.
  • Reply content text in raw form.

Processing Steps

  • The Format text with Markdown node cleans the reply text for readability.
  • The OpenAI Chat Model node along with Langchain nodes classify the reply by analyzing the cleaned text.
  • The Merge data node combines formatted text with classification for clear data.
  • The Switch node routes the flow based on reply category (Interested, Unsubscribe, etc.).
  • Actions like unsubscribing or marking leads interested happen via appropriate Lemlist API nodes.

Output


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Use the Import from File option to load the workflow.

Step 2: Configure Credentials and IDs

  1. Add your Lemlist API Key in the Lemlist Trigger and other Lemlist nodes.
  2. Set your OpenAI API Key in the OpenAI Chat Model node.
  3. Add your Slack API Key and specify the channel name in the Send alert to Slack node.
  4. Update campaign IDs, lead emails, or URLs in the nodes if required.
  5. Copy and paste prompts or expressions if visible in prompt or code nodes.

Step 3: Test the Workflow

  1. Run a test reply in Lemlist to trigger the workflow.
  2. Check if Slack messages appear and leads are updated correctly.

Step 4: Activate for Production

  1. Turn the workflow ON in n8n.
  2. Ensure the webhook URL stays unchanged in Lemlist integration to keep triggers live.

For users who run self-host n8n, ensure that server resources and internet access are stable to handle all API calls smoothly.


Edge Cases and How to Fix Common Problems

No webhook response from Lemlist Trigger

The webhook URL might be missing or not correctly added in Lemlist campaign settings.
Make sure to copy the exact webhook URL from the node and paste it into Lemlist Webhook Integration.

Incorrect or missing classification by AI

Check the AI prompt in the Categorize lemlist reply node for clear instructions.
Make sure the Structured Output Parser node JSON schema fits the AI reply exactly.

Slack messages show missing data or look broken

Validate the Slack Block JSON using Slack Block Kit Builder.
Test all dynamic expressions in n8n so data fields are not empty when sending.


Customization Ideas

  • Edit the AI classification categories in the Langchain prompt to match campaign goals.
  • Add phone numbers or other lead details to Slack messages by changing the blocks JSON.
  • Try different OpenAI models in the node parameter to save cost or improve speed.
  • Add logging nodes to record reply classifications for auditing.

Summary

✓ Saves time by automating reply sorting and actions.
✓ Keeps lead lists accurate with automatic unsubscribes and interests.
✓ Sends clear alerts to sales teams via Slack.
✓ Easy to import, configure, test, and activate inside n8n.
✓ Supports editing prompts, Slack messages, and categories to fit needs.


Automate Lemlist email replies with n8n and Slack

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check that the webhook URL from the Lemlist Trigger node is copied exactly and properly configured in Lemlist campaign webhook settings.
The AI prompt may be unclear or the Structured Output Parser node schema may not match the AI response. Verify both for strict format and wording.
Use Slack Block Kit Builder to check message JSON and test dynamic data expressions inside n8n for completeness.
Yes. Replace the Slack node with other compatible messaging nodes like Microsoft Teams or Discord inside n8n and update configurations accordingly.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.