N8n对Discourse的支持 - 自动化工具

Continuing the discussion from How to make requests to the Discourse API with Zapier:

Open source variation of Zapier and IFTTT, similar to Node-Red and TriggerHappy, which is easy to use and currently supports about 150 apps. Could be a useful way to automate posting to a particular topic / category / group or perhaps sending custom notifications. Linked site includes all documentation for writing custom integrations. Curious on potential ways to implement this with Discourse.

n8n.PNG

4 个赞

Does it currently support discourse?

Is there a particular thing that you’d like to do with it?

1 个赞

I was curious on what others think… my mind has been concerned with chat integrations based on tags triggering actions, and groups moderating things.

Looking over n8n current integrations, a few things come to mind. This post on integrating IFTTT is really helpful for triggering Posts, Topics and PM’s.

It would be awesome if a trigger could also relate to tags.

Integration might currently allow:

  • Custom Chat Notifications to unsupported services
  • Custom RSS feeds
  • Migrate Trello cards / boards to Discourse
  • Federate Posts, Topics, PM’s to Mastodon / Pleroma / ActivityPub
  • Creation of a particular Topic triggers a new chat room to be opened in Matrix and linked back as a Post.
  • Creation of a Topic on my Discourse causes the Topic to be posted on your Discourse as well.

One of the most interesting aspects of automation is it allows 2-way communication. Trello could be running in addition to the Kanban component on Discourse, continuously communicating. Or a conversation mirroring between Slack and Discourse. Hope this helps get the ideas flowing.

1 个赞

Big thanks to Harshil! You may now use:

category, user, user group, group, user post
 Create
Create a category
Get All
Get all categories
Update
Update a category 
 Add
Create a user to group
Remove
Remove user from group
 Create
Create a user
Get
Get a user
Get All
Get all users 
 Create
Create a post
Get
Get a post
Get All
Get all posts
Update
Update a post 
 Create
Create a group
Get
Get a group
Get All
Get all groups
Update
Update a group 
2 个赞

一个非常有趣的做法是,将 Discourse 上的活动信息传输到 Mautic,以识别在 Discourse 上投入精力最多的用户。例如,开设新主题或回复将导致此信息传输到 Mautic。

我知道 N8N 可以做到这一点。我很快就会开始研究这个工作流,因为我们将淘汰 Mailerlite,并计划尽快集成和简化我们的沟通。

使用 n8n 的一个明显方法是结合 Discourse 现有的 RSS feed。

我使用 RSS 来设置一个主动搜索,以查找我在不同平台上感兴趣的术语。RSS 是几乎所有平台都支持的协议,或者可以被翻译成 RSS(例如 rss-bridge)。

看起来有人为 Discourse 构建了一个 n8n 节点,所以使用起来可能相当容易。正如文档所述,如果你期望的 API 调用不受支持,如果你知道自己在做什么,你总是可以切换到 HTTP 节点并进行 REST 调用

我曾使用 n8n 进行营销自动化,我认为它是一个相当不错的工具。我很高兴它是开源的,我认为这使得拥有你的知识产权的理由更加充分,即不要在可能面临费率变更和任意取消平台资格的专有平台上构建你的大部分业务逻辑。所以,这可能与 Discourse 社区中的一些人有共同的看法。