Templates / Classify lemlist replies using OpenAI and automate reply handling

Classify lemlist replies using OpenAI and automate reply handling

Ready for 3.0

by Lucas Perret ✓ · 2,563 views · created 2024-06-10 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on Lemlist events (emails replied). Along the way it connects Lemlist, OpenAI Chat Model and Slack.

How it runs

Trigger: On Lemlist events (emails replied).

  1. Format text with Markdown (Markdown): converts between Markdown and HTML
  2. Merge: merges the data from its input branches
  3. Categorize lemlist reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  4. Route reply to the right branch (Switch): routes items into 3 branches
  5. Send alert to Slack (Slack): uses Slack
  6. Lemlist: unsubscribe (lead)
  7. lemlist - Mark as interested (HTTP Request): calls an HTTP API

Services it uses

LemlistOpenAI Chat ModelSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Who this is for This workflow is for sales people who want to quickly and efficiently follow up with their leads What this workflow does This workflow starts every time a new reply is received in lemlist. It then classifies the response using openAI and…

Excerpt from Lucas Perret's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.