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
- Install the template from BambooHR Templates.
-
The Create an Employee dialog task is added with:
- 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:
Sample Request:
- createEmployeeMessage - Message node to display the result.
- Click Train, then Talk to Bot to test.
-
Follow the prompts to create an employee.
-
Click View Employee to view employee details in BambooHR.
Get Employee by ID
- Install the template from BambooHR Templates.
-
The Get Employee by ID dialog task is added with:
- 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:
Sample Request:
- getEmployeeMessage - Message node to display the result.
- Click Train, then Talk to Bot to test.
-
Follow the prompts to find the employee.
- Click View Employee to view details in BambooHR.
List All Employees
- Install the template from BambooHR Templates.
-
The List All Employees dialog task is added with:
- listAllEmployees - User intent to list employees.
- companyDomain - Entity node for the company domain.
-
listAllEmployeesService - Bot action service to fetch all employees. Click Edit Request:
Sample Request:
Sample Response: - listAllEmployeesMessage - Message node to display results.
- Click Talk to Bot to test.
-
Follow the prompts to view employees.
Update an Employee
- Install the template from BambooHR Templates.
-
The Update an Employee dialog task is added with:
- updateEmployee - User intent to update an employee.
- companyDomain, id, chooseField, firstName, lastName - Entity nodes.
-
updateEmployeeScript - Bot action script to prepare the update.
-
updateEmployeeService - Bot action service to update the employee. Click Edit Request:
Sample Request:
- getEmployeeByIdService - Bot action service to fetch the updated employee by ID.
- updateEmployeeMessage - Message node to display the result.
- Click Talk to Bot to test.
-
Follow the prompts to update the employee.
- Click View Employee to view details in BambooHR.
Get All Time Off Requests
- Install the template from BambooHR Templates.
-
The Get All Time Off Requests dialog task is added with:
- 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:
Sample Response:
- getTimeoffRequestsMessage - Message node to display results.
- Click Talk to Bot to test.
-
Follow the prompts.
Get a List of Who is Out
- Install the template from BambooHR Templates.
-
The Get a List of Who Is Out dialog task is added with:
- 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:
- getListWhoIsOutMessage - Message node to display results.
- Click Talk to Bot to test.
- Follow the prompts.
Update a Request Status
- Install the template from BambooHR Templates.
-
The Update a Request Status dialog task is added with:
- updateRequestStatus - User intent to update a request.
- companyDomain, requestID, requestStatus - Entity nodes.
-
updateRequestStatusScript - Bot action script to prepare the update.
-
updateRequestStatusService - Bot action service to update the request. Click Edit Request:
Sample Request:
- updateRequestStatusMessage - Message node to display the result.
- Click Talk to Bot to test.
-
Follow the prompts.