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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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?

Innanzitutto, questo è stato ripescato dal sistema, non l’ho tirato fuori io per fornire una risposta.
In secondo luogo, ho verificato se l’OP fosse attivo su questo sito e l’OP non si vede dal 14 febbraio 2019, quindi non aspettarti che l’OP legga alcuna risposta o selezioni una soluzione per questo.


Questo potrebbe potenzialmente essere risolto con Discourse AI - AI Bot che è ancora in fase di sviluppo. Avendo avuto accesso anticipato, sto provando pochissimi dei post originali qui con esso per vedere cosa fa e, sebbene l’AI Bot possa fornire una risposta intelligente e leggibile dall’uomo, molte delle risposte non sono ciò che accetterei come risposta. Tuttavia, avendo visto tale tecnologia sviluppata altrove, la tecnologia AI ha il potenziale per raggiungere l’obiettivo qui indicato.

1 Mi Piace

Esiste lo script di automazione ‘Auto Responder’ che può pubblicare una risposta in base alle parole/frasi incluse in un post. Non sono sicuro, ma mi chiedo se questo possa essere invertito ed espanso un po’? :thinking:

Lo sposterò in Feature, ma è una richiesta piuttosto vecchia quindi potrebbero esserci altre richieste di funzionalità simili da riordinare.

1 Mi Piace

Se stai suggerendo che il Risponditore automatico possa essere migliorato con l’IA, allora sono pienamente d’accordo. Dovresti aggiungerlo come richiesta di funzionalità AI, il peggio che può succedere è che il post rimanga lì senza fare nulla. Il meglio è che venga implementato.

1 Mi Piace

Questo è tecnicamente facile per qualcuno con esperienza di programmazione Ruby. Basta scrivere un plugin, rispondendo all’evento :post_created, scrivere del codice come questo:

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 Mi Piace