This documentation is deprecated, please refer to http://docs.gorgias.io/ instead

What’s a template?

A template is a piece of text that can be inserted in any website input field with Gorgias, to avoid writing it manually. It can be any repetitive text you frequently write.

Here are a few examples:

Malala Yousafzai
Nobel Peace Prize 2014
Hello Jane,

Thanks for contacting us. Here are the steps to reset your password:


How to create a template?

First, go to the New Template page

  1. Click on the “G” icon to open the Gorgias menu

200 :alt: Gorgias menu



  1. Click on “New Template”. You’re in! Now let’s create your template
  2. Give a name to your template, choose a shortcut (that’s the shortcut you will type to insert it), and a body

500 :alt: Template editor



  1. Save it and you’re done!

You can now try inserting it in your favorite inbox.

You can also create templates out of text in Chrome
  1. Select the text you want to create a template out of, right click on it, and hit “Save [selected text]...”.
  2. You can now configure it and save it as explained above!

500 :alt: Template editor




If you address someone in a template, you can use a variable to avoid changing the recipient’s name everytime you insert this template.

Imagine you start a template by addressing the recipient:

Hello XXX,

And then the rest of the e-mail follows...

You can use a variable for the recipient first name. Place the selector where you want to insert it, click on “Insert Variables” and select “To: First Name”.

Now your template looks like this:

Hello {{to.first_name}},

And then the rest of the e-mail follows...

and if you write to Jane, this is what it will print when you insert it:

Hello Jane,

And then the rest of the e-mail follows...


List of variables

Here is the complete list of variables you can use:

  • To field (recipient)
    • {{to.email}}
    • {{to.name}}
    • {{to.last_name}}
    • {{to.first_name}}
  • From field (you!)
    • {{from.email}}
    • {{from.name}}
    • {{from.last_name}}
    • {{from.first_name}}
  • CC field
    • {{cc.email}}
    • {{cc.name}}
    • {{cc.last_name}}
    • {{cc.first_name}}
  • BCC field
    • {{bcc.email}}
    • {{bcc.name}}
    • {{bcc.last_name}}
    • {{bcc.first_name}}
  • {{subject}} - subject content of the message

  • {{date '<amount>' '<unit>' '<format>'}} - relative date
    • A few examples with dates (list of date formats)
      • Next week: {{date '+7' 'days' "DD MMMM"}} -> 13 December
      • Last month {{date '-1' 'months' "DD MMMM YYYY"}} -> 29 November 2015
  • {{choice 'hello, hi, hey'}} - a random choice.

  • {{domain to.email}} - Extract domain name from an email. Ex: if the recipient is contact@AWESOME-sweet-bakery.com, this variable will print “Awesome Sweet Bakery”

The power of the templates is given by the Handlebars template library.

To see the complete list of possible time formats check out momentjs formatting here.


If the variable value is missing (e.g. no First Name for the contact) the variable will be replaced with an empty string.


To add formatting to a template, you can use HTML.

If you don’t know HTML, no worries! We have a trick for you:

  • Format your template in Gmail (with links, or anything else you need)
  • Copy it here, convert it into HTML & copy the HTML code
  • Copy the HTML code in your template body, you’re good!

Adding email subject in a template

If you’re using Gorgias to send emails, you can also add an email subject in a template.

In the “New template” window, click on “Configure Fields” to show the subject field, and type in the subject here.


You can tag templates to keep your templates organized. You can find more in Tags.