Tag: amazon lex

在Lambda上查询到MySQL时,任务超时

我一直在用nodejs使用amazon Lex和Lambda。 我的问题是,当我尝试MySQL查询,lambda获得时间,并没有任何结果返回给Lex, 需要帮助。 这是我的代码 'use strict'; const lexResponse = require("../helper/responseBuilder"); const db = require('../config/db') function dialog (intentRequest, callback) { const source = intentRequest.invocationSource; const userId = intentRequest.userId; const sessionAttributes = intentRequest.sessionAttributes || {}; if (source === 'DialogCodeHook') { if (!companyRules) { getList(1, (results) => { console.log(results); callback(lexResponse.elicitSlot( sessionAttributes, intentRequest.currentIntent.name, intentRequest.currentIntent.slots, "Info", { contentType: 'PlainText', […]

从Node.JS / Javascript页面的标签栏中删除图像

我有这样的基于lex web-ui Node.JS的项目,我正在进行修改。 它有一个默认的图片显示在toolbar和tab 。 我想从网页中删除这些。 我完全不熟悉JavaScript但是经过深入研究,我能够通过注释掉文件aws-lex-web-ui/lex-web-ui/src/config/index.js 151行的toolbarLogo来删除toolbar上显示的默认图片aws-lex-web-ui/lex-web-ui/src/config/index.js 。 对于在标签上显示的图片,我在上面的同一个文件中注释了第154行的favIcon ,但是我仍然可以看到标签上显示的默认图片。 这是它的外观的快照: 您可以在标签的左上angular看到一个小花,我想删除它。 任何人都可以帮助我指出正确的文件和行,我应该删除摆脱这个默认图片?

在lex响应中错误的inputTranscript

我试图testing亚马逊networking节点api sdk lexaudioinput和输出,并成功configuration它,但是当我testing它,它发送给我垃圾inputTranscript(如“是啊”,“哦,不”,“这是啊”等)作为回应。 请求参数如下, var params = { botAlias: 'Test', /* required */ botName: 'Revert', /* required */ contentType: 'audio/l16; rate=16000; channels=1', /* required */ inputStream: <Buffer 52 49 46 46 80 55 02 00 57 41 56 45 66 6d 74 20 10 00 00 00 01 00 02 00 80 3e 00 00 […]