Automazione Discourse

:discourse2: Summary Discourse Automation lets you automate actions through scripts and triggers. Customisation is made through an automatically generated UI.
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Features

  • Easy automation of complex workflows
  • Triggers automations at specific dates, periodically, or on specific events
  • Provides automatically generated UIs to specify options for your automation

Configuration

Automations can be created and updated from Admin → Plugins → Automations, or directly from /admin/plugins/discourse-automation.

Available scripts

Guide Script Trigger(s) Description
:bookmark: Add user to group through custom field :black_small_square:Recurring
:black_small_square:First logged on
Adds a user to a group based on a Custom User Field
:bookmark: Append last checked by :black_small_square:After post cook Adds a ‘last checked by’ function to the bottom of the OP
:bookmark: Append last edited by :black_small_square:After post cook Adds a ‘last edited by’ note to the bottom of the OP
:bookmark: Auto Responder :black_small_square:Post edited/created
:black_small_square:PM created
Given a series of keywords and associated replies, automatically respond with the corresponding reply
Auto Tag topic :black_small_square:Post created/edited
:black_small_square:PM created
Automatically tag a topic
Close topic :black_small_square:Point in time
:black_small_square:Stalled wiki
Automatically close a topic
Create Post :black_small_square:Recurring
:black_small_square:Point in time
Creates a post
Flag post on Words :black_small_square:Post edited/created Flag a topic on creation/edition if it contains specific words
Gift Exchange :black_small_square:Point in time Simple implementation of the Secret Santa game
Group Category Notification Default :black_small_square:Category created/edited Automatically sets a group notification level for newly created subcategories
Make banner topic :black_small_square:Point in time Convert a topic into a banner notice
Pin Topic :black_small_square:Point in time Pin and Unpin a topic in the future
Random Assign
(Assign)
:black_small_square:Point in time
:black_small_square:Recurring
Randomly Assign a topic
Schedule a PM with data explorer results
(Data Explorer)
:black_small_square:Recurring Send a regular PM with the results of a data explorer query
Send Chat message
(Chat)
:black_small_square:Event started
:black_small_square:Recurring
Sends a Chat message to a Channel
Send PMs :black_small_square:First accepted solution (Solved)
:black_small_square:User badge granted
:black_small_square:User added to group
:black_small_square:Stalled wiki
:black_small_square:Recurring
:black_small_square:User promoted
:black_small_square:API call
:black_small_square:User removed from group
Send PMs with support for placeholders
Suspend User By Email :black_small_square:API call Suspend a user for a specified duration
Topic required words :black_small_square:Topic Enforce the presence of at least one of the specified words in the posts of a topic
:bookmark: Triage posts using AI (Discourse AI) :black_small_square:Post created/edited Enhance the management and moderation of forum posts by automating the process of classifying posts
User Global Notice :black_small_square:Stalled topic
:black_small_square:First accepted solution (Solved)
Displays a global notice on the site for a specific user
:bookmark: User Group Membership through Badge :black_small_square:Recurring
:black_small_square:User first logged in
Automatically add users to a group based on their earned badges
Zapier webhook :black_small_square:User promoted
:black_small_square:User added to group
:black_small_square:User badge granted
:black_small_square:User removed from group
Calls a Zapier webhook

Available triggers

Note that due to their nature, each script only supports certain triggers. For example it wouldn’t make sense for a script enforcing the content of a post to trigger when a user is added to a group.

All of the available triggers are mentioned in the “Available scripts” table above.

Most of the triggers are self-explanatory, but here are a couple that may need a little more detail:

Trigger Description
After post cook Triggers after a post is rendered for display
API Call Triggers when a certain API endpoint is called
Stalled wiki Triggers when a wiki hasn’t been edited for a while
Stalled topic Triggers when a topic has not received replies after a certain time
Topic Triggers when a reply is made to a topic

If you need any clarification on any others please feel free to ask below. :slight_smile:

More scripts and triggers to come!

Custom Automations

You can also create custom Automations. :partying_face: Check out our developer’s guide for more information - Create custom Automations


:discourse2: Hosted by us? This plugin is available on our Business and Enterprise plans. Automation | Discourse - Civilized Discussion

Last edited by @tobiaseigen 2025-07-16T20:41:38Z

Check documentPerform check on document:
73 Mi Piace

Tieni presente che ho aggiornato l’OP con una tabella di tutte le automazioni esistenti e i relativi trigger. :+1:

(Spero anche di aggiungere altre guide, dato che quella per ‘Aggiungi utente al gruppo…’ sembra un po’ sola da sola :slight_smile:)


Sono stati aggiunti un paio di altri walkthrough per Setting up the ‘Append last edited by’ automation e Setting up the 'Append last checked by' automation. :tada:

E un nuovissimo script, Appartenenza ai gruppi utente tramite badge. :partying_face: Quello è appena uscito, quindi se lo provi, facci sapere come ti trovi. :+1:

10 Mi Piace

Ora mi sento molto molto… non stupido, ma quasi. Dove posso creare automazioni? Sotto plugin posso solo abilitare o disabilitare Automazione.

3 Mi Piace

Dopo aver abilitato il plugin, dovresti vedere un nuovo elemento qui:

Potrebbe essere necessario aggiornare la pagina per vederlo.

3 Mi Piace

E ora mi sento davvero stupido :man_facepalming:

Grazie.

1 Mi Piace

Ci sono rimasto bloccato anch’io prima :slight_smile:

Le risposte a questo argomento dovrebbero probabilmente essere impostate per l’eliminazione automatica dopo 30 giorni. Almeno questa risposta dovrebbe esserlo.

2 Mi Piace

Non lo facciamo più per gli argomenti dei plugin official. Troppe buone informazioni sono andate perse a causa dei timer degli argomenti. Ora li curiamo manualmente e separiamo qualsiasi discussione significativa in argomenti separati con tag (oltre a incoraggiare le persone ad avviare discussioni separate fin dall’inizio). :+1:

18 Mi Piace

Un post è stato diviso in un nuovo argomento: Automazione per chiudere argomenti risolti e pubblicare una risposta modello

:information_source: Discourse Automation è ora incluso nel core di Discourse, quindi questo plugin non dovrà piÚ essere installato separatamente. :partying_face:

:discourse2: Ospitato da noi? Questa modifica non ti influenzerĂ  in alcun modo. :+1: Se sei sui piani Business o Enterprise, puoi continuare a goderti questo plugin e non preoccuparti di nulla.

6 Mi Piace

Esiste uno script di automazione che possa cambiare categoria? Vorrei usarlo per creare un sistema di “Pubblicazione programmata” più flessibile.

Immagino che lo script:

  • venga eseguito periodicamente e
  • controlli gli argomenti in una data categoria che hanno un certo marcatore in una risposta (ad esempio, contrassegnato come risolto o la risposta contiene un certo testo, come “PUBLISH”).
  • Se la data di quella risposta (o lo stato “risolto”) è piĂš vecchia di un dato offset (ad esempio, ieri o una settimana),
  • elimini tutte le risposte
  • sposti nella categoria data
  • opzionalmente, aggiunga tag configurabili

Una versione piÚ sofisticata potrebbe cercare una data/ora nella risposta di attivazione e pubblicare se è ora dopo quella data/ora.

Potrebbe anche cercare la categoria di destinazione in quel post (con configurazione dello script per le categorie di destinazione consentite). E per questo motivo, i tag.

3 Mi Piace

Questo è fattibile, ma al momento non esiste nulla di simile.

1 Mi Piace

Ciao, non capisco il caso d’uso per questo trigger. Sembra in grado di inviare un PM, ma a chi? Dato che una Wiki può essere modificata da diversi utenti. Grazie.

Decidi nell’interfaccia utente chi riceverà il PM.

1 Mi Piace

Esiste un modo per creare uno script personalizzato?

Questo argomento riguarda la ricerca di un modo per richiedere la moderazione dei messaggi privati.

Quindi, immagino

  • Trigger Crea PM
  • Segnalazione automatica per la revisione.

Credo di sĂŹ:

Anche se richiederebbe alcune competenze di sviluppo.

4 Mi Piace

È fantastico. Immagina che l’OP nell’argomento che ho collegato possa prendere in considerazione la sponsorizzazione di uno script a seconda di quanto fortemente necessiti di quella funzionalità.

Grazie Jammy per la rapida risposta. Come sempre, una fonte di conoscenza.

2 Mi Piace

Ciao, non capisco come funzioni, ho un campo utente personalizzato che può assumere due valori Sì o No (menu a discesa). Ma quando creo l’automazione mi viene chiesto solo il nome del campo personalizzato, non il suo valore. Come posso attivare l’automazione per aggiungere questo utente al gruppo se non posso testare il valore del campo personalizzato? Grazie.

Il valore del campo personalizzato deve corrispondere al nome del gruppo. Quindi, se la tua domanda è “cosa ti piace di più?” E le tue risposte sono “cani” e “gatti”, i nomi completi dei gruppi devono essere “cani” e “gatti”. Non puoi chiamarli “amanti dei cani” e “amanti dei gatti”

C’è un suggerimento nella guida collegata

ma all’inizio non avevo capito nemmeno io.

1 Mi Piace

Ok, ho capito ora, quindi il mio caso d’uso non è possibile: avere un campo personalizzato a cui puoi rispondere Sì o No perché il nome del gruppo dovrebbe essere Sì o No… :roll_eyes:

1 Mi Piace

Posso “Taggare automaticamente i post” in base alle parole chiave nel post o nel titolo del post? Sembra che possa taggare automaticamente solo in base al gruppo o alla categoria, il che non è molto utile nel mio caso.