编写云函数:

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();
})

  

最新文章

  1. VIM编辑器简单总结
  2. python学习笔记系列----(三)数据结构
  3. 使用C#进行图像处理的几种方法(转)
  4. Node.js的UnitTest单元测试
  5. C#显示SQL语句格式
  6. 10条PHP编程习惯助你找工作
  7. pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
  8. 重拾C,一天一点点_12
  9. php验证码制作
  10. css3 图标上下移动动画
  11. swift - use backslash to add the value in the string
  12. (转)web.config详解之在文件中配置网站默认页面
  13. [TPYBoard - Micropython之会python就能做硬件 8] 学习使用蓝牙模块及舵机
  14. GCC(警告.优化以及调试选项)
  15. Java中返回类型方法名
  16. 6-1 Quantifiers
  17. AngularJS 使用ng-repeat报错
  18. 日线做多,15min做空的情况收集
  19. scrapy yield
  20. jquery自定义类的封装

热门文章

  1. ml交叉验证
  2. jQuery 省份选择
  3. .Net Core2.1 部署到IIS
  4. python 二分法模板——牢记
  5. virtural machine eth1
  6. MCNN多层神经网络论文笔记
  7. 事件对象的属性,基于jQuery(jquery针对不同浏览器进行了兼容性的封装)
  8. list的相关函数
  9. python自学第7天,函数,参数
  10. js带“.”的对象属性名怎么使用