> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/zendesk.md).

# Zendesk Inbound Integration

Create alerts in ilert from Zendesk tickets and vice versa — with ilert's Zendesk integration

[Zendesk](https://www.zendesk.com/) offers a range of products that streamline processes and enhance productivity for support teams, enabling them to provide more effective and personalized service experiences. The platform allows businesses to manage customer interactions across various communication channels, such as email, chat, and social media, consolidating them into a single, unified interface.

## In ilert: Create a Zendesk alert source <a href="#create-alert-source" id="create-alert-source"></a>

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **Zendesk**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

## In Zendesk: Create a Target <a href="#in-topdesk" id="in-topdesk"></a>

1. Go to Zendesk and then to **Settings -> Extensions** and click on the **Add target** button

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBJc3WYruA4KgUBmWh%2Fa_-_Agent.png?alt=media\&token=b86651b5-96fa-4f99-b086-ea84aa33052b)

2. On the next page click the **HTTP target** link

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBKPLnr4or7ADcZvp3%2Fa_-_Agent.png?alt=media\&token=8ee6c236-028d-4662-a33f-2c4b0a855b70)

3. On the next page:
4. In the **Title** section, enter a name eg. ilert
5. In the **URL** section, paste the **Webhook URL** that you generated in ilert
6. In the **Method** section, choose **POST**
7. In the **Content type** section, choose **JSON**
8. In the bottom section choose **Create target**
9. Click the **Submit** button

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBNfkRy_PCo-6lKXGz%2Fa_-_Agent.png?alt=media\&token=1946d755-47f1-438f-894f-1494d30411b8)

### Create a Trigger

1. Go to Zendesk and then to **Business Rules -> Triggers** and click on the **Add trigger** button

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBPg-2upn4WJIWu0F1%2Fa_-_Agent.png?alt=media\&token=c7c15b52-3ff1-478e-b23d-84ff4bdc2fcf)

2. On the next page:
3. In the **Trigger name** section, enter a name eg. ilert
4. In the **Category** section, choose a category, e.g. Notifications
5. In the **Meet ANY of following conditions** section, add **Ticket is created** and **Ticket is updated** rules

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBRUx7tIed8wB_Wwbk%2Fa_-_Agent.png?alt=media\&token=66a7e5df-0634-4cc3-a449-e5f32f4d79a4)

6. Scroll down to the **Actions** panel and choose the **ilert Notify target** that you created above
7. In the **JSON body** sections, paste the following object:

```javascript
{
  "id": "{{ticket.id}}",
  "title": "{{ticket.title}}",
  "description": "{{ticket.description}}",
  "via": "{{ticket.via}}",
  "status": "{{ticket.status}}",
  "priority": "{{ticket.priority}}",
  "requester_name": "{{ticket.requester.name}}",
  "group_name": "{{ticket.group.name}}",
  "assignee_name": "{{ticket.assignee.name}}",
  "account": "{{ticket.account}}",
  "link": "{{ticket.link}}",
  "latest_comment": "{{ticket.latest_comment}}",
  "latest_comment_author_name": "
{% for comment in ticket.comments limit:1 offset:0 %}{{comment.author.name}}{% endfor %}"
}
```

8. Click on the **Create** button

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MbBEjcJYwELv2Iwjsxs%2F-MbBRxyyl3pIGvHsJM_s%2FNotification_Center.png?alt=media\&token=0ddc1c69-a1ae-4268-a87b-f03345020720)

## Zendesk Incident Lifecycle

| When I create an Zendesk ticket with status... | ...then an ilert Alert...                                             |
| ---------------------------------------------- | --------------------------------------------------------------------- |
| **New** or **Open**                            | is created                                                            |
| **Pending**                                    | is created                                                            |
| **Solved** or **Closed**                       | <p>will not be created and a</p><p>400 (bad request) error occurs</p> |

| When I update an Zendesk ticket with status... | ...and the ilert alert... | ...then the/an ilert Alert...                                         |
| ---------------------------------------------- | ------------------------- | --------------------------------------------------------------------- |
| **New** or **Open**                            | does not exist            | is created                                                            |
| **Solved** or **Closed**                       | does not exist            | <p>will not be created and a</p><p>400 (bad request) error occurs</p> |
| **Pending**                                    | does not exist            | is created                                                            |
| **New** or **Open**                            | exists                    | doesn't change                                                        |
| **Solved** or **Closed**                       | exists                    | change status to **Resolved** if not already resolved                 |
| **Pending**                                    | exists                    | change status to **Accepted** if not already accepted                 |

## Additional Custom Ticket Details <a href="#faq" id="faq"></a>

You may provide an additional field for the Zendesk trigger template to render additional information into ilert alert details.

```javascript
{
  "additional_ticket_details": {
        "test": "{{ticket.title}}",
        "two": 3,
        "three": ["one", "two", "three"]
    }
}
```

The `additional_ticket_details` map's values will be displayed in a human readable format in the alert's detail section.

## FAQ <a href="#faq" id="faq"></a>

### **Will alerts in ilert be resolved automatically?**

Yes, as soon as an Zendesk Ticket is completed, the alert in ilert will be resolved automatically.

### **Can I connect Zendesk with multiple alert sources from ilert?**

Yes, simply create more Webhooks in Zendesk.

### **Can I customize the alert messages?**

No.

### Are Zendesk comments synced with ilert alerts?

Yes, if the variables `latest_comment` and `latest_comment_author_name` are provided in your Zendesk trigger JSON template the comments will be synced to ilert alerts.

## Related articles

{% content-ref url="/pages/-Mb5vZCLZHdYvrGAnBOk" %}
[Zendesk Outbound Integration](/integrations/outbound-integrations/zendesk.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/zendesk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
