I was playing a bit with google actions. I defined a custom entity. I would like to match that entity in my package.json:
xports.answerColleague = functions.https.onRequest((request, response) => {
const app = new App({request, response});
console.log('Request headers: ' + JSON.stringify(request.headers));
console.log('Request body: ' + JSON.stringify(request.body));
let profession = app.getArgument(PROFESSION_ARGUMENT);
// c. The function that generates the silly name
function answerColleague (app) {
How can i use my custom entity here? Let's say i defined an Entity call Profession. I want to check if profession == Profession.DEVELOPER for example. Where DEVELOPER is one of the row i added in the Entity. How can i access those values to verify which one the user selected?
Thanks.