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?

먼저, 이 글은 시스템에 의해 자동으로 상단으로 올린(bump) 것이며, 제가 직접 이 글을 찾아와 답변을 제공한 것이 아닙니다.
둘째, 원문 작성자(OP)가 이 사이트에서 활동 중인지 확인해 보니, OP는 2019년 2월 14일 이후로 활동 기록이 보이지 않아, OP가 답변을 읽거나 해결책을 선택할 것으로 기대하지 마십시오.


이 문제는 아직 개발 중인 Discourse AI - AI Bot으로 잠재적으로 해결될 수 있습니다. 이 기능에 대한 조기 접근 권한을 가진 사용자로서, 저는 이 AI 봇으로 실제로 첫 번째 주제 게시글에 몇 가지 시도를 해보고 있습니다. AI 봇은 지능적이고 사람이 읽기 쉬운 응답을 제공할 수 있지만, 많은 응답들은 제가 답변으로 받아들이기에는 부족합니다. 그러나 다른 곳에서 이러한 기술이 개발되는 모습을 보았기에, AI 기술은 여기에 언급된 목표를 달성할 잠재력을 가지고 있습니다.

1개의 좋아요

게시글에 포함된 단어/구문에 따라 자동으로 답변을 게시할 수 있는 ‘Auto Responder’ 자동화 스크립트가 있습니다. 확실하지는 않지만, 이 기능을 반대로 적용하고 조금 확장할 수 있지 않을까요? :thinking:

이 이슈는 Contribute > 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개의 좋아요