Templates / Reply to LinkedIn leads with Aimfox, OpenAI GPT-4.1-mini, and Slack

Reply to LinkedIn leads with Aimfox, OpenAI GPT-4.1-mini, and Slack

Ready for 3.0

by n8n Lab ✓ · 56 views · created 2026-05-26 · Lead Nurturing, AI Chatbot

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 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Preparing Aimfox Fields (Edit Fields (Set)): sets 9 fields: replymessage, sender.public_identifier, sendername…
  2. Get a conversation through Aimfox (HTTP Request): calls an HTTP API
  3. Splitting out messages (Split Out): splits a list into separate items
  4. Setting messages (Edit Fields (Set)): sets 2 fields: body, sender.full_name
  5. Formatting messages (Code): runs custom JavaScript code
  6. Aggregating messages (Aggregate): combines items into one
  7. AI Message Router (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  8. Message Routing (Switch): routes items into 3 branches
  9. Random number between 3 and (Code): runs custom JavaScript code
  10. Notify that the lead is not interested (Slack): uses Slack

…plus 5 more steps. See the full node list below.

Services it uses

OpenAI 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 (11)

From the author

Quick overview This workflow receives first-reply LinkedIn webhook events from Aimfox, fetches the full conversation for context, uses OpenAI to classify lead intent and draft a short reply for interested leads, sends the reply back via Aimfox, and posts…

Excerpt from n8n Lab'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.