Question
I use multiple support addresses for one brand. How do I use a specific Zendesk support address to send automatic email replies?
Answer
- Create a webhook with the details below:
-
Endpoint URL:
https://yoursubdomain.zendesk.com/api/v2/tickets/{{ticket.id}}and replaceyoursubdomainwith your account subdomain. - Request method: PUT
- Authentication: Basic Authentication
-
Endpoint URL:
- Create a trigger with the details below:
- Under Meet ALL of the following conditions, add Ticket > Ticket | Is | Created
- Under Actions, add Notify by > Active webhook | Select the webhook you created.
-
Copy and paste the code snippet below. Specify your
ContentandEmail address{ "ticket": { "comment": { "html_body": "Content", "public": true }, "recipient": "Email address" } }
- Under Meet ALL of the following conditions, add Ticket > Ticket | Is | Created
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Post any issues you have in the comments section, or try searching for a solution online. Furthermore, the use of webhooks to update tickets with the use of the Zendesk Rest API is not recommended or supported due to the risk of race conditions.