디스커스 자동화

:discourse2: 요약 Discourse Automation은 스크립트와 트리거를 통해 작업을 자동화할 수 있습니다. 자동 생성된 UI를 통해 사용자 지정이 가능합니다.
:open_book: 설치 가이드 이 플러그인은 Discourse 코어에 포함되어 있습니다. 플러그인을 별도로 설치할 필요가 없습니다.

기능

  • 복잡한 워크플로우의 쉬운 자동화
  • 특정 날짜, 주기적으로 또는 특정 이벤트 발생 시 자동화 트리거
  • 자동화를 위한 옵션을 지정하기 위해 자동 생성된 UI 제공

구성

자동화는 Admin → Plugins → Automations에서 또는 /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:특정 시점 Secret Santa 게임의 간단한 구현
그룹 카테고리 알림 기본값 :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:주제 주제의 포스트에 지정된 단어 중 적어도 하나가 존재하도록 강제합니다
: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

77개의 좋아요
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?
Ability to add multiple topic timers
Prevent users from moving topics in other categories
A Bot to match random users?
Can discourse delete archived posts automatically and accept registration without email?
Webhook - TL Demotion
Future pin topics! (feature request)
Can watching a category watch all its subcategories as well?
Restricting users to join any one private group
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
Onboarding course?
Discobot Type Message Automation
Trust level freeze
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
Linked topics (splitting and managing megatopics)
How to integrate Discourse Gamification with an external system (redeem and award points)
Limiting Subscription Length
Teach Discobot?
Can I send message to who had the special badge automatically?
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
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
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
Auto-categorize topics using AI
Setting up automated admin notice alerts
Discourse AI - Periodic summary reports
New user filter by custom field and contact
Category Exclusion (Blacklist) for Automation Triggers
Tag topics using AI
Advice on a support forum
"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
Add users to groups on signup
Changing automated Personal Message text
Support formatting of flag "reason" text
AI + Automation Governance: Orchestrating Independent AI Triage Scripts
Publishing a post automatically at a set time
Welcome message
Setting up toxicity detection in your community
Automated tagging when topic is created
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
Discourse Chat Integrations
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
Looking for help posting automating data explorer reports to my forum
Automatically Assigning Titles Based on Trust Level in Discourse
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?
Chat Auto-responder?
Endorsement Prompts
What if badges could optionally synchronize group membership?

Just to note, I’ve updated the OP with a table of all the existing Automations and their accompanying triggers. :+1:

(I’m also hoping to add more guides too, as the one for ‘Add user to group…’ looks a bit lonely all by itself :slight_smile:)


There are a couple more walkthroughs added for Setting up the ‘Append last edited by’ automation and Setting up the 'Append last checked by' automation. :tada:

And a brand new script, User Group Membership through Badges. :partying_face: That one is pretty hot off the press so if you try it out, let us know how you get on. :+1:

12개의 좋아요

Now I feel myself very very… not stupid, but close. Where can I build up automations? Under plugins I can only enable or disable Automation.

3개의 좋아요

After enabling the plugin, you should see new item here:

It might require refreshing the page to see it.

3개의 좋아요

Aaand now I feel myself really stupid :man_facepalming:

Thanks.

1개의 좋아요

I’ve been stuck on that one before :slight_smile:

Replies to this topic should probably get set to auto delete after 30 days. At least this reply should.

2개의 좋아요

We no longer do that for official plugin topics. Too much good information has been lost to the topic timers. We now curate them manually and split any significant discussions into separate tagged topics (as well as encourage people to start separate topics to begin with). :+1:

18개의 좋아요

A post was split to a new topic: Automation to close Solved topics and post a template response

:information_source: Discourse Automation has now been bundled with Discourse core, so this plugin will no longer need to be installed separately. :partying_face:

:discourse2: Hosted by us? This change will not affect you in any way. :+1: If you are on the Business or Enterprise plans, you can continue to enjoy this plugin and not worry about a thing.

6개의 좋아요

Is there an automation script that can change Category? I’d like to use it to make a more flexible “Schedule Publishing” system.

I’m imaging that the script would

  • run periodically, and
  • check for topics in a given category which have some marker in a reply (like, marked as solved or reply contains certain text, like “PUBLISH”).
  • If the date of that reply (or “solved” status) is longer ago than a given offset (like, yesterday, or a week),
  • delete all replies
  • move to given category
  • optionally, add configurable tags

A more sophisticated version might look for a date/time in the trigger reply, and publish if it is now after that date/time.

It also might look for the target category in that post (with script config for allowed target categories). And for that matter, tags.

3개의 좋아요

This is doable, but nothing like this exists at the moment.

1개의 좋아요

Hi, I do not understand the use case for this trigger. It seems to be able to send a PM, but to who? Since a Wiki can be edited by several users. Thanks.

You decide in the UI who is going to receive the PM.

1개의 좋아요

Is there a way to create a custom script?

This topic the person is looking for a way to have PMs require moderation.

So I would imagine

  • Trigger Create PM
  • Automated flagging for review.

I believe so:

Though it would require some dev skills.

4개의 좋아요

That is quite cool. Imagine the Op in topic I linked might consider sponsoring a script depending on how strongly they need that functionality.

Thanks Jammy for the speedy response. As always a wealth of knowledge.

2개의 좋아요

Hi, I don’t get how this one is working, I have a custom user field which can take two values Yes or No (drop down). But when creating the automation I am asked only the name of the custom field, not its value. How do I trigger the automation to add this user to the group if I cannot test the value of the custom field? Thanks.

1개의 좋아요

The value of the custom field has to match the group name. So if your question is “what do you like more?” And your answers are “dogs” and “cats”, the full names of the groups must be “dogs” and “cats”. You cannot call them “dog lovers” and “cat lovers”

There is a hint in the linked guide

but I didn’t understand at first either.

1개의 좋아요

Ok I get it now, so my use case is not possible: having a custom field you can answer Yes or No because the group name should be Yes or No… :roll_eyes:

1개의 좋아요

Can I “Auto Tag Posts” based on keywords within the post or post title? Seems like it can only auto tag things based on group or category, which is not super useful for my case.