Search Messages

rocketchat.search_messages
ActionChat & messagingconnection required

Calls the Rocket.Chat API with the connection's credentials.

Full-text search for messages inside one room. Rocket.Chat has no workspace-wide message search in the REST API, so a room id is required.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Rocket.Chat
Secret shape
the personal access token, or {"token": "…", "user_id": "…"}
Config it needs
base_url, user_id
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
room_id
The room id (not its name) — use rocketchat.get_channel_info to resolve one.
stringYes———
search_text
The text to look for in the room's messages.
stringYes———
count
How many messages to return. Rocket.Chat caps this at the workspace's API_Upper_Count_Limit setting.
numberNo50≥ 1—
offset
How many messages to skip before this page.
numberNo0≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "count": 50,
  "offset": 0
}

Output

One shape.

result

FieldTypeExample
messages
The matching messages, as Rocket.Chat returned them.
array—
count
How many messages this page carries.
number—
{
  "count": 0,
  "messages": []
}

See Search Messages run in a workflow.

In a technical demo we add the Rocket.Chat connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.