Comments (5)
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.
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.
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.
@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.
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)
- Invalid Date HOT 31
- No appointment created in google calendar HOT 28
- Error : Initializing firebase-admin may fail HOT 1
- "TypeError: Cannot read property 'split' of undefined at convertTimestampToDate" and other such annoyances
- Appointment is not showing on my Calendaer
- Error creating agent
- Invalid date
- No appointment created! HOT 10
- Error in creating agent HOT 2
- Issue with Calender HOT 2
- Invalid date HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fulfillment-bike-shop-nodejs.