Customize email notifications in Chatwoot
Guide to customizing email notification templates in self-hosted Chatwoot installations
Chatwoot allows customization of email notifications in self hosted installations.
To customize the email notifications, follow the instructions below. Inorder to update the content, you have to add a new template in the Database, here is how you can do it.
1. Login into the rails console.
For Heroku installation, login to your account, go to the app. Click on “More”, select “Run Console” from the dropdown menu. Enter the following command and hit run
For Linux VM installations, go to directory where Chatwoot code is available. If you have used the installation script, the default path is /home/chatwoot/chatwoot
. Run the following command.
2. Create a new template for the emails. Execute the following commands.
Variables
Template would receive 3 variable
user
- Use{{ user.name }}
to get the username.conversation
- Use{{ conversation.display_id }}
to get the conversation IDaction_url
- This is the URL of the conversation.
Default content
Default content of the above template is as shown below
1. Conversation Assignment
2. Conversation Creation
We use Liquid templating engine internally, so all valid operators can be used here.