Connecting Decagon to Zendesk for Emails
Adding Decagon to Zendesk (for emails, auto-responding to tickets, and more) can be done in a few easy steps!
Step 1: Allow Decagon to read and write to Zendesk
Head to the Settings page of your Decagon admin portal. Find the “Connect to Zendesk via OAuth” button under the header “Zendesk Emails”. Fill in your Zendesk subdomain (if your Zendesk is located at https://apple.zendesk.com
, then your subdomain is apple
).
In one click, you will be able to give Decagon permission to read and write tickets to your Zendesk using OAuth.
For those wondering, here are the specific permissions we request:
-
read - so we can read tickets and their comments
-
ticket:write - so we can generate and send responses
Step 2: Create a webhook
Decagon needs to be notified when tickets are updated so that it can respond appropriately. To notify Decagon of updated tickets:
-
Login to your Zendesk and go to the Admin page.
-
Scroll down to “Webhooks” under “Apps and Integrations” and click “Create Webhook”
-
Enter the following values:
-
Select a way to connect: Trigger or automation
-
Name: Decagon Webhook
-
Endpoint URL: https://api.decagon.ai/zendesk/event
-
Request method: POST
-
Request format: JSON
-
Authentication: None
-
-
Click “Create Webhook”
-
Next scroll to “Triggers” under “Objects and Rules” and click “Add Trigger”
-
Enter the following values:
-
Trigger name: Decagon Ticket Updates
-
Conditions:
-
Meet ANY of the following conditions
-
Ticket > Ticket Is Created (see screenshot below)
-
Ticket > Ticket Is Updated (see screenshot below)
-
-
Actions:
-
Click “Add Action”
-
Click “Notify By” > “Active Webhook” > “Decagon Webhook”
-
JSON body:
-
-
Copy
Creating a new trigger
Setting conditions for the trigger
Sending a response with a trigger
Step 3: Tell Decagon to turn on your email AI flow
Once you’ve completed the above steps let your Decagon Success Manager know that you are ready to start generating AI responses to emails via Zendesk tickets. If you need help with any of the above, send us your Zendesk subdomain and we can help you set things up manually.
Step 4: Add a “decagon” tag to all tickets you want to send to Decagon
As a final step, set up a rule to add the decagon
tag on all tickets that should be sent to Decagon (this could be all incoming tickets if you want). The moment the tag is added, our AI will begin processing the ticket and a response will be automatically sent out within a minute.