Discourse Canned Replies

:mega: This plugin is deprecated and won´t receive any new official updates.

Please use Discourse Templates instead.

:discourse2: Summary Discourse 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.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-canned-replies
:open_book: Install Guide How to install plugins in Discourse

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
78 Likes

In the latest release notes I see:

Templates (formerly Canned Replies)

Is the renaming more than cosmetic in the UI?

We are still testing it internally.

It will be released as new plugin because it changes how the templates (canned replies) are stored and edited and it requires running a rake task to perform the data migration.

2 Likes

Oh, that looks really nice! Looking forward to using it when it comes out. Using existing post infrastructure for editing and permissions is :brain:

Thanks for confirming that we don’t need to do any steps updating to 2.9.0.beta5!

1 Like