input (stationName) {
type (StationName)
min (Required) max (One)
}
- input을 required로 선언하면 사용자의 발화에 input이 들어오지 않을 경우에 Bixby Platform에서 자동으로 prompt를 띄워줍니다.
- 기본적으로 아래와 같은 platform dialog를 띄우게 되는데, 사용자가 해당 내용을 보게 되면 캡슐이 어떤 input을 필요로 하는지 알 수가 없습니다.
- 따라서, 어떤 input을 입력 받는 지에 따라서 dialog를 선언하거나 input view를 생성하여 캡슐이 어떤 input을 필요로 하는지 알려주는 것이 중요합니다.
Dialog 1)
dialog (Elicitation) {
match : StationName(this)
template ("어느 전철역인가요?")
}
Dialog 2)
dialog (Selection) {
match : StationName(this)
template ("어떤 #{concept(this)}인가요?")
}
Input view)
input-view {
match : StationName(target) {
to-input : Find
}
message ("어느 전철역인가요?")
render {
...
}
}
- input view를 만들었다면, 화면에서 사용자가 발화로 입력 할 수 있도록 prompt 학습을 추가하시는 것이 좋습니다.
[g:StationName:prompt] (가야역)[v:StationName]
[g:StationName:prompt] (부산대 양산캠퍼스역)[v:StationName]이야
...
Comments
0 comments
Please sign in to leave a comment.