AIUI开放平台:多轮对话返回前几轮语槽数据
2024-08-24 10:10:08
编写云函数:
AIUI.create("v2", function(aiui, err){
// 获取 response
response = aiui.getResponse();
//托管
response.addDelegateDirective();
requestObject = aiui.getRequest().getObject();
// 打印获取当前意图名
intentName = requestObject.request.intents[0].name;
console.log("本次意图来自:"+intentName);
console.log("dialogState:"+requestObject.request.dialogState);
//获取所有语槽
slots = requestObject.request.intents[0].slots;
slots.dialogState=requestObject.request.dialogState;
response.setData(slots);
aiui.commit();
})
最新文章
- VIM编辑器简单总结
- python学习笔记系列----(三)数据结构
- 使用C#进行图像处理的几种方法(转)
- Node.js的UnitTest单元测试
- C#显示SQL语句格式
- 10条PHP编程习惯助你找工作
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- 重拾C,一天一点点_12
- php验证码制作
- css3 图标上下移动动画
- swift - use backslash to add the value in the string
- (转)web.config详解之在文件中配置网站默认页面
- [TPYBoard - Micropython之会python就能做硬件 8] 学习使用蓝牙模块及舵机
- GCC(警告.优化以及调试选项)
- Java中返回类型方法名
- 6-1 Quantifiers
- AngularJS 使用ng-repeat报错
- 日线做多,15min做空的情况收集
- scrapy yield
- jquery自定义类的封装