> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-apis.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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=533773fdc4e11c0cc0b18296d5aa6212" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=769b6949570f92e2202101461d8ea539" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=6809c426bd325107ff9e6006513e8edd" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=00d1267acf74cce07f6c7e780c755bd1" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=36c5cad291a030c172be01a2268486f8" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=5a42c655a194ca75d7725a3e7f08e38f" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=1dda42d9a18626e553ed665b2107ec03" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=88f0236c137a0d036590e3ee8317142a" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=94b37603e677675ef52649f6714adb39" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=cf11713c87f0a46b349a6f7b8fa1db94" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=93eca15267ea5bc496f712342816b1af" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=c5341c584c4ac2f9ca62f0946588ce24" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=202213f72ff4a310ef13145c32817dfc" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=cd46b024df700ffe8bb0e45c5253fe2e" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=4d7fcb9e0dd278c70f2b412e74d7a4a7" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=839eb5c936b0c0ab9fa7edca684b86d3" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=d1803d0ed64a69518179804d86a049be" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=4abb1e6303869f7288019673ccc1c6fb" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=c241eed1dbdb07521fc8deabd586cfd0" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=74e694240da0a970489f897171fb811a" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=e459571d1f3e5dee6d2f1af698414698" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=e097d13fa5d66917a2c8f812756c4c45" 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-apis/AXeYQQiI2A7z0GN8/ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png?fit=max&auto=format&n=AXeYQQiI2A7z0GN8&q=85&s=4e9987dbcfda1360b1a269ac99662954" alt="Update Request" width="493" height="848" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png" />
