mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 04:59:15 +00:00
Merge pull request #556 from DiegoAlonso27/main
fix: arreglando dir y varios mensajes en dialog flow essential
This commit is contained in:
@@ -104,11 +104,19 @@ class DialogFlowContext extends CoreClass {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ctxFromDX = {
|
/* const ctxFromDX = {
|
||||||
answer: queryResult?.fulfillmentText,
|
answer: queryResult?.fulfillmentText,
|
||||||
}
|
} */
|
||||||
|
|
||||||
this.sendFlowSimple([ctxFromDX], from)
|
const messagesFromCX = queryResult['fulfillmentMessages']
|
||||||
|
.map((a) => {
|
||||||
|
if (a.message === 'text') {
|
||||||
|
return { answer: a.text.text[0] }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.filter((e) => e)
|
||||||
|
|
||||||
|
this.sendFlowSimple(messagesFromCX, from)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user