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 works
- Runs at 9:00 on weekdays using a schedule trigger.
- Calls the HeyReagent API to sync your LinkedIn inbox, waits one minute, and fetches a list of people whose messages are waiting on you.
- Filters out conversations without a profile URL or where the last message is older than the configured maximum waiting days.
- Processes the remaining conversations one at a time, retrieving the full conversation from HeyReagent and generating a reply draft with an OpenAI chat model using your “about you” and writing style settings.
- Sends the draft to Slack with “Send it” and “Skip” buttons and waits for your approval.
- If approved, posts the reply through the HeyReagent API and waits 30 seconds before moving on to the next conversation.
Setup
- Create a HeyReagent account, connect your LinkedIn account, generate an API key, and add it to an n8n HTTP Bearer Auth credential used by the HeyReagent HTTP requests.
- Add your OpenAI API credentials and keep or change the selected chat model in the OpenAI Chat Model node.
- Add your Slack credentials, choose the target channel for the approval message, and ensure the workflow can use Slack “send and wait for response” approvals.
- Update the Settings values (how many conversations to process, maximum waiting days, and your personal and tone instructions) to match your needs.
Requirements
- A HeyReagent account with LinkedIn connected (the free plan works)
- An OpenAI key, or any other chat model node in its place
- A Slack workspace
Customization
- Change the hour in Every weekday at 9, and how many people a day in Settings (start with 5; HeyReagent allows 100 messages a day per LinkedIn account)
- Swap Slack for Gmail, Telegram or Discord: their "send and wait for response" works the same
Additional info
LinkedIn's User Agreement does not allow automated activity. A person approving every message lowers that risk and does not remove it. HeyReagent is an independent service, not made by, affiliated with or endorsed by LinkedIn.