From e32f5c92106e9810ebaf77d64a668f2e07fd843e Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Tue, 18 Jan 2022 15:07:40 +0100 Subject: [PATCH] check dialogflow --- adapter/diaglogflow.js | 2 +- flow/response.json | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/adapter/diaglogflow.js b/adapter/diaglogflow.js index c042b8c..c00146b 100644 --- a/adapter/diaglogflow.js +++ b/adapter/diaglogflow.js @@ -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 diff --git a/flow/response.json b/flow/response.json index af6d4e8..00e5466 100644 --- a/flow/response.json +++ b/flow/response.json @@ -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