Draft and send LinkedIn replies with OpenAI, Slack and HeyReagent
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on a schedule (cron 0 9 * * 1-5). Along the way it connects OpenAI Chat Model and Slack. It also calls api.heyreagent.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 9 * * 1-5).
- Settings (Edit Fields (Set)): sets 4 fields: howMany, maxWaitingDays, aboutYou…
- Refresh the inbox (HTTP Request): calls api.heyreagent.com (POST)
- Wait: waits 60 seconds
- Who is waiting on me (HTTP Request): calls api.heyreagent.com (POST)
- One person per item (Split Out): splits a list into separate items
- Keep the ones to answer (Filter): keeps only the items that match a condition
- Loop over people (Loop Over Items (Split in Batches)): loops over the items in batches
- Read the conversation (HTTP Request): calls api.heyreagent.com (POST)
- Draft the reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Ask me in Slack (Slack): send and wait for a reply
…plus 3 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979)
HTTP calls to: api.heyreagent.com
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack - If
n8n-nodes-base.if
From the author
Quick overview This workflow runs every weekday morning to find LinkedIn conversations awaiting your reply via HeyReagent, drafts responses with OpenAI, and sends each draft to Slack for approval before posting the approved message back to LinkedIn. How it…