A mindbogglingly simple integration of Discord and Zendesk (using Webhooks)
This build was compiled on Windows 10 x64 using Visual Studio 2017. It was deployed and tested on a Ubuntu 18.04 LTS x64 virtual machine running .NET Core, nginx, and Let's Encrypt (using certbot).
- Make sure to follow this guide on how to properly configure and host the ASP.NET Core application. It is also recommended that you configure Let's Encrypt SSL within nginx.
- Make note of the URL of your webserver as we will need it later.
- In your selected server, open up
Server Settings
. - Click on
Webhooks
and selectCreate Webhook
. Edit
your Webhook with your desired settings.
- Copy the
Webhook URL
and update yourWebHookUrl
inappsettings.json
- Login as an administrator and head over to the
Extensions
section(/agent/admin/extensions
) and click onadd target
. - Select
HTTP Target
, give it a title, set theUrl
to your Web Server's hostname. Append/api/ticket
e.g. ifhttps://localhost
was your web server's hostname, it would look like:https://localhost/api/ticket
- Set the
Method
toPOST
and theContent type
toJSON
- Select
Create target
and hitSubmit
- Navigate under
BUSINESS RULES
and findTriggers
. - Click on
Add trigger
- Give your trigger a name and a description.
- Under the section
Meet ANY of the following conditions
set the following options - Under
Actions
selectNotify target
and then the name of your new trigger - Set the JSON body to the following:
{
"status": "{{ticket.status}}",
"id": "{{ticket.id}}",
"updated": "{{ticket.updated_at_with_timestamp}}",
"title": "{{ticket.title}}",
"requester": "{{ticket.requester.name}}",
"comment": "{{ticket.latest_comment}}",
"sender": "{{current_user.name}}",
"url": "{{ticket.link}}"
}
- Click
Save
. Update or open a new ticket and check your support channel on Discord!