简体   繁体   中英

IBM Watson Assistant: How can you determine if telephony is being used in Watson Assistant Actions?

Using the new actions I want to be able to easily filter if the user is on the phone or the web, to give different responses. It doesn't have an option to set this.

you can use the following attribute via editing the JSON response to have different responses per channel.

In addition there are context variables that you can condition upon.

Using theV1 logging mechanism you can pull the user logs and compare differences across user channels.

In the context object when telephony is being used, there is a number of variables that are needed in that channel. Checking for one of those variables will allow you to filter.

For the new actions phone channel feature the following conditional will return true if it is being used.

context?.has("vgwSIPFromURI")

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