You can use Liquid markup to create different responses in your business rules based on ticket properties. This example shows how you can modify the Notify requester of received request trigger (or any other trigger that serves the same purpose) to return a response based on your business hours.
{% if ticket.in_business_hours == 'true' %}
Hello {{ticket.requester.first_name}}
Your request (#{{ticket.id}}) has been received and is being reviewed by our support staff.
To review the status of the request and add additional comments, follow the link below:
http://{{ticket.url}}
{% else %}
Hello {{ticket.requester.first_name}}
Your request (#{{ticket.id}}) has been received and will be reviewed by our support staff during regular business hours (Monday - Friday, 8am - 6pm PST).
To review the status of the request and add additional comments, follow the link below:
http://{{ticket.url}}
{% endif %}
Using a simple if...else statement, the first response is sent if the request is received during business hours and the other is sent if it is not. The if statement tests the ticket.in_business_hours property and responds accordingly. The ticket property is in the same format that you're familiar with when it's used as a placeholder, although not contained within double curly brackets for the simple reason that it's not being used as output here but rather as part of the logic determining what will be included in the comment when it's sent to the requester as an email notification.
For more information on how Liquid markup can be used, see Understanding Liquid markup and Zendesk Support.
0 Comments
Please sign in to leave a comment.