> ## 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 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=cbbb534a808bdde30d3f46fcb2d80c18" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=93b54586961fae39bd74583ec582f5d5" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=954e5d2010d296a159d6132c66869d58" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=67af68fe877da67412ddeee6674f57d9" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=244e80921c608dfda8cdf902bde40181" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=541ed8f69cd6ed5968550022bc1a86a1" 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-work-dev/qM7mwNztp4e7APSL/ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png?fit=max&auto=format&n=qM7mwNztp4e7APSL&q=85&s=e6c1d02d4b86530a2ac357b32f145806" 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-work-dev/qM7mwNztp4e7APSL/ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png?fit=max&auto=format&n=qM7mwNztp4e7APSL&q=85&s=b50579740021b8e8325bc8f1ed5b0f92" 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-work-dev/qM7mwNztp4e7APSL/ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png?fit=max&auto=format&n=qM7mwNztp4e7APSL&q=85&s=f8137a605531ed88553e9ac0c0e89ffc" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=1d52ae4980154d741e8d6a36e8115a96" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=2f4005a4c2b8c566418a84cb59939066" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=e97f9b87482fe35c9f8d6f359dd0d928" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=474bb9935172cb5967d2722b99147fdd" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=bac552e1d63865daf7979ca6ed9d8264" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=0ffb8da1136546ac757f9d7399d6de7b" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=29164a4eae1b640070bfd0efdec8997d" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=b41b4bb32ca5db9a8c624486b1ebd282" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=ce4ebfcda9536edfc3abf84a3ea3a0c2" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=e147932646a5d03883f600f11f68c5a8" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=f972ae41c8c7df31cb1399b83cf91eb7" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=e2a4785ac079474ddb57eaa54f6cc2a7" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=b600ea35cc8ccbcfd486e7d934fd3919" 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-work-dev/E9o4BvEXCZ64Lebj/ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png?fit=max&auto=format&n=E9o4BvEXCZ64Lebj&q=85&s=e5d99dcf69eb37f7557aba0c5ab56373" alt="Update Request" width="493" height="848" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png" />
