If you want your users to submit tickets through the Help Center (so they have to set a category or fill in specific fields, etc.). But you find that a lot of your users are starting to send in new tickets by email, bypassing the Help Center. You can set up a New Reply Trigger and Custom Email Template to automatically reject email tickets and ask users to submit via the Help Center instead.
To start you need to create an email template, go to Admin > Channels > Emails > Template and click on the add template button.
![image.png](/file.php/31024921NNPRHKXQDDQZCXG0/image.png?access_token=rypx4d-dppyflzsxw-0ea4973ea9ce3c02e907fe4d064d649974aeb5c7)
Here's an example template:
Subject:
{{ phrase('user.email_subjects.tickets_re') }}
Body:
<html>
<head>
{% include 'SendmailBundle:blocks:resources.html.twig' %}
</head>
<body>
{% include 'SendmailBundle:emails_common:email_code_top.html.twig' %}
{% include 'SendmailBundle:blocks:header.html.twig' %}
<p>Please note that all support requests must be submitted through <a href="{{ url_full('user_tickets_new') }}">our Help Center contact form</a>.</p>
<p>No ticket has been created for your issue and this email has not been read by our agents. Once you have submitted your request through the Help Center, you will be able to correspond with our agents by email as usual.</p>
{% include 'SendmailBundle:blocks:footer.html.twig' %}
{% include 'SendmailBundle:emails_common:email_code_bottom.html.twig' %}
</body>
{{ phrase('user.email_subjects.tickets_re') }} just inserts the subject of the original email with "Re:" on the front, and {{ url_full('user_tickets_new') }} is the URL of the Contact Us section of the Help Center.
Save the new template.
Next, go to Admin > Business Rules > Triggers and create the new reply trigger. We only want it to run when a user submits a ticket via email, so we use these Event settings:
![image.png](/file.php/31025379BHRYNANXCQCKTAA0/image.png?access_token=rypx49-bjjhtuktyl-30099a687f6eb23e26d94f5ff594ae3f2699c722)
We want to send an auto-response telling the user that they have to go to the Help Center.
Change the default action to Template Emails > Send Email to User. Select Create a new template and select the template you created earlier:
![image.png](/file.php/31025454CBDXRRTNXQRHAMN0/image.png?access_token=rypx4d-skxzrlwzdi-cc1cd56a1cfd49dc4b6515250024432d2a3eefc5)
Set the other options for sending the email:
![image.png](/file.php/31025462NZBQHHMWQWZWJAJ0/image.png?access_token=rypx48-vfrsdfsegr-0cfbadc14334f16b21c4d48c8a16b39d82bae1a7)
It's probably best to email just the ticket owner and not anyone who was CC'd, otherwise everybody on the original email might try to submit a ticket for the same issue.
Now we've told the user to submit via the Help Center, we want to get rid of the ticket that was created by their email.
This is easy; just add a Ticket Actions > Delete Ticket action.
Once the trigger runs, we don't want any other triggers to run afterward, so we can add a Trigger Controls > Stop Processing Triggers action.
![image.png](/file.php/31025515DASYBTWKHWQXNCP0/image.png?access_token=rypx4g-fgmaaittcp-3d2958e37ddc848332b298f28d45c267ce5c8018)
The trigger is complete. Click Create.
Now it's important to drag the trigger to the top of the trigger list, so it runs before any other triggers.
After:
![image.png](/file.php/31025579RHQZSWDAPJGSWMN0/image.png?access_token=rypx4h-mziwaysigt-b3c5d2cf844ea11870b212f71d8c864a922d857d)
Thêm nhận xét
Please log in or register to submit a comment.