# Zendesk Support

You can connect your Zendesk account from an Action block:

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FUktHIcbQYtN1amwZcpCq%2Fimage.png?alt=media&#x26;token=f220304e-f9bc-4a78-8751-05fb3724b917" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FNdW8DLG3OpPRB2mpj5md%2Fimage.png?alt=media&#x26;token=f0d5841c-7209-4bef-b400-e7a6194d3f65" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FUbOFciTPoxdfkIQh8Gbw%2Fimage.png?alt=media&#x26;token=a07fd42a-083b-4775-a8b0-de8e2687b288" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FnPQpoqm5vgJBoz6vWNBb%2Fimage.png?alt=media&#x26;token=4022419f-23af-4a76-b48a-7d4156c3b657" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FECuNFihTIRljW05XZdON%2Fimage.png?alt=media&#x26;token=41482620-5e00-46d0-850e-d6f642adf3a7" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FhF2Yoc3ZSPVZlSRtuhZB%2Fimage.png?alt=media&#x26;token=e469d092-e978-4550-8af0-c6fa8cf00050" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FJXOKN0xj1IixrwcyPvqZ%2Fimage.png?alt=media&#x26;token=25fa0efd-35a2-457c-bc04-a8b0f4dd8c85" alt=""><figcaption></figcaption></figure>

The updates will show as comments on the ticket:

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F3TLLS1RvExza5xeT4Rgv%2Fimage.png?alt=media&#x26;token=1ab35f47-1169-4bb7-8251-fca4b0cb72b4" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FP8AVuovlXuYTXdBQgc4D%2Fimage.png?alt=media&#x26;token=22367852-b8f8-48f6-beb4-a23d6cf11d43" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FiLGWjLtDg9TRrm56o9j3%2Fimage.png?alt=media&#x26;token=ef8eab63-e534-43bf-8135-8ce99b3ee62e" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FAnsmKKZDP3GDpn3bRJ0b%2Fimage.png?alt=media&#x26;token=24350549-f1fb-490a-ad34-91134f9a9fe4" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FJjHN7vnOoSitr9L0NGme%2Fimage.png?alt=media&#x26;token=5aa230c8-6b1f-49bd-8cfb-5972c1165cb1" alt=""><figcaption></figcaption></figure>

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