Reply to LinkedIn leads with Aimfox, OpenAI GPT-4.1-mini, and Slack
Ready for 3.0What 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.
- Preparing Aimfox Fields (Edit Fields (Set)): sets 9 fields: replymessage, sender.public_identifier, sendername…
- Get a conversation through Aimfox (HTTP Request): calls an HTTP API
- Splitting out messages (Split Out): splits a list into separate items
- Setting messages (Edit Fields (Set)): sets 2 fields: body, sender.full_name
- Formatting messages (Code): runs custom JavaScript code
- Aggregating messages (Aggregate): combines items into one
- AI Message Router (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Message Routing (Switch): routes items into 3 branches
- Random number between 3 and (Code): runs custom JavaScript code
- Notify that the lead is not interested (Slack): uses Slack
…plus 5 more steps. See the full node list below.
Services it uses
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)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Split Out
n8n-nodes-base.splitOut - Webhook
n8n-nodes-base.webhook
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…