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

# Using the Freshservice ITSM Action Templates

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

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

**Prerequisites:** Configure [Freshservice](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action) and install templates before proceeding.

To access templates:

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

   ![View Freshservice action template](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-action-img11-tem-img2.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=58affd6e8e7413f345128cc3f22b0631)

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

![Explore integrations](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img3.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=f0f67c810897e0111f3c9aeaa9b87afa)

***

## Supported Actions

| Action | Description | Method |
| - | - | - |
| Create a Ticket | Creates a ticket in Freshservice | 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 [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![Create Ticket dialog](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img4.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=aec5b5e709821229287cd64fe6bdbbce)

   * **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**:

     ![Edit request](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img5.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=1878a65d945791a4251ca2f57453ec06)

     **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.

   ![VA prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img6.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=51687eaa664f295d2e13ef36c9e90163)

***

## Get Ticket by ID

1. Install the template from [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![Get Ticket By ID dialog](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img7.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=3bb1249825f55e5618cb0a19a1afeb89)

   * **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**:

     ![Add response](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img8.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=2133faac7b44649e1e4e1fcf3ed90603)

     **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.

   ![VA prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img9.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=45916765c0ac8ad7d462146715595f2f)

5. You can now view the ticket in Freshservice.

***

## List All Tickets

1. Install the template from [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![List All Tickets dialog task](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img10.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=bec47b1072f55126021e595dbe9533bc)

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

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

     ![Add response](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img11.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=23c6f2e83b8cc54f4e398a99363521d1)

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

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

4. Follow prompts to view all tickets.

   ![VA prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img12.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=708984255ab82758b85ff86aece153b4)

***

## Update a Ticket

1. Install the template from [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![Update a Ticket dialog task](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img13.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=5fff2cf5547d71f850bf685c7ae934d4)

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

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

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

     ![View component properties](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img14.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=866953423a3aec13c029f5f69c0c4262)

   * Click **Edit Request**:

     ![Edit request](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img15.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=403c62c1b9dd786d5c8f6847c8baa6da)

     **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.

   ![VA prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img16.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=d1e9cbedf2a326166bb47f937e1d3d37)

***

## Search Ticket by Field

1. Install the template from [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![Search Ticket by Field dialog task](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img17.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=f0311bb8f571eebe849b8c335dd36d0b)

   * **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**:

     ![Add response](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img18.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=9c13a10cb0ebf070b6bcc285b4c27fe9)

     **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.

   ![VA prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img19.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=0150ab8dd18fe44d6cf45a12e21fa881)

***

## Delete a Ticket

1. Install the template from [Freshservice Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   ![Delete Ticket dialog task](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img20.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=a8b765d56d2f431e27244ff46a542287)

   * **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**:

     ![Edit request](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/freshservice-tem-img21.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=0dc0a242b07f444bb9931b48a0d0cc0b)

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

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

4. Follow prompts to delete a ticket.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.