Closed nidhinkumar06 closed 4 years ago
Hi @nidhinkumar06,
It looks like the format you are using to construct a Table response in incorrect.
Your Table response should look something like:
conv.add(new Table({
'columns': [{
'header': 'Date',
}, {
'header': 'Time',
}, {
'header': 'Place',
}],
'rows': [{
'cells': [{
'text': '20-10-2020',
}, {
'text': '11:20',
}, {
'text': 'Test',
}],
}],
}));
Please refer to the reference documentation for properly formatting a Table response.
Our conversation components sample for Actions Builder also provides a good example on how to construct and send a Table response.
Best,
I have tried to show a table with the array of datas but when i test the action i am getting the error as below
Unsuccessful webhook call: Failed to translate JSON to ExecuteHttpResponse..
But when i check the logs i am getting the row values like below
Here is the implementation of my adding table in the conv
I have used the same logic in google-actions plugin there it works fine