> ## 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 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=983f33f7599a68eaf5d018bc6cc24c54" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=b632324c68ba54cdd10c3f673c12fae6" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=e91b7edffdf460b338364ebfac602245" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=b20cbbc215dbee7db104bff709c08a21" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=b0d57ce504b213f2e995c6329fa0022f" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=db24a1f6bf6c097a2cd5e6233e8d8055" 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-content-gov/1m0dVm9sqatG8z03/ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png?fit=max&auto=format&n=1m0dVm9sqatG8z03&q=85&s=1c7b334d7a46ec88eded9a257b7e8686" 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-content-gov/1m0dVm9sqatG8z03/ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png?fit=max&auto=format&n=1m0dVm9sqatG8z03&q=85&s=c2db0e12dbf0104101a4c0f459a3db07" 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-content-gov/1m0dVm9sqatG8z03/ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png?fit=max&auto=format&n=1m0dVm9sqatG8z03&q=85&s=47b26c3e39fcf15c5798603b1abb14ae" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=d371a23ef0626b0eb92e8a7c25cbf24a" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=307b4a9771f663adc0b9b4bb7cda1446" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=3e07976f2897998097bc3bfeaf6a5af5" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=89fa3d215c9bc5589c7ade238f9c4058" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=ac26e6738caffdec28ee8d0729f47984" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=ba5f576c4862921cf0b6b97242e127b7" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=6f87425a13c55ecf4443fe0fc1567746" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=acb413784a9f8033538633a3436a7beb" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=bb86b35337df6c26371c1596ec8bbd70" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=e66f1e50e359ffebe4273082994b39da" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=ea45d305e831d82c39ff32734b05d92f" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=9765e4b25c2913b52bd5d76f7e0fef29" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=ae1deebda481e03811cf2b2a3bccde81" 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-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=406251368c1a10184cba35ec633310a8" alt="Update Request" width="493" height="848" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png" />
