Discourse Canned Replies

Summary: Canned replies allows staff members to create and save replies for repeated use, saving you a lot of time typing and posting the replies you post more frequently.

:link: GitHub: https://github.com/discourse/discourse-canned-replies
:arrow_right: Install: Follow the plugin installation guide.

Features

To use the canned replies you must first open the reply composer and click the extras button.

You’ll then be presented with the insert canned reply modal where you can create new replies and browse, use or edit existing ones.

Configuration

Pre-filled Variables

Canned Replies also now supports variables

Example:

Hi %{reply_to_username,fallback:there},

...

Regards,
%{my_name}

If the reply_to_username is not available, the canned reply will be:

Hi there,

...

Regards,
Arpit Jalan

Here are the available variables for canned reply:

  • my_username
  • my_name
  • original_poster_username
  • original_poster_name
  • reply_to_username
  • reply_to_name
  • last_poster_username
  • reply_to_or_last_poster_username.

All the above variables supports fallback text and will strip out the variable if fallback is not specified and the variable can’t be replaced.

Both canned reply title and body supports variable replacement.

Notes:

  • When creating new replies, the content text is automatically set as the current composer content.
  • The Remove button is in the Edit panel.
  • The replies list has one reply by default which is added whenever the list is empty.

CHANGELOG

  • Add new bullets when major features are committed here

TODO

  • Populate the title when creating a new topic
  • :white_check_mark: Add variables that will automatically be replaced when the reply is used, for example: @username or @op
70 Likes

Hey guys

we had the idea to open up canned replies to some of our tl4 users. Since they are long term members, they are getting annoyed by evergreen questions since they always have to create replies for them from scratch.

Since in their replies they point to some faq or beginner resources, it makes sense to give partial access to canned replies. That removes a huge pain for them.

From backend perspective it would be sufficient for our use case to mark specific canned replies as “moderator only” so that they are hidden from tl4.

What are your thoughts on that?

7 Likes