According to the relatively new FB Beta Functionality, custom persona_id's can be incorporated into messages, taking the following form (Source: HERE):
Now the issue, as far as I can see it, is that in terms of trying to use this new (and potentially highly attractive feature) in the dialogflow-fullfillment-nodejs library, is that when a custom payload is provided (such as outlined HERE)
then it might take the following form:
let message = {"text":"hello world!"}
let payload = new Payload(agent.FACEBOOK, message)
agent.add(payload)
And this prohibits injecting the "persona_id" at the correct nesting level in the overall json packet as specified by the FB documentation.
According to the relatively new FB Beta Functionality, custom persona_id's can be incorporated into messages, taking the following form (Source: HERE):
Now the issue, as far as I can see it, is that in terms of trying to use this new (and potentially highly attractive feature) in the
dialogflow-fullfillment-nodejs
library, is that when a custom payload is provided (such as outlined HERE)then it might take the following form:
And this prohibits injecting the "persona_id" at the correct nesting level in the overall json packet as specified by the FB documentation.
Any suggestions?