Hey!
Would really appreciate some help, as I'm a little stuck! New to Dialogflow CX and trying to integrate it with an existing Chat UI via the API (node.JS specifically).
I've got an instance of dialogflow CX setup, which I've (for test purposes) asked to repeat session parameters back to me. Specifically responding with
Allergies List: $session.params.allergies
I'm then invoking the 'detectIntent' API in order to resolve this response to the user's input
const request = {
session: sessionPath,
queryInput: {
text: {
text: messages[messages.length - 1].content
},
languageCode
},
queryParams: {
parameters: {
allergies: "nuts, seeds, dairy"
}
}
}
const [response] = await client.detectIntent(request)
When tested via the Agent Simulator in the Dialogflow CX UI, I see, as expected, the parameter value repeated back to me.
However, when I invoke with the API, I just see the parameter path (not the value) repeated back, as the parameter is seemingly never set, despite being in the request.
I'd really appreciate any help or advice!