Skip to content

Using the BambooHR Templates

You can use the Prebuilt Action Templates from your BambooHR integration to auto create dialog tasks and test them using the Talk to Bot option.

Steps to create a dialog task using the BambooHR action templates:

  1. Ensure that you have configured Bamboo HR and installed templates successfully. If you have configured it and skipped installing the templates, see Marketplace to install the templates.

  2. Go to Automation AI > Virtual Assistant > Use Cases > Dialogs. All the dialogs are displayed.

  3. Click the auto-created dialog. The the canvas opens with all required entity nodes, service nodes, and message scripts.

Bamboo HR Actions

The following BambooHR actions are supported:

Supported Actions Description Method
Create an employee Creates an employee in the BambooHR system. POST
Get employee by ID Find an employee using the employee ID. GET
List all employee Retrieves all employees from the BambooHR system. GET
Update an employee Updates an employee details in the BambooHR system. POST
Get all time off requests Retrieves all time off requests from the BambooHR system. GET
Get a list of who is out Find employees who are out on company holidays and for a period of time sorted by date. GET
Update a request status Updates a time off request’s status in the BambooHR system. POST

Create an Employee

Steps to create an employee in the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The Create an Employee dialog task is added with the following components:
    Create Employee dialog task

    1. createEmployee – A user intent to create an employee.
    2. companyDomain, firstName, and lastName – Entity nodes for gathering the required employee details.
    3. createEmployeeService – A bot action service to create an employee in an external integration. Click the Plus icon to expand to view the createEmployeeService bot action component properties.
    4. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request

      Sample Request:

      {  
      "firstName":"Alen",
      "lastName":"walker"
      }
      
    5. createEmployeeMessage – A message node with script to display responses for various scenarios.

    6. Click the Train tab to complete the Dialog task training.
    7. Click the Talk to Bot icon to test and debug the dialog task.
    8. Follow the prompts in the VA console to create an employee as shown below:
      Employee creation
  3. Click View Employee to view employee details in the BambooHR:
    Employee details

Get Employee by ID

Steps to find an employee by ID from the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.

  2. The Get Employee by ID dialog task is added with the following components:
    Get Employee ID task

    1. getEmployeeByID – A user intent to find an employee by ID.
    2. companyDomain and id– Entity nodes for gathering the required employee details.
    3. getEmployeeByIdService – A bot action service to find an employee by an ID from an external integration. Click the Plus icon to expand to view the getEmployeeByIdService bot action component properties.
    4. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request

      Sample Request:

      {
      "id": "114",
      "firstName": "Alen",
      "lastName": "walker"
      }
      
    5. getEmployeeMessage – A message node with script to display responses for various scenarios.

    6. Click the Train tab to complete the Dialog task training.
    7. Click the Talk to Bot icon to test and debug the dialog task.
    8. Follow the prompts in the VA console to find an employee as shown below:
      Find an employee
  3. Click View Employee to view employee details in the BambooHR.

List All Employees

Steps to view all employees in the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The List All Employees dialog task is added with the following components:
    List all employees

    1. listAllEmployees – A user intent to create an employee.
    2. companyDomain – Entity nodes for gathering the required employee details.
    3. listAllEmployeesService – A bot action service to fetch all employees from an external integration. Click the Plus icon to expand to view the listAllEmployeesService bot action component properties.
    4. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request

      Sample Request:

      {  
          "fields": [ 
          "firstName", 
          "lastName" 
      ] }
      

      To add one or more responses, scroll down and click Add Response.

      Sample Response:

      { 
        "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" 
        } 
      ] }
      

    5. listAllEmployeesMessage – A message node with script to display responses for various scenarios.

    6. Click the Talk to Bot icon to test and debug the dialog task.
    7. Follow the prompts in the VA console to view all employees as shown below: Request

Update an Employee

Steps to update an employee in the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The Update an Employee dialog task is added with the following components:
    Update Employee dialog task

    1. updateEmployee – A user intent to update an employee.
    2. companyDomain, id, chooseField, firstName, and lastName – Entity nodes for gathering the required employee details.
    3. updateEmployeeScript – A bot action service to update an employee in an external integration. Click the Plus icon to expand to view the updateEmployeeScript bot action component properties.
      View component properties

    4. updateEmployeeService – A bot action service to update an employee in an external integration. Click the Plus icon to expand to view the updateEmployeeService bot action component properties.

    5. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request

      Sample Request:

      { 
        "firstName":"Alen", 
        "lastName":"walker" 
      }
      

    6. getEmployeeByIdService – A bot action service to find an employee by an ID from an external integration. Click the Plus icon to expand to view the getEmployeeByIdService bot action component properties.

    7. updateEmployeeMessage – A message node with script to display responses for various scenarios.
    8. Click the Talk to Bot icon to test and debug the dialog task.
    9. Follow the prompts in the VA console to update an employee as shown below:
      Update employee
  3. Click View Employee to view employee details in the BambooHR.

Get All Time Off Requests

Steps to fetch all time off requests from the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The Get All Time Off Requests dialog task is added with the following components:
    Get Time Off Request dialog

    1. getTimeoffRequests – A user intent to get time off requests.
    2. companyDomain, startDate, and endDate– Entity nodes for gathering the required employee details getTimeoffRequestsService – A bot action service to fetch time off requests in an external integration. Click the Plus icon to expand to view the getTimeoffRequestsService bot action component properties.
    3. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request
      To add one or more requests, scroll down and click +Add Response.

      Sample Response:

        [ 
          { 
          "id": "1649", 
          "employeeId": "112", 
          "status": { 
          "lastChanged": "2022-12-22", 
          "lastChangedByUserId": "2385", 
          "status": "approved" 
          }, 
          "name": "Mark Anderson", 
          "start": "2022-12-14", 
          "end": "2022-12-15", 
          "created": "2022-12-22", 
          "type": { 
          "id": "83", 
          "name": "Vacation", 
          "icon": "palm-trees" 
          }, 
          "amount": { 
          "unit": "hours", 
          "amount": "16" 
          }, 
          "actions": { 
          "view": true, 
          "edit": true, 
          "cancel": false, 
          "approve": false, 
          "deny": false, 
          "bypass": false 
          }, 
          "dates": { 
          "2022-12-14": "8", 
          "2022-12-15": "8" 
          }, 
          "notes": {} 
          }, 
          { 
          "id": "1650", 
          "employeeId": "112", 
          "status": { 
          "lastChanged": "2022-12-22", 
          "lastChangedByUserId": "2385", 
          "status": "requested" 
          }, 
          "name": "John Smith", 
          "start": "2022-12-12", 
          "end": "2022-12-13", 
          "created": "2022-12-22", 
          "type": { 
          "id": "85", 
          "name": "Allan Walker", 
          "icon": "sales" 
          }, 
          "amount": { 
          "unit": "hours", 
          "amount": "16" 
          }, 
          "actions": { 
          "view": true, 
          "edit": true, 
          "cancel": true, 
          "approve": true, 
          "deny": true, 
          "bypass": true 
          }, 
          "dates": { 
          "2022-12-12": "8", 
          "2022-12-13": "8" 
          }, 
          "notes": {} 
          } 
          ]   
      

    4. getTimeoffRequestsMessage – A message node with script to display responses for various scenarios.

    5. Click the Talk to Bot icon to test and debug the dialog task.
    6. Follow the prompts in the VA console to get all time off requests as shown below:
      Get all time off requests

Get a List of Who is Out

Steps to get a list of who is out from the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The Get a List of Who Is Out dialog task is added with the following components:
    Get a list of Who is Out dialog task

    1. getListWhoisOut – A user intent to get a list of who is out.
    2. companyDomain – Entity nodes for gathering the required employee details.
    3. getListWhoOutService – A bot action service to get a list who is out in an external integration. Click the Plus icon to expand to view the getListWhoOutService bot action component properties.
    4. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request
    5. getListWhoIsOutMessage – A message node with script to display responses for various scenarios.
  3. Click the Talk to Bot icon to test and debug the dialog task.

  4. Follow the prompts in the VA console to get a list of who is out.

Update a Request Status

Steps to update a request status in the BambooHR integration:

  1. Refer to the Installing the BambooHR templates section to install this template.
  2. The Update a Request Status dialog task is added with the following components:
    Update Request Status dialog task

    1. updateRequestStatus – A user intent to update a request.
    2. companyDomain, requestID, and requestStatus – Entity nodes for gathering the required employee details.
    3. updateRequestStatusScript – A bot action service to update a request in an external integration. Click the Plus icon to expand to view the updateRequestStatusScript bot action component properties.
      Update Request Status script

    4. updateRequestStatusService – A bot action service to update an employee in an external integration. Click the Plus icon to expand to view the updateRequestService bot action component properties.

    5. In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
      Request

      Sample Request:

      { 
      "status": "approved", 
      "note": "Have fun!" 
      }
      

    6. updateRequestStatusMessage – A message node with script to display responses for various scenarios.

    7. Click the Talk to Bot icon to test and debug the dialog task.
    8. Follow the prompts in the VA console to update a request as shown below:
      Update Request