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

# Using the BambooHR Templates

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

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

**Prerequisites:** Configure [BambooHR](/ai-for-service/integrations/actions/configuring-the-bamboohr-action) and [install templates](/ai-for-service/integrations/actions/configuring-the-bamboohr-action#step-2-install-bamboohr-action-templates) before proceeding.

Navigate to **Automation AI > Use Cases > Dialogs**, then click the auto-created dialog to open the canvas.

***

## Supported Actions

| Action                    | Description                       | Method |
| ------------------------- | --------------------------------- | ------ |
| Create an Employee        | Creates an employee in BambooHR   | POST   |
| Get Employee by ID        | Finds an employee by ID           | GET    |
| List All Employees        | Retrieves all employees           | GET    |
| Update an Employee        | Updates employee details          | POST   |
| Get All Time Off Requests | Retrieves all time off requests   | GET    |
| Get a List of Who is Out  | Lists employees who are out       | GET    |
| Update a Request Status   | Updates a time off request status | POST   |

***

## Create an Employee

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

2. The **Create an Employee** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=0cbe79eb4b8bf5f5ec5ad4778985a89f" alt="Create Employee dialog task" width="1495" height="864" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png" />

   * **createEmployee** - User intent to create an employee.

   * **companyDomain**, **firstName**, **lastName** - Entity nodes for employee details.

   * **createEmployeeService** - Bot action service to create the employee. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=3e11f9db85340a6fe2e30689bf43ea99" alt="Request" width="1908" height="769" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "firstName": "Alen",
       "lastName": "walker"
     }
     ```

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

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

4. Follow the prompts to create an employee.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=15b3b34fe063673157fd8826da679b45" alt="Employee creation" width="496" height="728" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png" />

5. Click **View Employee** to view employee details in BambooHR.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=6f7d7e8bb0d7d076a5d2e93c44d0f091" alt="Employee details" width="495" height="862" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png" />

***

## Get Employee by ID

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

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=d235162217b5eaf9ec8920ddf05b2cb7" alt="Get Employee ID task" width="1599" height="905" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png" />

   * **getEmployeeByID** - User intent to find an employee by ID.

   * **companyDomain** and **id** - Entity nodes for employee details.

   * **getEmployeeByIdService** - Bot action service to fetch the employee. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=adf0ab338ee541b3f71822c941ca9678" alt="Request" width="1917" height="745" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "id": "114",
       "firstName": "Alen",
       "lastName": "walker"
     }
     ```

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

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

4. Follow the prompts to find the employee.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=110fb1cf4062f3a63170b3a9eaac9b32" alt="Find employee" width="405" height="580" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png" />

5. Click **View Employee** to view details in BambooHR.

***

## List All Employees

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

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=51ab8fff2ed85b91ec5dd763e6b2e2a3" alt="List all employees" width="1485" height="899" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png" />

   * **listAllEmployees** - User intent to list employees.

   * **companyDomain** - Entity node for the company domain.

   * **listAllEmployeesService** - Bot action service to fetch all employees. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=09b9c8f0056cbd774cebf75152b3f893" alt="Request" width="1916" height="751" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "fields": ["firstName", "lastName"]
     }
     ```

     **Sample Response:**

     ```json theme={null}
     {
       "title": "Report",
       "fields": [
         { "id": "firstName", "type": "text", "name": "First Name" },
         { "id": "lastName", "type": "text", "name": "Last Name" }
       ],
       "employees": [
         { "id": "112", "firstName": "John", "lastName": "Doe" },
         { "id": "113", "firstName": "Harry", "lastName": "Anthony" },
         { "id": "114", "firstName": "Alen", "lastName": "walker" }
       ]
     }
     ```

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

3. Click **Talk to Bot** to test.

4. Follow the prompts to view employees.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=a04b7ea473bae1c296888586584b98be" alt="List employees" width="495" height="680" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png" />

***

## Update an Employee

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

2. The **Update an Employee** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=a8270619f31da2a8466d5874b38106f4" alt="Update Employee dialog task" width="1498" height="898" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png" />

   * **updateEmployee** - User intent to update an employee.

   * **companyDomain**, **id**, **chooseField**, **firstName**, **lastName** - Entity nodes.

   * **updateEmployeeScript** - Bot action script to prepare the update.

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=d3c3fc4e316e8ee0b1dddf16252173b5" alt="View component properties" width="1910" height="715" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png" />

   * **updateEmployeeService** - Bot action service to update the employee. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=59bcebef2f082703c511f3fbd9616a5b" alt="Request" width="1914" height="752" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "firstName": "Alen",
       "lastName": "walker"
     }
     ```

   * **getEmployeeByIdService** - Bot action service to fetch the updated employee by ID.

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

3. Click **Talk to Bot** to test.

4. Follow the prompts to update the employee.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=bb383a5e6f0ed20865ce4ff61f3cad63" alt="Update employee" width="491" height="856" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png" />

5. Click **View Employee** to view details in BambooHR.

***

## Get All Time Off Requests

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

2. The **Get All Time Off Requests** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=ae87286f33d249544d3e661736cfb704" alt="Get Time Off Request dialog" width="1488" height="899" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png" />

   * **getTimeoffRequests** - User intent to get time off requests.

   * **companyDomain**, **startDate**, **endDate** - Entity nodes for the request range.

   * **getTimeoffRequestsService** - Bot action service to fetch time off requests. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=c6aac67631bed6eefdfe3ac9bbcd2f01" alt="Request" width="1919" height="736" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png" />

     **Sample Response:**

     ```json theme={null}
     [
       {
         "id": "1649",
         "employeeId": "112",
         "status": { "lastChanged": "2022-12-22", "status": "approved" },
         "name": "Mark Anderson",
         "start": "2022-12-14",
         "end": "2022-12-15",
         "type": { "id": "83", "name": "Vacation" },
         "amount": { "unit": "hours", "amount": "16" }
       }
     ]
     ```

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

3. Click **Talk to Bot** to test.

4. Follow the prompts.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=81eb0a4252745ad40e688a828b5bb654" alt="Get all time off requests" width="491" height="855" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png" />

***

## Get a List of Who is Out

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

2. The **Get a List of Who Is Out** dialog task is added with:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=6d66d259b77207823817a2f327c6a9b3" alt="Who is Out dialog task" width="1491" height="908" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png" />

   * **getListWhoisOut** - User intent to list who is out.

   * **companyDomain** - Entity node for the company domain.

   * **getListWhoOutService** - Bot action service to get the list. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=0e4192cebfbb344bf55bd05cdb9b5073" alt="Request" width="1913" height="756" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png" />

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

3. Click **Talk to Bot** to test.

4. Follow the prompts.

***

## Update a Request Status

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

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=ac13c4e9bacea17ed0f68c9c73fa2f26" alt="Update Request Status dialog task" width="1562" height="880" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png" />

   * **updateRequestStatus** - User intent to update a request.

   * **companyDomain**, **requestID**, **requestStatus** - Entity nodes.

   * **updateRequestStatusScript** - Bot action script to prepare the update.

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=b39511e10a202daafb6d3b173462177b" alt="Update Request Status script" width="1913" height="809" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png" />

   * **updateRequestStatusService** - Bot action service to update the request. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=d5100f250f5c1061cfd774adeb534656" alt="Request" width="1917" height="736" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png" />

     **Sample Request:**

     ```json theme={null}
     {
       "status": "approved",
       "note": "Have fun!"
     }
     ```

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

3. Click **Talk to Bot** to test.

4. Follow the prompts.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/JQXeyR4CsqrR5tB0/ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png?fit=max&auto=format&n=JQXeyR4CsqrR5tB0&q=85&s=a195de9dbd64ac133db0f27e025becf1" alt="Update Request" width="493" height="848" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png" />
