09-15-2019, 12:53 AM
I have been following along with training for a dialogflow chatbot .I have never had any programming experience before and have got my self stuck with the nodejs part of it and the course leader seems to be ignoring my requests for help.
Is there any body here that can help me out ,I have 1 error left.
function welcome(agent) {
const name = agent.parameters.Complexname;
return getspreadsheetData().then(res=> {
res.data.map (person = {
if (person.Complexname === Complexname)
agent.add ('Here is the Valuation For ${Complexname},Bedrooms:,${person.bedrooms},Price: ${person.price}')
The API code im reading is
[{"Complex name":"balken breeze","Bedrooms":"2","Price":"29000"},{"Complex name":"sun village","Bedrooms":"1","Price":"32000"},{"Complex name":"sunnyday 2","Bedrooms":"studio","Price":"8000"}]
I would really appreciate some help Ive been stuck for over a week and not able to save because of the error.
Is there any body here that can help me out ,I have 1 error left.
function welcome(agent) {
const name = agent.parameters.Complexname;
return getspreadsheetData().then(res=> {
res.data.map (person = {
if (person.Complexname === Complexname)
agent.add ('Here is the Valuation For ${Complexname},Bedrooms:,${person.bedrooms},Price: ${person.price}')
The API code im reading is
[{"Complex name":"balken breeze","Bedrooms":"2","Price":"29000"},{"Complex name":"sun village","Bedrooms":"1","Price":"32000"},{"Complex name":"sunnyday 2","Bedrooms":"studio","Price":"8000"}]
I would really appreciate some help Ive been stuck for over a week and not able to save because of the error.