I’m building an automation in n8n that listens for new LinkedIn messages and drafts a reply using GPT, which I then send to Slack for approval.
Right now, the flow works well, but there’s one important upgrade I’m trying to achieve:
I want the workflow to wait for a few minutes after someone messages me, collect all the messages they’ve sent in that window, and then generate one smart reply using all of that context, instead of crafting a separate response to each message.
Thanks in advance for any guidance or examples you can share!
I’m happy to share my existing workflow JSON if it helps.
Other details:
Self-hosted n8n (Docker)
Slack + GPT used in the workflow
No database connected externally — just built-in storage