Block 1 - Schedule Trigger
- Type / Role
- n8n-nodes-base.scheduleTrigger - scheduleTrigger
- Config choices
- Version 1.2
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 usef...
n8n-nodes-base.scheduletrigger, n8n-nodes-base.splitout, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.sort, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Wetomate AI.
Original n8n.io sourceUse 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 message-handling workflows inside Rocket.Chat.
This workflow runs on a schedule and checks Rocket.Chat for new unread direct messages every time-tick using the Schedule Trigger node. It then calls the Rocket.Chat subscriptions.get endpoint to retrieve the current message subscriptions and splits the returned updates into individual items for processing. Next, the workflow filters for unread direct-message conversations and loops through each matching thread one at a time. For each conversation, it loads the direct messages, extracts the relevant user messages, and selects the latest one to use as the input for the response flow.
Before replying, the workflow includes a No Operation step where you can add your own custom logic, such as cleaning the message, passing it to an AI model, applying rules, or formatting the final response. Once processing is complete, the workflow sends the reply back to Rocket.Chat using the Post a message node.
Before using this workflow, configure your Rocket.Chat connection and update the placeholder values in the HTTP Request and message nodes. You’ll need valid Rocket.Chat API credentials, your Rocket.Chat server URL, and a bot or user account with permission to read direct messages, mark conversations as read, and post replies RocketChat.
Update these nodes before publishing:
Subscription.get: set your Rocket.Chat server URL for the subscriptions endpoint
RocketChat.IM.Messages: set your Rocket.Chat server URL for the direct message retrieval endpoint
RocketChat.Mark as Read: set your Rocket.Chat server URL for the subscriptions read endpoint
RocketChat.Post a message: replace the placeholder response text with the message you want the bot to send.
You should also review the No Operation, do nothing node and add your own processing logic there if you want to transform the latest user message before replying.This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Receive and process incoming direct messages in Rocket.Chat |
|---|---|
| Complexity | advanced |
| Nodes | 18 |
| Categories | Support Chatbot, AI Chatbot |
| Author | Wetomate AI |
| Published | 17 May 2026 |
Use the JSON export at /data/workflows/15775/15775.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 usef...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.