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

# Using the Freshservice ITSM Action Templates

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

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

**Prerequisites:** Configure [Freshservice](/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.

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-action-img11-tem-img2.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=61d278acf572ed43da08250553af80e4" alt="View Freshservice action template" width="799" height="910" data-path="ai-for-service/integrations/actions/images/freshservice-action-img11-tem-img2.png" />

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

<img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img3.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=9995b26656fa3b6b0eaebcadfdb4f0b0" alt="Explore integrations" width="892" height="906" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img3.png" />

***

## 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](/ai-for-service/integrations/actions/configuring-the-freshservice-action#step-2-install-freshservice-action-templates).

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

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img4.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=3216d21bb013e517c5b3f734cb132506" alt="Create Ticket dialog" width="1733" height="915" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img5.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=38140dbab432d307f54c76f6792615ed" alt="Edit request" width="1919" height="862" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img6.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=f7fac5c2dcd0a8b4b5a703d7dd2b2ffd" alt="VA prompt" width="501" height="851" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img6.png" />

***

## Get Ticket by ID

1. Install the template from [Freshservice Templates](/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:

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img7.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=1d4f1aa825d7bf3ad09e3cba64ce7087" alt="Get Ticket By ID dialog" width="1730" height="911" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img8.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=74a8e0f4f2fb1fa38d4f3976d4b03454" alt="Add response" width="1917" height="904" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img9.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=91fdc46c482710a24eef3c0e9df3a3e8" alt="VA prompt" width="495" height="852" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img9.png" />

5. You can now view the ticket in Freshservice.

***

## List All Tickets

1. Install the template from [Freshservice Templates](/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:

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img10.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=168a4055fbd2a9a393bc9c55d5e8c4fb" alt="List All Tickets dialog task" width="1827" height="729" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img11.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=ddaa60c3f974f9606a7190bacf446e2c" alt="Add response" width="1919" height="852" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img12.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=b5e1cd56e900fca9b7247a59186d1ae4" alt="VA prompt" width="494" height="856" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img12.png" />

***

## Update a Ticket

1. Install the template from [Freshservice Templates](/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:

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img13.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=e3e024cec1d9939d827ed06e4a4f8bc7" alt="Update a Ticket dialog task" width="1723" height="905" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img14.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=9a1ca866936af7f5942eaa67e057e481" alt="View component properties" width="492" height="850" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img14.png" />

   * Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img15.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=d67f88776769c504afca3036419943b4" alt="Edit request" width="1917" height="858" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img16.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=c1cb24c1dac434a9fb6f2a40324aa80e" alt="VA prompt" width="1919" height="744" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img16.png" />

***

## Search Ticket by Field

1. Install the template from [Freshservice Templates](/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:

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img17.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=6d0475d20a8afd261eb7502405117604" alt="Search Ticket by Field dialog task" width="1713" height="895" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img18.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=33295c64db8a615414b02a2f5a9349bb" alt="Add response" width="498" height="851" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img19.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=9628c40072a2d2a4d8bd5e83c5300730" alt="VA prompt" width="497" height="850" data-path="ai-for-service/integrations/actions/images/freshservice-tem-img19.png" />

***

## Delete a Ticket

1. Install the template from [Freshservice Templates](/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:

   <img src="https://mintcdn.com/koreai-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img20.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=53f8094736c6cf56c5097d56e2fb6a26" alt="Delete Ticket dialog task" width="1498" height="906" data-path="ai-for-service/integrations/actions/images/freshservice-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-content-gov/p4l48NaBFI7Ogna-/ai-for-service/integrations/actions/images/freshservice-tem-img21.png?fit=max&auto=format&n=p4l48NaBFI7Ogna-&q=85&s=516e9d153e37d4143c856d9757a7f79a" alt="Edit request" width="1910" height="853" data-path="ai-for-service/integrations/actions/images/freshservice-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.
