Automate Lemlist Email Replies with Slack & OpenAI

This workflow automates handling Lemlist email replies by classifying responses using OpenAI and sending detailed alerts to Slack, saving time and improving response management.
lemlistTrigger
lmChatOpenAi
slack
+7
Workflow Identifier: 1707
NODES in Use: lemlistTrigger, markdown, lmChatOpenAi, outputParserStructured, merge, switch, slack, lemlist, httpRequest, stickyNote
Automate Lemlist email replies with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow watches for new email replies to Lemlist campaigns.
It reads and cleans the reply message.
Then it asks OpenAI GPT-4 to label the reply as Interested, Unsubscribe, Out of office, Not interested, or Other.
Depending on the label, it can unsubscribe the lead or mark them interested automatically.
It also sends a clear notification to a Slack channel with details of the reply.

This saves lots of manual checking time and helps teams act fast on replies.
More accurate reply handling means better leads and less mistakes.


Who Should Use This Workflow

This is for marketing teams running Lemlist campaigns who get many replies.
It helps sales or marketing people quickly know which leads want follow-up or want off the list.
No need for deep technical skill, just someone managing outreach replies.


Tools and Services Used


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

Step 1: Import the Workflow File

  1. Download the workflow file by clicking the Download button on this page.
  2. Open the n8n editor. Click on “Import from File”.
  3. Select the downloaded workflow JSON file to add it inside n8n.

Step 2: Configure Credentials and Settings

  1. In n8n, open each node needing access keys.
  2. For Lemlist nodes, enter your Lemlist API Key.
  3. In the OpenAI Chat Model node, add your OpenAI API Key.
  4. Update Slack node with the channel ID where you want alerts.
  5. If needed, change campaign IDs or emails in nodes to match your setup.

Step 3: Test the Workflow

  1. Trigger a test reply in your Lemlist campaign.
  2. Watch n8n execute and check Slack gets a correctly formatted notification.
  3. Check leads update properly in Lemlist (unsubscribe or interested).

Step 4: Activate for Production Use

  1. Switch the workflow status to Active in n8n.
  2. Verify the Lemlist webhook node is enabled and connected.
  3. Monitor the first few live replies to confirm proper functioning.
  4. Optionally check logs for troubleshooting.

If running n8n on your own server, see self-host n8n for help setting up securely.


Inputs, Processing, and Outputs

Inputs

  • New email replies from Lemlist campaigns (triggered by webhook).

Processing Steps

  • Lemlist Trigger detects replies live.
  • Markdown node cleans original reply text.
  • OpenAI Chat Model categorizes reply by reading cleaned text.
  • Structured Output Parser extracts category from AI output.
  • Merge node combines clean text with category.
  • Switch node routes depending on category.
  • For “Unsubscribe” category, Lemlist node unsubscribes lead.
  • For “Interested” category, HTTP Request marks lead interested in Lemlist.
  • All categories send formatted message to Slack.

Outputs

  • Slack channel receives clear alerts about new replies.
  • Lemlist lead status updates occur automatically.

Customization Ideas

  • Change Slack channel by editing the Slack node’s channelId.
  • Add more reply categories like “Follow-up” or “Support” by updating the OpenAI prompt and Switch node rules.
  • Include extra lead details in Slack alerts by customizing message JSON with more fields from Lemlist.
  • Switch OpenAI model to a different version if you want different balance of accuracy / cost.
  • Adjust length of reply preview in Slack by changing substring count in Slack node.

Troubleshooting Common Issues

  • No new replies triggering workflow: Check Lemlist webhook is activated and the webhook ID is correct. Test again with a fresh reply.
  • OpenAI node returns empty or invalid category: Verify your API key is valid, the prompt matches OpenAI requirements, and the output parser schema fits the expected JSON exactly.
  • Slack alert missing data or showing formatting errors: Use n8n execution debug to check data input to Slack node. Fix JSON message formatting and ensure fields exist.

Pre-Production Checklist

  • Test Lemlist webhook with real reply
  • Validate OpenAI categorization correctness
  • Confirm Slack messages display well in target channel
  • Ensure unsubscribe action only happens from correct category
  • Backup workflow JSON before deploying
  • Check Merge and Switch nodes route data properly

Deployment Guide

Make sure the Lemlist webhook is activated in both n8n and Lemlist settings.

Turn on the workflow status as Active in n8n.

Watch the first real replies come in and check Slack alerts and lead updates.

Set up logs inside n8n for any error tracking.

Review classification accuracy over time and update OpenAI prompt if needed.


Summary

✓ Saves many manual hours checking email replies
✓ Automatically sorts leads into interest and unsubscribe categories
✓ Sends quick, clear Slack alerts for team action
✓ Keeps lead data up to date inside Lemlist
✓ Lets teams respond to leads faster and more accurately


Automate Lemlist email replies with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The Lemlist Trigger node listens for new replies from Lemlist campaigns and starts the workflow when a first reply is detected.
It reads the cleaned reply text and classifies it into categories like Interested, Unsubscribe, or Out of office.
Yes, leads who reply with the Unsubscribe category are automatically unsubscribed in Lemlist.
Yes, the Slack node lets users update the channel ID to send alerts to any Slack channel.

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.