This guide explains how to set up an auto responder using the Automation Plugin in Discourse. The auto responder can automatically reply to posts or personal messages containing specific keywords.
Required user level: Administrator
An auto responder in Discourse can automatically reply to posts containing certain keywords or phrases. This feature can help moderators and administrators focus on more complex tasks by automating responses to common queries or situations.
Summary
This guide covers:
Creating a new auto responder script
Choosing and configuring a trigger
Setting up word/answer pairs
Enabling the automation
Creating a new script
Navigate to your site’s automation’s page at example.discourse.com/admin/plugins/automation
The key is evaluated as a regex string with word boundary matching. Escape special characters like . with a backslash (e.g., \\.). You can test your Regex expressions on regex101.com using the Ruby flavor.
Use %%KEY%% in the value field as a placeholder for the detected trigger word. You can also use %%SENDER_USERNAME%% as a placeholder for the answering user’s username.
If multiple word/answer pairs match the same post, all matching responses are combined into a single reply (separated by blank lines).
Enabling the automation
Check the Enabled checkbox at the bottom of the screen
Click Update to save your changes
Automations can be saved without being enabled by leaving the Enabled checkbox unchecked.
Is it possible to limit the auto-response to the initial post for a topic? One might think that Once would do that, but (in obvious retrospect) that’s only correct if the topic is created after the automation.
So… you have a category of old discussions, and when someone replies there you get an auto-response that is not useful, but does contain information that is useful in response to a topic being created… correct?
If that is the case, unfortunately I do not think this automation currently supports that behavior. I ran through the other automations, and I think the only one that might work would be triage with AI, but that seems expensive to get the results you are looking for.
현재, 자동 응답자 자동화에서 감지된 트리거 단어를 위한 플레이스홀더로 value 필드에 %%KEY%%를 사용하는 것이 우리가 사용할 수 있는 유일한 템플릿 변수입니다.
자동 응답자 자동화에서 그룹에 DM을 보낸 사용자의 사용자 이름을 가져오는 내장 변수가 없는 것 같습니다. 이는 현재 구현의 한계로, 다른 Discourse 기능(이메일 템플릿, AI 페르소나, “DM 보내기” 자동화 스크립트 등)에는 다양한 사용자 관련 변수가 사용 가능하기 때문입니다.
이 기능이 관심 있다면, 이 자동화에 추가되었으면 하는 템플릿 변수의 유형에 대한 더 많은 정보를 포함하여 Contribute > Feature 주제를 생성해 주시기를 권장합니다. 특정 기능에 대한 관심이 많을수록 Discourse에 포함될 가능성이 높아집니다. 흥미로운 아이디어라고 생각하며, 어떤 것을 찾고 계신지 더 알고 싶습니다.
The auto responder trigger detection is designed to respond to specific regex patterns that you define in your key/value pairs. There’s no explicit feature for a “catch-all” that would trigger when no other key pairs match.
However, since the keys are evaluated as regex strings, you can create a very broad regex pattern as your last entry that would match almost any content. Something like .* would work as a catch-all regex, though this would match everything (including content that matches your other patterns).
When multiple keywords are found in a post or topic, the auto responder will respond with ALL matching responses. The responses will be posted in the same order that the key/value pairs were added or are listed in the configuration.
This means if your post contains keywords that match multiple patterns, you’ll receive multiple automated responses in the sequence they appear in your word/answer pairs list.
Oh, that’s not good. This is for our ticketing system and I would hate to spam a customer with 2 or 3 different e-mail responses when they request help.
It would be awesome if there was a setting to: Combine multiple key pair matches into one reply.
Until then I’ll go back to the original use case and put in the .* and use a unified generic response. Except that it would then need to only fire if {user} has not posted in {category} for {x} days.