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.
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.
Post template doesn’t work as only ~75% of the posts need that information
Also having one makes 50% of all posts have parts of the template (not filled out) inside them
“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…). (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
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) на этом сайте. Автор не был замечен здесь с 14 февраля 2019 года, поэтому не стоит ожидать, что он прочитает любой ответ или выберет решение для этой темы.
Это потенциально можно решить с помощью Discourse AI - AI Bot, который всё ещё находится в разработке. Как один из тех, у кого есть ранний доступ к нему, я пытаюсь использовать его для первого сообщения в этой теме, чтобы посмотреть, что он сделает. Хотя AI Bot может дать умный, понятный человеку ответ, многие из этих ответов не подходят для меня как решение. Однако, увидев, как подобные технологии развиваются в других местах, я считаю, что ИИ-технологии имеют потенциал достичь цели, указанной здесь.
Есть скрипт автоматизации «Автоответчик», который может публиковать ответ в зависимости от того, какие слова или фразы содержатся в сообщении. Не уверен, но интересно, нельзя ли инвертировать эту логику и немного расширить её?
Я перенесу это в канал #feature, но запрос довольно старый, поэтому, возможно, есть и другие похожие предложения по улучшению, которые стоит объединить.
Если вы предлагаете улучшить Auto Responder с помощью ИИ, то я полностью согласен. Вам стоит добавить это как запрос на новую функцию ИИ: в худшем случае сообщение просто останется без ответа, а в лучшем — будет реализовано.
Это технически несложно для кого-то с опытом программирования на 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