check dialogflow

This commit is contained in:
Leifer Mendez
2022-01-18 15:07:40 +01:00
parent ffaa7b04a2
commit e32f5c9210
2 changed files with 17 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ const detectIntent = async (queryText) => {
const { intent } = queryResult || { intent: {} }
const parseIntent = intent['displayName'] || null
const parsePayload = queryResult['fulfillmentMessages'].find((a) => a.message === 'payload');
console.log(parseIntent)
// console.log(singleResponse)
if (parsePayload && parsePayload.payload) {
const { fields } = parsePayload.payload
media = fields.media.stringValue || null

View File

@@ -44,32 +44,39 @@
},
"STEP_2_1":{
"replyMessage":[
"Muy bien te comparto el link del curso angular \n",
"👉 https://angular.io"
"Si te interesa Angular tienes disponible \n",
"*(Gratis)* https://bit.ly/367tJ32 \n\n",
"*(Pago)* https://link.codigoencasa.com/PROMO-INICIAL \n\n",
"*(Pago)* https://link.codigoencasa.com/ANGULAR-BASICO-EDTEAM \n\n",
"😎😎😎"
],
"media":null,
"media":"https://i.imgur.com/Q0a5UQI.jpg",
"trigger":null
},
"STEP_2_2":{
"replyMessage":[
"Muy bien te comparto el link del curso node \n",
"👉 https://angular.io"
"Si te interesa NODE tienes disponible \n",
"*(Gratis)* https://bit.ly/3od1Bl6 \n\n",
"Espero pronto tener más material disponible",
"🤖"
],
"media":null,
"trigger":null
},
"STEP_2_3":{
"replyMessage":[
"Muy bien te comparto el link del curso ngrx \n",
"👉 https://angular.io"
"NGRX para manejar estados en Angular \n",
"*(Gratis)* https://bit.ly/ngrx-desde-cero \n",
"A darle! 😮"
],
"media":null,
"trigger":null
},
"STEP_2_4":{
"replyMessage":[
"Muy bien te comparto el link del curso aws \n",
"👉 https://angular.io"
"Muy bien AWS esta pronto a salir pre-registrate aquí \n",
"*(Pre-registro)* https://link.codigoencasa.com/AWS-BASICO-INVITACION \n",
"😮😮"
],
"media":null,
"trigger":null