我制作了一个可以在Botpress编辑器中完美运行的机器人。但是当添加到外部UI时面临困难。我按照{@ {3}}的说明进行操作。但是我收到以下错误
“ 13:06:59.118 DialogEngine错误处理”说
!builtin_text-lbs0Re”错误:内容元素“!builtin_text-lbs0Re”未找到“
但是我的内容Json文件包含消息
{“ id”:“ builtin_text-lbs0Re”,“ formData”:{“ text $ en”:“嘿,这是 Nexa。我想帮助您了解N8基本问题”, “ typing $ en”:是,“ variations $ en”:[]},
我的html页面如下所示-Botpress文档的SImilar
`window.botpressWebChat.init({host:https://botpress.io/docs/channels/web/',botId:'your _bot _id_here'})
我遇到的错误是
bp:dialog(机器人)[z3AS4gXX8UuhjJ6sHfXEH]渲染元素 “#!builtin_text-lbs0Re” + 20s 13:06:59.118 DialogEngine错误 处理“说#!builtin_text-lbs0Re”错误:内容元素 找不到“!builtin_text-lbs0Re”流:main.flow.json节点:条目 [错误,找不到内容元素“!builtin_text-lbs0Re”]堆栈跟踪 错误:在以下位置找不到内容元素“!builtin_text-lbs0Re” DialogEngine._reportProcessingError (/快照/build-mac/out/bp/core/services/dialog/dialog-engine.js:0:0) 在DialogEngine。 (/快照/build-mac/out/bp/core/services/dialog/dialog-engine.js:0:0) 在Generator.throw()处被拒绝 (/快照/build-mac/out/bp/core/services/dialog/dialog-engine.js:0:0) 在tryCatcher (/用户/下载/botpress-v11_9_next-2019-05-21-darwin-x64/modules/.cache/module__0d92e45acb6587a48fca5bf12039dcea04d4f1f731482cc6548205bb16ee42d1/node_production_modules/bluebird/js/release/util.js:16:23) 在Promise._settlePromiseFromHandler (/用户/下载/botpress-v11_9_next-2019-05-21-darwin-x64/modules/.cache/module__0d92e45acb6587a48fca5bf12039dcea04d4f1f731482cc6548205bb16ee42d1/node_production_modules/bluebird/js/release/promise.js:512: 在Promise._settlePromise (/ Users / Downloads / botpress-v11_9_next-2019-05-21-darwin
有人可以帮助我指出错误吗?
答案 0 :(得分:0)
您输入了机器人ID吗?
window.botpressWebChat.init({ host: http://localhost:3000/', botId: 'MyBot' })