Discourseの自動化

:discourse2: 概要 Discourse Automation を使用すると、スクリプトとトリガーを通じてアクションを自動化できます。カスタマイズは、自動的に生成される UI を通じて行われます。
:open_book: インストールガイド このプラグインは Discore コアにバンドルされています。プラグインを個別にインストールする必要はありません。

機能

  • 複雑なワークフローの簡単な自動化
  • 特定の日時、定期的に、または特定のイベント時に自動化をトリガー
  • 自動化のオプションを指定するための自動的に生成された UI を提供

設定

自動化は、管理画面の「プラグイン」→「自動化」から作成・更新するか、/admin/plugins/discourse-automation から直接行うことができます。

利用可能なスクリプト

ガイド スクリプト トリガー 説明
:bookmark: カスタムフィールド経由でのユーザーのグループ追加 :black_small_square:定期実行
:black_small_square:初回ログイン
カスタムユーザーフィールドに基づいてユーザーをグループに追加
:bookmark: 最終確認者の追記 :black_small_square:投稿の整形後 OP の下部に「最終確認者」の機能を追加
:bookmark: 最終編集者の追記 :black_small_square:投稿の整形後 OP の下部に「最終編集者」の注記を追加
:bookmark: 自動応答 :black_small_square:投稿の編集/作成
:black_small_square:PM の作成
キーワードと関連する返信のシリーズに基づいて、対応する返信を自動的に送信
トピックの自動タグ付け :black_small_square:投稿の作成/編集
:black_small_square:PM の作成
トピックを自動的にタグ付け
トピックのクローズ :black_small_square:特定の日時
:black_small_square:停滞したウィキ
トピックを自動的にクローズ
投稿の作成 :black_small_square:定期実行
:black_small_square:特定の日時
投稿を作成
単語による投稿のフラグ付け :black_small_square:投稿の編集/作成 特定の単語を含む場合に、投稿の作成/編集時にトピックにフラグを付ける
ギフト交換 :black_small_square:特定の日時 シークレットサンタゲームの簡単な実装
グループカテゴリ通知デフォルト :black_small_square:カテゴリの作成/編集 新しく作成されたサブカテゴリに対して、グループ通知レベルを自動的に設定
バナートピック化 :black_small_square:特定の日時 トピックをバナー通知に変換
トピックのピン留め :black_small_square:特定の日時 将来のトピックのピン留めとピン留め解除
ランダム割り当て
(Assign)
:black_small_square:特定の日時
:black_small_square:定期実行
トピックをランダムに割り当て
データエクスプローラーの結果による PM のスケジュール
(Data Explorer)
:black_small_square:定期実行 データエクスプローラーのクエリ結果を含む定期的な PM を送信
チャットメッセージの送信
(Chat)
:black_small_square:イベント開始
:black_small_square:定期実行
チャンネルにチャットメッセージを送信
PM の送信 :black_small_square:最初の解決済み回答 (Solved)
:black_small_square:ユーザーバッジの付与
:black_small_square:ユーザーのグループ追加
:black_small_square:停滞したウィキ
:black_small_square:定期実行
:black_small_square:ユーザーの昇進
:black_small_square:API 呼び出し
:black_small_square:ユーザーのグループからの削除
プレースホルダーをサポートした PM を送信
メールによるユーザーの停止 :black_small_square:API 呼び出し 指定された期間、ユーザーを停止
トピックの必須単語 :black_small_square:トピック トピックの投稿に指定された単語の少なくとも 1 つが含まれていることを強制
:bookmark: AI を使用した投稿のトリアージ (Discourse AI) :black_small_square:投稿の作成/編集 投稿の分類プロセスを自動化することで、フォーラム投稿の管理とモデレーションを強化
ユーザーのグローバル通知 :black_small_square:停滞したトピック
:black_small_square:最初の解決済み回答 (Solved)
特定のユーザーに対して、サイト全体にグローバル通知を表示
:bookmark: バッジによるユーザーグループのメンバーシップ管理 :black_small_square:定期実行
:black_small_square:ユーザーの初回ログイン
獲得したバッジに基づいてユーザーを自動的にグループに追加
Zapier ウェブフック :black_small_square:ユーザーの昇進
:black_small_square:ユーザーのグループ追加
:black_small_square:ユーザーバッジの付与
:black_small_square:ユーザーのグループからの削除
Zapier ウェブフックを呼び出す

利用可能なトリガー

性質上、各スクリプトは特定のトリガーのみをサポートすることに注意してください。例えば、投稿の内容を強制するスクリプトが、ユーザーがグループに追加されたときにトリガーされることは意味がありません。

利用可能なすべてのトリガーは、上記の「利用可能なスクリプト」テーブルに記載されています。

ほとんどのトリガーは自明ですが、いくつかはもう少し詳細な説明が必要かもしれません。

トリガー 説明
投稿の整形後 投稿が表示用にレンダリングされた後にトリガー
API 呼び出し 特定の API エンドポイントが呼び出されたときにトリガー
停滞したウィキ ウィキが一定期間編集されていないときにトリガー
停滞したトピック トピックが一定時間返信されていないときにトリガー
トピック トピックに返信がなされたときにトリガー

他のトリガーについて不明な点がございましたら、お気軽に下記でご質問ください。:slight_smile:

さらに多くのスクリプトとトリガーが登場予定です!

カスタム自動化

カスタム自動化を作成することもできます。:partying_face: 詳細については、開発者ガイドをご覧ください - Create custom Automations


:discourse2: 当社のホスティングをご利用ですか?このプラグインは、Business プランと Enterprise プランで利用可能です。Automation | Discourse - Civilized Discussion

「いいね!」 75
Are there any examples "in the wild" of interesting things the Discourse Automation plugin can do?
Creating bot on discourse
An 'add to group' script for the Discourse Automation
Sending a private message automatically to new users?
Trigger an email to all users periodically with a pre-defined message or link
Choose groups and watched categories on signup
Users self-select Category on Registration... is it possible?
A Bot to match random users?
Prevent users from moving topics in other categories
Ability to add multiple topic timers
Can discourse delete archived posts automatically and accept registration without email?
Add users to groups on signup
Webhook - TL Demotion
Discobot Type Message Automation
Future pin topics! (feature request)
Linked topics (splitting and managing megatopics)
When a thread is too important to lose
Welcome message
Creating an automated message upon successfully answering to a topic
Unlist or archive a post when it has no reply per category
Trust Level Wishlist Items
How to change owner of invite links?
Voting plugin requirements
No errors, instance not coming back up after rebuild
How to set a welcome email to be sent as soon as a user signs up?
Automatic Messaging
Can I send message to who had the special badge automatically?
How to integrate Discourse Gamification with an external system (redeem and award points)
Limiting Subscription Length
Teach Discobot?
Can watching a category watch all its subcategories as well?
Restricting users to join any one private group
Trust level freeze
Onboarding course?
Chat Auto-responder?
Endorsement Prompts
What if badges could optionally synchronize group membership?
Convert a category to private and add users to a specific group with access
Is there a component so when a topic is marked as Solved, the topic gets locked and a custom message is posted with it?
Setting up spam detection in your community
Creating a custom Automation
Exclude certain categories from the Trust Levels
Query to create some groups based on activity
500 error using automation plugin
Pie-in-the-sky idea: arbitrary automation scripts via docker image
How can I set up invites by members so admins control what invitees see?
Default Tag for specific Categories
How to respond to automatic topics with AI
Pin on certain days
Discourse AI - AI triage
Restrict users to post certain words per category
Plugin or other option to require a post and a like?
Gamification beyond Leaderboard
Configuring automatic post review triggers
Is it possible to moderate all personal messages sent between users?
Where would I find documentation on auto-bumping?
Alternative sign up pathways
A Plug-In to convert Discourse Forum Discussions into Clear Proposal Revisions with Community-Sourced Justifications
Bug Report: "Auto Tag Topic" in Discourse Automation — Link Detection Not Working, Onebox Triggers Image
Mandatory Topic Timers for all topics in a category
Can no longer create global banners from restricted categories
How to generate AI replies for forum topics using Persona
Discourse AI - AI triage using Agent
Is there a way to schedule the creation of a topic? And to schedule a reply to someone else's topic?
Is there a way to schedule the creation of a topic? And to schedule a reply to someone else's topic?
Topic ID as a variable?
Automation script: Move topic on close
Can I send an automated welcome message to all new users?
Allow bumping for topics with zero replies
Customizing trust level promotion messages for new users
Setting up automated admin notice alerts
Discourse AI - Periodic summary reports
Changing automated Personal Message text
Category Exclusion (Blacklist) for Automation Triggers
"Triage posts using AI" script of "Automation" plugin always includes image data in request
"Needs Approval" review items from “Triage posts using AI” script of “Automation” plugin not visible to moderators
Advice on a support forum
Welcome message
Setting up toxicity detection in your community
Automated tagging when topic is created
Discourse Chat Integration
Email-in Filtering or Multiple Emails per Category/Group
Unanswered topic notification
Autoresponder (after 15 minutes) when someone joins my discourse
2.8.0.beta3: User-selectable Avatar Flair, Last Topic Visit Indicator, Native File Picker, and more
Add timer to banner topics
Agree to additional terms before joining group
@ mentioning every community members
Reconciling Discourse Chat with other Community Chat Tools like Discord
Send Promotion PMs
Groups for Users
Bulk mark messages and posters as spam
How to automate messages
Automatically move topic category after topic close
Bringing Icebreakers into Discourse
How are `system_messages.welcome_user.*` values used?
Adding tags to topics created with Discourse Embed feature?
Discourse AI - Periodic summary reports
Automatically delete users flagged by system?
How to create autoresponder using automation
Select a group when registering?
Make topic a global banner for n period of time when created in a category
Group based on Custom Field
Looking for help posting automating data explorer reports to my forum
Automatically Assigning Titles Based on Trust Level in Discourse
Reply bot for Discourse?
PM auto responder
Has anyone created a custom Automation?
Create custom Automations
Has anyone experimented with using the usual "Lounge" category with trust level 2
How to schedule posts (not topics)?
Automate post creation on Discourse with multiple users
Customise text for TL3 promotion PM
Choose groups and watched categories on signup
Grant Badge when user visits link
Discourse Subscriptions with Thrive Cart
Can I send message to who had the special badge automatically?
Automatic and periodic PMs for new users
Invitation Links are Only Working for Non-existing Users & Breaking Our Current Implementation
Add members of trust_level_3 to another group and remove them once they lose the trust_level_3
Webhooks plugin
Registration for non-Facebook Users
Membership anniversary
How to add all members in a new group?
New user alerts
An 'add to group' script for the Discourse Automation
Daily Summary Feedback
Watched Words Reference Guide
Can a user block a user group?

참고로, 기존 자동화와 해당 트리거 전체를 표로 정리하여 OP를 업데이트했습니다. :+1:

(가이드도 더 추가하고 싶습니다. ‘사용자를 그룹에 추가…’ 가이드가 혼자서는 조금 외로워 보입니다 :slight_smile:)


Setting up the ‘Append last edited by’ automationSetting up the 'Append last checked by' automation 에 대한 몇 가지 워크스루가 추가되었습니다. :tada:

그리고 새로운 스크립트, 뱃지를 통한 사용자 그룹 멤버십이 추가되었습니다. :partying_face: 이 스크립트는 따끈따끈한 신상이므로 사용해 보시고 결과를 알려주세요. :+1:

「いいね!」 12

今、私はとてもとても…愚かではないですが、それに近い気分です。自動化はどこで構築できますか?プラグインの下では、自動化を有効または無効にすることしかできません。

「いいね!」 3

プラグインを有効にすると、ここに新しい項目が表示されるはずです。

表示するにはページを更新する必要がある場合があります。

「いいね!」 3

そして今、私は本当に愚かに感じています🤦‍♂️

ありがとうございます。

「いいね!」 1

私も以前それで詰まりました :slight_smile:

このトピックへの返信は、30日後に自動削除されるように設定した方が良いでしょう。少なくともこの返信は。

「いいね!」 2

official プラグイントピックでは、もはやそのようなことは行っていません。トピックタイマーによって多くの有益な情報が失われてきました。現在では、手動でキュレーションし、重要な議論を個別のタグ付きトピックに分割しています(また、最初から個別のトピックを開始することを推奨しています)。:+1:

「いいね!」 18

投稿が新しいトピックに分割されました:解決済みトピックを自動的に閉じ、テンプレート応答を投稿する

:information_source: Discourse Automation は Discourse コアにバンドルされたため、このプラグインを個別にインストールする必要はなくなりました。 :partying_face:

:discourse2: 当社でホストされていますか? この変更はあなたには一切影響しません。 :+1: Business または Enterprise プランをご利用の場合、このプラグインを引き続きお楽しみいただけますのでご安心ください。

「いいね!」 6

カテゴリを変更できる自動化スクリプトはありますか?より柔軟な「スケジュール公開」システムに使用したいと考えています。

スクリプトは次のような動作を想定しています。

  • 定期的に実行され、
  • 特定のカテゴリ内のトピックで、返信に何らかのマーカーがあるもの(例:「解決済み」または「返信に「公開」のような特定のテキストが含まれている」)を確認します。
  • その返信の日付(または「解決済み」ステータス)が指定されたオフセット(例:昨日、または1週間前)よりも古い場合、
  • すべての返信を削除し、
  • 指定されたカテゴリに移動し、
  • オプションで、設定可能なタグを追加します。

より高度なバージョンでは、トリガーとなる返信の日付/時刻を探し、その日付/時刻を過ぎていれば公開します。

また、ターゲットカテゴリ(スクリプト設定で許可されるターゲットカテゴリを指定)や、タグも探すことができます。

「いいね!」 3

これは可能ですが、現時点ではこのようなものは何も存在しません。

「いいね!」 1

こんにちは、このトリガーの使用例がわかりません。PMを送信できるようですが、誰に送信できますか? Wikiは複数のユーザーが編集できるためです。ありがとうございます。

UIで誰がPMを受け取るかを決定します。

「いいね!」 1

カスタムスクリプトを作成する方法はありますか?

このトピックでは、プライベートメッセージ(PM)にモデレーションを要求する方法を探しています。

そのため、次のようなものがあると想像できます。

  • PMの作成をトリガー
  • レビューのための自動フラグ付け

可能だと思います。

ただし、開発スキルが必要になります。

「いいね!」 4

それは素晴らしいですね。リンクしたトピックのOpが、その機能がどれほど強く必要とされているかによって、スクリプトのスポンサーになることを検討するかもしれません。

迅速な対応をありがとう、Jammy。いつもながら豊富な知識です。

「いいね!」 2

こんにちは、これがどのように機能するのか理解できません。値が「はい」または「いいえ」(ドロップダウン)を取ることができるカスタムユーザーフィールドがあります。しかし、自動化を作成する際に、カスタムフィールドの名前のみが求められ、その値は求められません。カスタムフィールドの値をテストできない場合、このユーザーをグループに追加する自動化をトリガーするにはどうすればよいですか?ありがとうございます。

カスタムフィールドの値はグループ名と一致する必要があります。したがって、質問が「どちらが好きですか?」で、回答が「犬」と「猫」の場合、グループのフルネームは「犬」と「猫」でなければなりません。「犬好き」や「猫好き」と呼ぶことはできません。

リンクされたガイドにヒントがあります。

しかし、私も最初は理解できませんでした。

「いいね!」 1

わかりました、理解しました。つまり、グループ名が「はい」または「いいえ」である必要があるため、カスタムフィールドで「はい」または「いいえ」と答えるという私のユースケースは不可能ということですね… :roll_eyes:

「いいね!」 1

投稿のキーワードに基づいて「投稿の自動タグ付け」を行うことはできますか、それとも投稿タイトルですか?グループまたはカテゴリに基づいてのみ自動タグ付けできるようです。これは私のケースではあまり役に立ちません。