# Zendesk Support

You can connect your Zendesk account from an Action block:

<figure><img src="/files/Ti93grV4fdGDqR1fzNyw" alt=""><figcaption></figcaption></figure>

When you click on the desired app, it will start the authentication flow to connect to your Zendesk account:

<figure><img src="/files/zJxijmYu8x8q2uBb1Ude" alt=""><figcaption></figcaption></figure>

By clicking in “Sign in to Zendesk”, a pop-up will appear:

<figure><img src="/files/Zp0Ie2gZ7ubv4pnWJLpm" alt=""><figcaption></figcaption></figure>

Fill in your account name, your email, for the API token, go to:

`https://[account name].zendesk.com/admin/apps-integrations/apis/zendesk-api/settings/tokens`

example: <https://chatlayer.zendesk.com/admin/apps-integrations/apis/zendesk-api/settings/tokens>

When the connection is established, you will be able to select it and choose between one of the following actions:zen

<figure><img src="/files/AzZAwtqFJs8AX4kHqEJV" alt=""><figcaption></figcaption></figure>

* **Create ticket:** you can create input validations in previous steps leading to the creation of the ticket and save user input into variables that will be passed to Zendesk to create the ticket.

<figure><img src="/files/t0ZwctTMt82AbYMjYvcX" alt=""><figcaption></figcaption></figure>

* **Find ticket:** the ticket number can be passed by the user and saved in the variable that you will use to access details from that ticket and possibly start an update flow.

<figure><img src="/files/Wdj8jo3N8pVO3yDNKTmi" alt=""><figcaption></figcaption></figure>

You can give feedback to the user of the bot by informing some of the values that you can find that are connected to that ticker, e.g.: “this is the ticket I found: `{apps.zendesk.find_ticket.ticket.subject}`”

* **Update ticket:**

<figure><img src="/files/PwtCuSn4WiWqMp1LE89s" alt=""><figcaption></figcaption></figure>

The updates will show as comments on the ticket:

<figure><img src="/files/8VFvnjD5dj8opOd5pKVs" alt=""><figcaption></figcaption></figure>

* **Add tags:** you can either add tags that were passed by the user (using variables from Input Validations) or add fixed tags to inform the user passed through a specific part of the bot flow.

<figure><img src="/files/y3sn1teMwOQ6Qo7m2fIX" alt=""><figcaption></figcaption></figure>

* **Find user:** you can ask users to identify themselves, and if not found, start the flow to create a user for them.

<figure><img src="/files/13HT8Q1sNk4wRwpJxs2J" alt=""><figcaption></figcaption></figure>

* **Create or update user:** if there's no user in your Zendesk account with the information that was passed in the previous step, you can create one, or ask the user to confirm/update their contact.

<figure><img src="/files/cWA3dyXn7iXH3Ca1aNi4" alt=""><figcaption></figcaption></figure>

### How to personalize the bot responses with information retrieved from the integrated App:

From the Session Data, at the bottom of your Debugger when one of the actions was completed, you can check what data is available and where and build the bot response with that data, e.g.:

“I can see the ticket `{apps.zendesk.find_ticket.ticket.id}`  is about: `{apps.zendesk.find_ticket.ticket.subject}`.”

<figure><img src="/files/mtYQEBm0iOHl2i8JtZls" alt=""><figcaption></figcaption></figure>

Now you're ready to provide the best customer support bot with Chatlayer and the Zendesk App!


---

# Agent Instructions: 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:

```
GET https://docs.chatlayer.ai/integrateandcode/app-integrations/zendesk-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
