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 replaceyoursubdomain
with 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
Content
andEmail 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.
4 comments
Kina Smith
Hi,
I'd like to set up an automatic public reply for new tickets using our standard acknowledgement message. Ideally, this would leverage a macro for the message content.
Is it possible to achieve this with JSON? If not, can the entire message be written directly in JSON?
What are the steps to achieve this? Webhook and a trigger? If yes, what would the json look like?
Kina
0
Mike DR
Hi Kina!
That can be done using the same steps for using a webhook and trigger. You'll need to use this json code instead:
You would then replace the “Content” with the acknowledgement message.
Hope this helps!
0
Hunter Morison
Can this be done with SSO enabled for the org? We continue to get an authentication error here.
0
Mike DR
HeyA Hunter!
If Basic authentication isn't working, I would highly suggest using oAuth for authentication since your team has SSO enabled.
0