n8n

How to Automate Lemlist Slack Lead Management?

Turn every email reply from your outbound campaigns into clear next steps for your team. Replies from your outreach flow into Slack, get labeled, and trigger the right follow up. Sales and marketing teams stay on top of interest, opt outs, and out of office notes.

An event from Lemlist starts the flow when a lead replies. The text is cleaned for easy reading. An OpenAI model reads the message and returns one category only from Interested, Out of office, Unsubscribe, Not interested, or Other using a structured format. A router sends each category to the right path. The Slack node posts a rich message with fields your team needs. If the lead asks to stop emails, the Lemlist unsubscribe action runs. If the lead shows interest, the workflow calls the Lemlist API to mark the lead as interested.

Setup is simple with Lemlist, Slack, and OpenAI credentials. Expect faster triage, fewer mistakes on opt outs, and quicker handoff to reps. Great for outbound teams who want instant alerts and clean record updates without switching tools.

What are the key features?

  • Starts on a Lemlist reply event and only on the first reply
  • Cleans email text so the Slack message is easy to read
  • Uses an OpenAI chat model to classify the reply into one clear category
  • Routes each category through a switch to the correct action
  • Sends a Slack block style message with helpful fields
  • Unsubscribes leads in Lemlist when a stop request is detected
  • Marks leads as interested in Lemlist through a direct API call
  • Merges the cleaned text and AI result so context and status travel together

What are the benefits?

  • Reduce manual reply triage from 60 minutes to 5 minutes per day
  • Automate 80 percent of reply sorting and routing
  • Improve opt out accuracy by 90 percent with auto unsubscribe
  • Speed lead follow up with instant Slack alerts
  • Handle 3 times more replies without adding headcount
  • Connect Lemlist OpenAI and Slack in one flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Lemlist, Slack and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Open the Lemlist Trigger node. In the credential dropdown, click Create new credential and follow the on screen steps to add your Lemlist API key from the Lemlist Settings Integrations page.
  4. Open the Lemlist Unsubscribe node and select the same Lemlist credential so the unsubscribe action can run on the correct campaign and lead.
  5. Open the HTTP Request node named mark as interested. In Authentication choose the Lemlist API credential. Confirm the URL uses the campaignId and leadEmail fields from the trigger.
  6. Open the OpenAI Chat Model node. In the credential dropdown, click Create new credential and paste your OpenAI API key from the OpenAI account page.
  7. Open the Slack node. Click Create new credential and complete the Slack authorization. Choose the Slack channel where alerts should be posted.
  8. Check the switch node routes. Make sure the values match exactly: Interested, Out of office, Unsubscribe, Not interested, and Other. Edit labels only if you also update the AI prompt and routes.
  9. Review the Markdown node. It should map the email text to a clean field named textClean that appears in the Slack message.
  10. Run a live test. Send a reply to a Lemlist test campaign. Confirm a Slack message appears with the cleaned text and category.
  11. Verify status updates. For an unsubscribe reply, confirm the lead is unsubscribed in Lemlist. For an interested reply, confirm the lead is marked interested.
  12. Troubleshoot if needed. If no Slack alert appears, confirm the Slack credential and channel. If the category is empty, check the OpenAI credential and output parser. If updates fail in Lemlist, verify campaignId and leadEmail are present in the incoming data.
  13. Turn the workflow on in n8n and monitor the first day of replies to validate paths and message formatting.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Lemlist

Sign up

Email Pro: from $55 / mo (annual) or $69 / mo; includes API access (lowest plan usable with n8n via API)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Slack

Sign up

Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.