Receive and process incoming direct messages in Rocket.Chat
Ready for 3.0Ready 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 workflow has 13 nodes and runs on a schedule (every minute). Along the way it connects RocketChat.
How it runs
Trigger: On a schedule (every minute).
- Subscription.get (HTTP Request): calls an HTTP API
- Split Out: splits a list into separate items
- Unread and Direct Messages (Filter): keeps only the items that match a condition
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- IM.Messages (HTTP Request): calls an HTTP API
- Split Out: splits a list into separate items
- Only Users Prompt (Filter): keeps only the items that match a condition
- Sort: sorts the items
- Get last (Code): runs custom JavaScript code
- Mark as Read (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. 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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Sort
n8n-nodes-base.sort - No Operation, do nothing
n8n-nodes-base.noOp - RocketChat
n8n-nodes-base.rocketchat
From the author
Description Use this workflow to automatically check Rocket.Chat for unread direct messages, process the latest user message in each thread, and send a response back to the conversation. It is useful for building automated support, AI chat, or…