Reply bot for Discourse?

Has anyone built a bot like thing that can reply to posts if specific conditions are met (e.g. "topic in category foo, does not contain string bar)?

I have quite a few “issue” type topics in the developer community I am moderating, and 75% of my replies are just asking for software and environment information. It would be great if I could have a bot version of myself that could check with some simple rules and then create a reply to the topic if they are not met.

「いいね!」 1

Use a post template for the category?

I know it is frustrating, especially when using Discourse as a technical support forum. There are standard questions you need to ask e.g. serial number, model number, product series etc. that 90% of the posters don’t care to provide.

Maybe also consider the “Canned Answer” plugin.

「いいね!」 1

Post template doesn’t work as only ~75% of the posts need that information :confused:
Also having one makes 50% of all posts have parts of the template (not filled out) inside them :frowning:

“Canned Replies” plugin is in use, still have to 1) read the post and 2) do the mental decision then 3) click the cog 4) click the Canned Replies 5) click the search box 6) type the name of the reply I need 7) click the insert icon 8) click the “Reply” button. That gets old really fast unfortunately (which means after at least 30 minutes of doing this every morning…). :man_shrugging: (Also it is all from my account which is gives me notifications even though I only made them offer the necessary information and didn’t really reply)

But thanks for the suggestions - unfortunately I already tried both :sunny:

If you’re comfortable configuring and self-hosting your own bot software, I wrote a hubot adapter for discourse that may handle your use case.

「いいね!」 6

Not yet, but you have to start somewhere :wink:

Awesome, I don’t know anything about Hubot as well (yet), but that looks like what I was looking for.

「いいね!」 2

Maybe something similar to the Akismet plugin, but only verifies each new post based on whether the required content is there instead of sending the content to Akismet?

まず、これはシステムによって引き上げられたもので、返信するために私が掘り起こしたものではありません。
次に、OPがこのサイトでアクティブかどうかを確認しましたが、OPは19年2月14日以降姿を見せていないため、OPが返信を読むことや解決策を選択することを期待しないでください。


これは、開発中のDiscourse AI - AI Botで潜在的に解決できる可能性があります。早期アクセス権を持つ者として、ここで最初のトピック投稿のいくつかを実際に試しており、AI Botはインテリジェントで人間が読める応答を提供できますが、多くの応答は私が回答として受け入れられるものではありません。しかし、他の場所でそのような技術が開発されているのを見てきたので、AI技術はここで述べられた目標を達成する可能性があります。

「いいね!」 1

投稿に含まれる単語/フレーズに基づいて返信を投稿できる「自動応答」スクリプトがあります。それを反転させて少し拡張することはできないかと思いますが、どうでしょうか?:thinking:

これを#featureに移動しますが、かなり古いものなので、整理すべき類似の機能リクエストが他にもあるかもしれません。

「いいね!」 1

「Auto Responder」がAIで強化できると提案しているのであれば、私も完全に同意します。AI機能リクエストとして追加すべきです。最悪の場合、投稿が何もせずに放置されるだけです。最良の場合は、実装されることです。

「いいね!」 1

Rubyプログラミングの経験がある人にとっては、技術的には簡単です。:post_createdイベントに応答するプラグインを書き、次のようなコードを記述します。

DiscourseEvent.on(:post_created) do |*params|
    post, opt, user = params

    if post.raw.include "foo"
        PostCreator.create!(
             User.find_by(id: bot_id),
             topic_id: post.topic_id,
             raw: "bar",
        )
    end
end
「いいね!」 4