Reputation: 31
Is there a way to retrieve path parameters setted by Dialogflow fulfillment webhook? I'm using Node.js actions-on-google SDK in a Google Cloud Function.
My webhook URL is something like this: https://europe-myexample.cloudfunctions.net/actionHandler/v1
I need to get the v1
param to use it in manageWelcomeIntent
function.
const NLGService = require('./services/NLGService.js');
const {dialogflow} = require('actions-on-google');
const app = dialogflow();
exports.actionHandler = app;
app.intent('welcome_intent', NLGService.manageWelcomeIntent);
Upvotes: 0
Views: 105
Reputation: 46
Can't you e.g. use
const url = require('url');
, or, even simpler, req.url
for finding out your server url and then extracting the param?
Upvotes: 1