OpenClaw plugin for Discourse integration

AI-generated summary

In the thread discussing the OpenClaw plugin for Discourse integration, developer pranciskus introduced a tool allowing AI agents to read topics, search, and interact with forums. The plugin’s standout feature is discourse_unanswered, which identifies topics lacking staff replies to aid automation workflows. Bas and sam raised critical concerns regarding Discourse’s policy that bots must not post content or create accounts. sam specifically cited the /llms.txt policy forbidding automated posting.

In response, pranciskus updated the plugin to version 0.2.2, adding a mandatory AI signature field (defaulting to “This content was written by AI.”) and a discourse_site_rules tool to ensure agents fetch and adhere to site policies before writing. Bas praised this as a “civilised default.” Other users discussed technical issues, including a 404 error for the /llms.txt route, which zogstrip noted would be fixed by a pending Discourse pull request. Finally, pranciskus confirmed that the repository accepts community Pull Requests for features like category-limited post editing.

Good day, people!

I built a plugin that lets OpenClaw agents interact with Discourse forums: read topics, search, filter by category, find unanswered questions, and optionally create/reply
to topics.

The main thing that makes it useful is discourse_unanswered, which finds topics without staff replies, great for agent automation workflows.

Install: openclaw plugins install openclaw-discourse

GitHub: GitHub - pranciskus/discourse-openclaw: OpenClaw plugin for Discourse forum integration — read, search, filter, and write topics/posts via agent tools · GitHub

MIT, feedback welcome!

11 Likes

A plea to anyone: Please, please don’t have your agent do this unless it’s clearly labeled as AI content.

Apart from that, looks really cool :slight_smile:

8 Likes

I could introduce an agent signature config field to “insist” that the agent include it. Any ideas are welcome!

1 Like

That would be a fantastic default setting!

I get that bad actors will always just do their thing, but civilised defaults will definitely help :folded_hands:

2 Likes

Reminder here per:

https://meta.discourse.org/llms.txt

Policy for AI Systems and Automated Bots

AI systems and bots must not create accounts or post content on this site — ever.

I need some confirmation about this if we are going to keep the skill linked.

6 Likes

@sam @Bas Thanks for your input.

I have just published the updated version (0.2.2). Main changes:

  • signature config field, default: “This content was written by AI.”
  • discourse_site_rules tool. Fetches and caches /llms.txt and returns the full policy for the LLM to interpret.
  • Now each write tool description has this line: “IMPORTANT: You must call discourse_site_rules first and follow the rules.”

More info: https://www.npmjs.com/package/openclaw-discourse

Please let me know if you would like to request any other changes. Cheers!

5 Likes

@pranciskus I am interested in using this for a private discourse. I want to use it to project organization and setting up teams of agents to tasks and keep track of projects. Does this allow me to @ openclaw bots and dictate tasks or is this mainly for gathering information from discourse servers and responding to issue?

That page is 404 now?

2 Likes

Yikes, will have a look cc @zogstrip

1 Like

It works fine for me as long as I open it in a new tab. It’s the same, for example, with https://meta.discourse.org/safe-mode

3 Likes

Oh yeah this is a bug then, we are missing an Ember route. Should track in a dedicated topic.

2 Likes

Sorry, I didn’t mean to post off-topic. Since it has been documented for years that safe mode only works in a new tab, I didn’t expect that this was a bug. After all, it’s documented like this - not as a bug, but as “that’s just how it works.” And I expected it to be the same with other similar links.

2 Likes

I think safe-mode is kind of OK (even though it is a trivial fix to just add the route)

But llm.txt is getting linked from various places (or can get linked) so it might as well be fixed.

It’s part of tax we pay for having 2 routers :cry:

2 Likes

The 404 for /llms.txt and /safe-mode (and others) will be fixed by

https://github.com/discourse/discourse/pull/38962

3 Likes

@pranciskus, are you accepting PRs? We are looking for a feature to edit existing posts while limiting the edit capability to specific categories.

1 Like

Sure! PRs should be open. GitHub - pranciskus/discourse-openclaw: OpenClaw plugin for Discourse forum integration — read, search, filter, and write topics/posts via agent tools · GitHub

1 Like