Code Monkey home page Code Monkey logo

Comments (5)

aradwyr avatar aradwyr commented on August 16, 2024

Under your meetingFindDateAndTime function, you defined the variable meetingDateTimeStart without including timeZoneOffset, I would try:

const meetingDateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset)); 

from fulfillment-bike-shop-nodejs.

Onlinedispatcher avatar Onlinedispatcher commented on August 16, 2024

Thanks, but adding the timeZoneOffset does not help.

Still:

TypeError: Cannot read property 'source' of undefined
    at V2Agent.processRequest_ (/user_code/node_modules/dialogflow-fulfillment/src/v2-agent.js:108:86)

I really do not get it ... :(

from fulfillment-bike-shop-nodejs.

mattcarrollcode avatar mattcarrollcode commented on August 16, 2024

What version of the library are you using? Try upgrading to dialogflow-fulfillment to 0.4.1 if you haven't already.

from fulfillment-bike-shop-nodejs.

Onlinedispatcher avatar Onlinedispatcher commented on August 16, 2024

@matthewayne Absolutely right, I was still using an 0.3 beta version.
After adding
"dialogflow-fulfillment": "^0.4.1",
"actions-on-google": "^2.1.3"
it worked the same, inside the console windows and via the actual messenger.

Nice!!!! Thanks a lot!

from fulfillment-bike-shop-nodejs.

saife245 avatar saife245 commented on August 16, 2024

can anybody help to get out of this,

exports.dialogflowFirebaseFulfillment = (req, res) => {
console.log('Dialogflow Request body: ' + JSON.stringify(req.body));
let type = req.body.queryResult.outputContexts[1].parameters['prod.original'];
let bank = req.body.queryResult.outputContexts[1].parameters['bank.original'];
console.log('looking for ' + type);
console.log('bank is '+ bank);
let quote_type = bank.toUpperCase();
if (type.toLowerCase() == 'swift code'){
if (quote_type == "SBI") {
return datastore.runQuery(query1).then(results => {
res.ask(results[0][0].code);
});
} else if (quote_type == "DBS") {
return datastore.runQuery(query2).then(results => {
res.ask(results[0][0].code);
});
} else if (quote_type == "RBL") {
return datastore.runQuery(query3).then(results => {
res.ask(results[0][0].code);
//conv.add(JSON.stringify({ 'fulfillmentText':results[0][0].code }));
});
} else {
res.ask("get off your ass and work instead of talking to me");
}
}
}

The above code is for reading the datastore of kind 'swift', I will give the bank name it response the bank swift code but eventually, it crashes all time.

from fulfillment-bike-shop-nodejs.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.