73.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

09-15-2019, 12:53 AM
Post: #1
Need Some Help with Nodejs
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.




21.gif