Templates / Receive and process incoming direct messages in Rocket.Chat

Receive and process incoming direct messages in Rocket.Chat

Ready for 3.0

by Wetomate AI ✓ · 30 views · created 2026-05-17 · Support Chatbot, AI Chatbot

Ready 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).

  1. Subscription.get (HTTP Request): calls an HTTP API
  2. Split Out: splits a list into separate items
  3. Unread and Direct Messages (Filter): keeps only the items that match a condition
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. IM.Messages (HTTP Request): calls an HTTP API
  6. Split Out: splits a list into separate items
  7. Only Users Prompt (Filter): keeps only the items that match a condition
  8. Sort: sorts the items
  9. Get last (Code): runs custom JavaScript code
  10. Mark as Read (HTTP Request): calls an HTTP API (POST)

…plus 1 more step. See the full node list below.

Services it uses

RocketChat

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)

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…

Excerpt from Wetomate AI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.