简体   繁体   中英

Watson Voice Agent getting splited values in @sys-number

first of all, I'm using Voice Agent with Watson Assistant, so everything here is in a phone call with Voice Agent.

I'm having trouble when prompting my users for their 'ticket' code for me to call my external API to get the status of the ticket. The problem is that the number is always a "big" integer, in this example: 123, so they don't speak it like: one hundred and twenty three, they say it like: one two three (and these values are sometimes more than a thousand). Then my @sys-number get this values:

@sys-number:1
@sys-number:2
@sys-number:3

This cause my sys-number to get only "1", because it was the first digit it recoginized. Is there a way to merge these values into one single variable?

Screenshot attached of the example dialog: 示例对话框 ss

您可以使用以下内容将实体转换为逗号分隔的数组。

<? @sys-number.values.join(',') ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM