> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Ticket in Zendesk Using AI Agent

Use the **Create a Ticket** dialog template to add Zendesk ticket management to your AI Agent. The agent can guide users through ticket creation for complex issues, during non-office hours, or when live support is unavailable.

## Overview

The process involves three steps:

1. [Link your Zendesk account](#step-1-link-your-zendesk-account)
2. [Install the Create a Ticket template](#step-2-install-the-create-a-ticket-template-for-zendesk)
3. [Train and test the dialog task](#step-3-train-and-test-the-dialog-task)

## Prerequisites

Before you start, have the following ready:

* Zendesk account credentials.
* User subdomain, email address, and API token for your Zendesk account.

***

## Step 1: Link Your Zendesk Account

1. Go to **Marketplace** in the left navigation and select **Zendesk** integration.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/marketplace_zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=3bf6d2ff73c6327895cffc99a917a5a6" alt="Marketplace Zendesk" width="1906" height="871" data-path="ai-for-service/automation/how-tos/zendesk/images/marketplace_zendesk.png" />

2. Click **Install** at the top right.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/zendesk_install.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=8edae03857555588d54d0a1e5e0839fa" alt="Zendesk Install" width="1032" height="741" data-path="ai-for-service/automation/how-tos/zendesk/images/zendesk_install.png" />

3. Click the **Authenticate and Install** tab.

4. Select **Pre-authorize the Integration** and **Basic Auth**.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/authorisation.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=531f2e56ca74715ee95d4b15c2303829" alt="Authorization" width="1075" height="780" data-path="ai-for-service/automation/how-tos/zendesk/images/authorisation.png" />

5. Under **Basic Auth**, enter the following:

   | Field           | Description                                                                       |
   | --------------- | --------------------------------------------------------------------------------- |
   | User Sub Domain | Your Zendesk instance name.                                                       |
   | User Email      | Your Zendesk email, followed by `/token` (for example, `john@example.com/token`). |
   | API Token       | Your Zendesk API token.                                                           |

6. Click **Proceed**. The **Integration Installed Successfully** confirmation is displayed.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/integration-installed-successfully.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=bbb669e6e25ee8e0f4ce2aae18693435" alt="Integration Successful" width="994" height="679" data-path="ai-for-service/automation/how-tos/zendesk/images/integration-installed-successfully.png" />

***

## Step 2: Install the 'Create a Ticket' Template for Zendesk

1. Go to **Marketplace** and select the **Create a Ticket for Zendesk** dialog template.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/marketplace.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=4138072da608012e4151ce9d25948bff" alt="Marketplace" width="1903" height="586" data-path="ai-for-service/automation/how-tos/zendesk/images/marketplace.png" />

2. Click **Install**.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/create-ticket-zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=9734a6d6e7ad4c59532c22632cf5aaf8" alt="Create Ticket Zendesk" width="1422" height="792" data-path="ai-for-service/automation/how-tos/zendesk/images/create-ticket-zendesk.png" />

3. Fill in the dialog task details:

   | Field                 | Description                                                                                     |
   | --------------------- | ----------------------------------------------------------------------------------------------- |
   | Name                  | Name of the dialog.                                                                             |
   | Description           | Description of the dialog.                                                                      |
   | Utterances            | Phrases that trigger this dialog.                                                               |
   | Channel Experiences   | Channel-specific behavior settings.                                                             |
   | Create a Ticket Setup | Ticket fields, follow-up actions, and details to capture (for example, order ID or booking ID). |

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/install-template-zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=e686a494558f88a237f1ebcf526f6062" alt="Install Template" width="1524" height="838" data-path="ai-for-service/automation/how-tos/zendesk/images/install-template-zendesk.png" />

4. Click **Finish**. The dialog task is auto-created and listed under **Automation AI** > **Use Cases** > **Dialogs**.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/dialogs-zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=554d415776e1fddeb16c150941cc6a44" alt="Dialogs Zendesk" width="1906" height="678" data-path="ai-for-service/automation/how-tos/zendesk/images/dialogs-zendesk.png" />

***

## Step 3: Train and Test the Dialog Task

1. Click the **Test** icon.

2. Select a conversation type (Voice or Chat).

3. Click **Train** to process untrained utterances.

4. Follow the prompts in the App console to create a ticket.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/appconsole-zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=19afa9dc2e8f0d818191e46d039828f4" alt="App Console" width="379" height="808" data-path="ai-for-service/automation/how-tos/zendesk/images/appconsole-zendesk.png" />

5. Enter ticket details when prompted.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/view-ticket-details-zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=11d63689932c72972afa1ebccf58c956" alt="Ticket Details" width="438" height="826" data-path="ai-for-service/automation/how-tos/zendesk/images/view-ticket-details-zendesk.png" />

6. The ticket is created in Zendesk. Click **View Ticket Details** in the app console to view it in Zendesk.

   <img src="https://mintcdn.com/koreai/ZYZoyxWcsBnst_V0/ai-for-service/automation/how-tos/zendesk/images/zendesk.png?fit=max&auto=format&n=ZYZoyxWcsBnst_V0&q=85&s=34d3ef9af0aa7e1a6dff4dbdcfe3f1c5" alt="Zendesk Ticket" width="1711" height="813" data-path="ai-for-service/automation/how-tos/zendesk/images/zendesk.png" />

7. [Publish your app](/ai-for-service/deployment/publishing-app#publishing-an-agent) to make this capability available to end users.
