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

# Using the Freshdesk Action Templates

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Use prebuilt Freshdesk action templates to auto-create dialog tasks.

**Prerequisites:** Configure [Freshdesk](/ai-for-service/integrations/actions/configuring-the-freshdesk-action) and install templates before proceeding.

To access templates:

1. Go to **Automation AI > Use Cases > Dialogs** and click **Create Dialog**.
2. Under **Integration**, select **Freshdesk** to view action templates.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-action-img10-tem-img2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=2b0d90d2b5da68829bfa64f102be9d88" alt="Select Freshdesk" width="797" height="900" data-path="ai-for-service/integrations/actions/images/freshdesk-action-img10-tem-img2.png" />

If no integration is configured, click **Explore Integrations** to go to the Actions page.

<img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img3.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=024fcada5de4f17ee7bbd865e74faf10" alt="Explore integrations" width="892" height="906" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img3.png" />

***

## Supported Actions

| Action                 | Description                   | Method |
| ---------------------- | ----------------------------- | ------ |
| Create a Ticket        | Creates a ticket in Freshdesk | POST   |
| Get Ticket by ID       | Fetches ticket details by ID  | GET    |
| List All Tickets       | Retrieves all tickets         | GET    |
| Update a Ticket        | Updates a ticket              | PUT    |
| Search Ticket by Field | Searches tickets by field     | GET    |
| Delete a Ticket        | Deletes a ticket              | DELETE |

***

## Create a Ticket

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **Create Ticket** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img4.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=a1994a24ab33a073325a637d42e6fde7" alt="Create Ticket dialog task" width="1659" height="907" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img4.png" />

   * **createTicket** - User intent to create a ticket.

   * **subject**, **description**, **email**, **priority**, **status**, **phone** - Entity nodes for ticket details.

   * **createTicketScript** - Bot action script to prepare the request.

   * **createTicketService** - Bot action service to create the ticket. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img5.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=1f59d431aa281782889ff09423dccf3c" alt="Request" width="1917" height="857" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img5.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "email": "john.doe@example.com",
       "subject": "Support payment",
       "description": "Payment is pending issue",
       "status": 2,
       "priority": 3
     }
     ```

     **Sample Response:**

     ```json theme={null}
     {
       "ticket": {
         "id": 57,
         "subject": "Support payment...",
         "description": "Payment is pending issue",
         "status": 2,
         "priority": 1,
         "type": "Incident",
         "created_at": "2022-09-28T07:00:14Z"
       }
     }
     ```

   * **createTicketMessage** - Message node to display the result.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to create a ticket.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img6.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=7e311b46013386401c8291266657f63b" alt="VA console prompts" width="488" height="848" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img6.png" />

***

## Get Ticket by ID

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **Get Ticket by ID** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img7.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=7828e71e3250539ffe5e745437194431" alt="Get Ticket By ID dialog" width="1465" height="894" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img7.png" />

   * **getTicketbyId** - User intent to find a ticket by ID.

   * **ticketID** - Entity node for the ticket ID.

   * **getTicketbyIdService** - Bot action service to find the ticket. Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img8.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=51f303dfe1f2726e41eb636786dba9bb" alt="Response" width="1914" height="853" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img8.png" />

     **Sample Response:**

     ```json theme={null}
     {
       "ticket": {
         "id": 57,
         "subject": "Support payment...",
         "description": "Payment is pending issue",
         "status": 2,
         "priority": 1,
         "type": "Incident"
       }
     }
     ```

   * **getTicketbyIdMessage** - Message node to display the result.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to find a ticket by ID.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img9.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=2fd14e6f2966a1198c0f11b61f89400a" alt="VA console prompt" width="488" height="848" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img9.png" />

***

## List All Tickets

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **List All Tickets** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img10.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=f2c7463fc495032382e3186aa56e21b0" alt="List All Tickets dialog task" width="1463" height="809" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img10.png" />

   * **listAllTickets** - User intent to view all tickets.

   * **listAllTicketsService** - Bot action service to fetch all tickets. Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img11.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=2980a731c58ca28cddae992bc3410b57" alt="Add response" width="1908" height="850" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img11.png" />

   * **listAllTicketsMessage** - Message node to display results.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to view all tickets.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img12.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=ac690657a9bbc7bd64f39d1fa4441d43" alt="VA console prompt" width="492" height="853" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img12.png" />

***

## Update a Ticket

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **Update a Ticket** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img13.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=686df6ca7d9822af5804a0da43291e33" alt="Update a Ticket dialog task" width="1490" height="912" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img13.png" />

   * **updateTicket** - User intent to update a ticket.

   * **ticketID**, **updateField**, **email**, **subject**, **description**, **status**, **priority** - Entity nodes.

   * **updateTicketScript** - Bot action script for the update.

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img14.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=3c7a19b15339ca24b877657eeb541255" alt="View component properties" width="1917" height="820" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img14.png" />

   * Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/freshdesk-tem-img15.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=c452cef7a3105f416e749f48ee55de1a" alt="Edit Request" width="1917" height="858" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img15.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "email": "john.doe@example.com",
       "subject": "LOGIN ISSUE...",
       "description": "Unable to login...",
       "status": 4,
       "priority": 2
     }
     ```

     **Sample Response:**

     ```json theme={null}
     {
       "ticket": {
         "id": 54,
         "subject": "LOGIN ISSUE...",
         "description": "Unable to login...",
         "status": 4,
         "priority": 2
       }
     }
     ```

   * **updateTicketMessage** - Message node to display the result.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to update a ticket.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img16.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=c8ed285d7b5745ebc49ed62a37118257" alt="VA console prompt" width="1919" height="744" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img16.png" />

***

## Search Ticket by Field

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **Search Ticket by Field** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img17.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=04edf3039f825bd273c6256484ace791" alt="Search dialog task" width="1494" height="913" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img17.png" />

   * **searchTicket** - User intent to search tickets.

   * **chooseField**, **priority**, **email**, **status** - Entity nodes for search criteria.

   * **searchTicketScript** - Bot action script to prepare the search.

   * **searchTicketService** - Bot action service to search tickets. Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img18.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=0e834d6b3b0f6f90af7ca188e2159e81" alt="Add response" width="1914" height="853" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img18.png" />

     **Sample Response:**

     ```json theme={null}
     {
       "tickets": [
         { "subject": "refer", "id": 55, "priority": 3, "status": 5 },
         { "subject": "Support payment...", "id": 7, "priority": 3, "status": 2 }
       ],
       "total": 2
     }
     ```

   * **searchTicketMessage** - Message node to display results.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to search tickets.

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img19.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=5bf9ce02c0500770d35dd546403b7c07" alt="VA console prompt" width="497" height="850" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img19.png" />

***

## Delete a Ticket

1. Install the template from [Freshdesk Templates](/ai-for-service/integrations/actions/configuring-the-freshdesk-action#step-2-install-freshdesk-action-templates).

2. The **Delete a Ticket** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img20.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=1dc36adf5b169eaab8354a81a6dfea8d" alt="Delete a Ticket dialog" width="1498" height="906" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img20.png" />

   * **deleteTicket** - User intent to delete a ticket.

   * **ticketID** - Entity node for the ticket ID.

   * **deleteTicketService** - Bot action service to delete the ticket. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-work-dev/r7ifGMsN_f_HHKjV/ai-for-service/integrations/actions/images/freshdesk-tem-img21.png?fit=max&auto=format&n=r7ifGMsN_f_HHKjV&q=85&s=e449a2669cc8ea96b486cdd632c0bb4d" alt="Edit request" width="1910" height="853" data-path="ai-for-service/integrations/actions/images/freshdesk-tem-img21.png" />

   * **deleteTicketMessage** - Message node to display the result.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to delete a ticket.
