This is currently not working.. Can u tell me the error
response = Map();
if(message.containsIgnoreCase("MAKE") || message.containsIgnoreCase("RECIPE") || message.containsIgnoreCase("COOK"))
{
dishlist = url.get("recipes");
rows = List();
count = 0;
for each news in dishlist
{
count = count + 1;
row = Map();
//row.put("View Link", url );
if(count <= 10)
{
rows.add(row);
}
}
return {"text":"Hello! Here's the recipe of " + message.getSuffix("make") + " !","card":{"theme":"modern-inline","title":"Recipe of " + message.getSuffix("make") + " $$"},"slides":{{"type":"table","data":{"headers":{"Dishes",url},"rows":rows}}}};
}
else
{
return {"text":"Hey " + user.get("first_name") + " ,I know only cooking!! Ask anything from that domain, I am happy to help you! And please give the dish name separated by hiphen... :smile:"};
}
return response;