> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img4-create-employee.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=505ee49023e1dbe20c0d54933fc2cd0f" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img5-create-employee.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=30c4463d234c5e3b14d97c91933bf746" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img6-create-employee1.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=6223b136df097e8d9c95fbb1f1495a02" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img7-create-employee2.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=d81b5bf7e19794332beee1465efbae75" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img8-get-employee.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=5e072be86bb2dc923082b1c670f2b1e1" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img9-get-employee1.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=97b01c6d6dd5d57e1f3173e390187483" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img10-get-employee2.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=23a154c4191c30b7eb4eca39127082e4" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img11-list-employees.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=a551a138b8685743630cb64f6e166168" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img12-list-employees1.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=831e3a598f2124a9461d13eb68684ab0" 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": "Smith" },
         { "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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img13-list-employees2.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=4ccf0a88292467b1adc3c90cb7bd031e" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img14-update-employee.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=f58b63de0614e0e9c7041e4487bb54cf" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img15-update-employee1.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=e1a5fa48d9bdcf7b5b67616d5e5805ff" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img16-update-employee2.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=88eb2a9a77761fe9306b04ce5ae2f8a7" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img17-update-employee3.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=ca22207fdbb5409bd785348b66836c5d" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img18-get-time-off.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=c7ba4bbf85cedd9fc9215135f823d80c" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img19-get-time-off1.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=93070b967abb2910311f354320b448ba" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img20-get-time-off2.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=29b21f645cada52f0c54bc80dc20a640" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img21-get-who-out.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=fca100523545f84275dec7b1046eaacb" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img22-get-who-out.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=e391de3a90633dde83ae68c98186e31a" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img23-update-request-status.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=2a86ae24da94687888f7e7d223e43a17" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img24-update-request-status.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=25266dda54f491b424c3ed56078aeb18" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img25-update-request-status.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=23a16833abdac883fe35c9a86f963ac4" 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/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png?fit=max&auto=format&n=7TeKpNFD7QJEMcMu&q=85&s=87931b138ef4d591b612245fa80689e3" alt="Update Request" width="493" height="848" data-path="ai-for-service/integrations/actions/images/bamboo-hr-tem-img26-update-request-status.png" />
