First of all I'm the beginner the node.js
and trying to understand:
bot.dialog('askForLocation', [
function (session, args) {
if (args && args.reprompt) {
builder.Prompts.text(session, "Enter a proper location");
} else {
builder.Prompts.text(session, "What's your meeting location?");
}
},
How can I get the user's input for later use after this code, let's say the user said california
where is it stored and how can I use it in another function?
This is the proper way to get the prompts
data as response
bot.dialog('askForLocation', [
// Step 1
function (session) {
if (args && args.reprompt) {
builder.Prompts.text(session, "Enter a proper location");
} else {
builder.Prompts.text(session, "What's your meeting location?");
}
},
// Step 2
function (session, results) {
session.endDialog(`Hello from location name = ${results.response}!`);
}
]);
See More Info : https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-dialog-prompt
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
Currently I am querying a Firebase database for the current users usernameI would like the value to display on the page inside the <template> area
I would like to insert a simple notification bar widget to the top of every page which would show some information dynamically
I am trying to highlight the common words in sentences from an array
guys, I know that Intel XDK is not being used anymore but I'm creating a project with this programmeI am trying to enabling the splash screen but when previewing my app on PhoneGap it keeps loading