Gebruik Zapier om een onderwerp op de ene Discourse te configureren als een activiteitsstroom voor een andere Discourse

AI-generated summary

nathank describes using Zapier to mirror new topics from one Discourse instance into another as an activity stream. The process involves setting up a webhook in the source Discourse to capture new Posts in a specific category (Posts provide more data than Topics). A Zap then filters for posts where the Post Number is 1 and Reads is 0 — ensuring only new topics are captured, avoiding duplicates from edits. A Trust Level 4 user is created in the destination Discourse with API access, allowing posts even into closed topics. The Zap uses this API to post formatted replies into a designated topic, including custom links and metadata. Finally, the destination topic is closed to prevent manual replies. This method is useful for cross-instance topic aggregation and is supported by a helpful guide: Using the Zapier Discourse Zap Templates. Screenshots illustrate the filtering and formatting steps. This integration is ideal for administrators seeking automated, cross-instance content syndication with minimal manual intervention.

In order to show the most recent topics from one Discourse instance into another, I utilised a Zapier based integration. It takes the OP from each new topic in the category of interest and posts them as a reply in a topic wherever desired. The destination can be either the same instance or a different one.

This was extremely helpful for working this out:

The process

  1. Setup Webhook in the origin Discourse instance to catch new Posts in the appropriate category.
    • Posts gets much more data than Topics, which is helpful further down
  2. Setup Zap to catch the Webhook
  3. Filter out all except those which have a Post Post Number of 1 and a Post Reads of 0:
    • this ensures that you only catch new topics, and you don’t pick up any subsequent edits (which will give you a duplicate post)
  4. Setup a user in the receiving Discourse instance with Trust Level 4 (to enable posting despite a closed topic) and ensure it has access to the desired category. Setup an API for the user.
  5. In the Zap, use this API to post the content into the desired topic.
  6. Customise the reply, to include links and the like, such as:
  7. Close that topic to prevent others posting.
7 likes