Skip to content

Rocketchat

Node: rocketchat · Full type: n8n-nodes-base.rocketchat · Version: 1

Credentials

rocketchatApi (alias: @rocketchat)

CREDENTIAL @rocketchat = rocketchatApi "My Rocketchat"

Operations

Resource: chat

postMessage

Parameter Type Default Details
channel string "" required
text string ""
jsonParameters boolean false
options collection {} keys: alias, avatar, emoji
attachments collection {} keys: color, text, ts, thumbUrl, messageLink, collapsed, ...
attachmentsJson json ""

Parameter Details

options children:

Parameter Type Default Details
alias string ""
avatar string ""
emoji string ""

attachments children:

Parameter Type Default Details
color color "#ff0000"
text string ""
ts dateTime ""
thumbUrl string ""
messageLink string ""
collapsed boolean false
authorName string ""
authorLink string ""
authorIcon string ""
title string ""
titleLink string ""
titleLinkDownload boolean false
imageUrl string ""
audioUrl string ""
videoUrl string ""
fields fixedCollection {} groups: fieldsValues

Example

NODE "rocketchat" @rocketchat AS "Rocketchat" {
  resource: "chat",
  operation: "postMessage",
  channel: {{ $json.channel }}
}