Example: Adding a basic skill
This example creates a skill that provides the current time-off policy to a user. The user is provided their correct time-off policy based on their status, full-time or part-time employee, and department.
- Select User Menu > Coleman Digital Assistant.
- Click Add New Skill.
-
Specify the basic information:
- Skill ID
- Name
- Description
- Language
- Click Next. Select Basic as the Fulfillment Type.
-
Click Next. To specify the requirements, define full-time status as a
String and department as
String.
-
To specify full-time status:
- Name
- Specify FullTimeStatus.
- Type
- Specify String.
- Prompt
- Specify Are you a full-time employee?.
-
To specify department:
- Name
- Specify Department.
- Type
- Specify String.
- Prompt
- Specify Which department do you work in?.
-
To specify full-time status:
-
Click Next. Define a set of utterances that start the skill when
asked by the user:
- What’s my time off policy?
- What is my PTO policy?
- How much time off do I get?
- How much sick leave do I get?
- Do I qualify for time off?
- Who needs to approve my time off?
- Who approves my holiday leave?
- Who needs to approve my out of office?
-
Click Next. Specify the responses.
Ensure that you account for as many scenarios as possible based on user response. Additionally, the conditions must be listed in sequential order. The first response that applies is provided by Coleman Digital Assistant even if a later response also applies. The skill is more useful if more responses are included.
In this example, the first conditions are based on full-time status, because part-time employees have the same time-off policy across all departments. If the user is a full-time employee, the time-off policy varies by department.
-
Specify the first response:
- Variable
- Select FullTimeStatus.
- Operator
- Select Contains.
- Value
- Specify part.
- Action
- Select Message.
- Response
- Specify Paid time off is approved by your supervisor on a case-by-case basis. You are eligible for 5 days sick leave per year..
-
Specify the second response:
The second response applies if the user is a full-time employee and works in the Accounting department. In this example, the Accounting department has a different time-off policy from other departments.
- Variable
- Select FullTimeStatus.
- Operator
- Select Contains.
- Value
- Specify full.
- Variable
- Select Department.
- Operator
- Select Contains.
- Value
- Specify Accounting.
- Action
- Select Message.
- Response
- Specify You get 28 days of paid time off per year. Requests for PTO must be approved by Jane Smith. You also accrue 40 hours of paid sick leave per year, to a maximum of 80 hours.
-
Specify the third response.
The time-off policy for full-time employees in other departments is consistent. Only one condition is necessary to cover other departments, because the accounting department has been defined in the second response.
- Variable
- Select FullTimeStatus.
- Operator
- Select Contains.
- Value
- Specify Full.
- Action
- Select Message.
- Response
- Specify You get 20 days of paid time off per year. Requests for PTO must be approved by your supervisor. You accrue 40 hours of paid sick leave per year, to a maximum of 80 hours.
-
Specify the first response:
- Confirm your responses.