【发布时间】:2020-08-07 12:22:51
【问题描述】:
当我添加这样的表格卡片时,我遇到了一个新问题,即使是静态表格,也不是动态的
app.intent('static table',(conv)=>{
conv.ask(new Table({
dividers : true,
columns: ['alpha', 'beta', 'price'],
rows: [
[`1`, `2`, `3`],
],
}));
})
app.intent('dynamic table',(conv)=>{
let row=[];
var i;
for (var i=0;i< conv.data.alpha.length;i++){
row.push([conv.data.alpha[i],`${conv.data.beta[i]}- ${conv.data.beta2[i]}`,`Rp.${conv.data.pricemin[i]}-${conv.data.pricemax[i]}`])
}
console.log(row);
conv.ask(new Table({
dividers : true,
columns: ['alpha', 'beta', 'price'],
rows: row,
}));
})
[screenshot]the app is error, but the response debug still give a table card
【问题讨论】:
标签: google-cloud-functions dialogflow-es actions-on-google dialogflow-es-fulfillment