Skip to content

Mattermost 节点#

¥Mattermost node

使用 Mattermost 节点自动化 Mattermost 中的工作,并将 Mattermost 与其他应用集成。n8n 内置支持 Mattermost 的多种功能,包括创建、删除和获取通道和用户,以及发布消息和添加表情。

¥Use the Mattermost node to automate work in Mattermost, and integrate Mattermost with other applications. n8n has built-in support for a wide range of Mattermost features, including creating, deleting, and getting channels, and users, as well as posting messages, and adding reactions.

本页列出了 Mattermost 节点支持的操作列表以及更多资源的链接。

¥On this page, you'll find a list of operations the Mattermost node supports and links to more resources.

Credentials

请参阅 Mattermost 凭证 以了解有关设置身份验证的指导。

¥Refer to Mattermost credentials for guidance on setting up authentication.

This node can be used as an AI tool

This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.

操作#

¥Operations

  • 通道

¥Channel

  • 将用户添加到通道

    ¥Add a user to a channel

  • 创建新通道

    ¥Create a new channel

  • 软删除通道

    ¥Soft delete a channel

  • 获取通道成员页面。

    ¥Get a page of members for a channel

  • 恢复软删除的通道

    ¥Restores a soft deleted channel

  • 搜索通道

    ¥Search for a channel

  • 获取通道统计信息

    ¥Get statistics for a channel

  • 消息

¥Message

  • 通过在数据库中将帖子标记为已删除,实现软删除。

    ¥Soft delete a post, by marking the post as deleted in the database

  • 向通道发布消息

    ¥Post a message into a channel

  • 向通道发布临时消息

    ¥Post an ephemeral message into a channel

  • 回复

¥Reaction

  • 对帖子添加反应。

    ¥Add a reaction to a post.

  • 从帖子中移除回复

    ¥Remove a reaction from a post

  • 获取对一个或多个帖子的所有反应

    ¥Get all the reactions to one or more posts

  • 用户

¥User

  • 创建新用户

    ¥Create a new user

  • 通过归档用户对象来停用用户并撤销其所有会话。

    ¥Deactivates the user and revokes all its sessions by archiving its user object.

  • 检索所有用户

    ¥Retrieve all users

  • 通过邮箱获取用户

    ¥Get a user by email

  • 通过 ID 获取用户

    ¥Get a user by ID

  • 邀请用户加入团队

    ¥Invite user to team

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Mattermost 文档

¥Refer to Mattermost's documentation for more information about the service.

What to do if your operation isn't supported#

If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

  1. In the HTTP Request node, select Authentication > Predefined Credential Type.
  2. Select the service you want to connect to.
  3. Select your credential.

Refer to Custom API operations for more information.

通道 ID 字段错误#

¥Channel ID field error

如果你不是系统管理员,可能会收到错误提示:从服务器加载参数选项时出现问题:“Mattermost 错误响应:你没有相应的权限。在“通道 ID”字段旁边。

¥If you're not the System Administrator, you might get an error: there was a problem loading the parameter options from server: "Mattermost error response: You do not have the appropriate permissions. next to the Channel ID field.

请求系统管理员授予你 post:channel 权限。

¥Ask your system administrator to grant you the post:channel permission.

查找通道 ID#

¥Find the channel ID

要查找 Mattermost 中的通道 ID:

¥To find the channel ID in Mattermost:

  1. 从左侧边栏选择通道。

¥Select the channel from the left sidebar. 2. 选择顶部的通道名称。

¥Select the channel name at the top. 3. 选择“查看信息”。

¥Select View Info.