This background app demonstrates one approach that could be used to notify a specific agent that they have been assigned a ticket in Zendesk Support. This is achieved using notification events together with the notify REST API endpoint.
Through the use of triggers together with webhooks in Zendesk Support, the app receives a notification via the notify REST API endpoint which contains the app_id, event, body, and agent_id properties. A custom event handler receives the event, which executes the notify action to generate a notification in the agent interface. This notification will be visible only to the agent who has been assigned the ticket.
Follow these steps to get a local copy up and running.
- Zendesk Command Line (ZCLI)
- Clone the repo
git clone https://github.com/zendesk/example.git
- Package and install the app
zcli apps:create
Packaging and installing a private Zendesk app
- Create a webhook to call the notify API endpoint
Creating webhooks in Admin Center
- Create a trigger to notify the webhook when ticket assignment occurs. You will need to provide the specific app_id value of your app to the JSON body.
- Zendesk Apps Guide
- Apps Support API documentation
- Sending Notifications to an App
- ZAF notify action documentation
You can create an issue on Github, reach out in our Developer Community, or report the issue in the Zendesk Developers Slack group.