Hi guys, I'm struggling with a problem related to calling the Dialogflow API. I'm using an API to call a specific page using the following payload:
{
session: "projects/xxxx/locations/us-east1/agents/xxxx/session/xxx",
queryParams: {
currentPage: "projects/xxxx/locations/us-east1/agents/xxxx/flows/xxxx/pages/xxxx",
parameters: {
fields: {},
},
},
queryInput: {
text: {
text: "",
},
"en",
},
}
and to call it, I use:
const assistant = new dialogflow.SessionsClient(config);
const [response] = await assistant.detectIntent(request);
I'm trying to call this specific page:
But I don't get any response. No text is sent back.
Now, if I use a parameter, I'll get the response:
But here's the thing, I won't use parameters everywhere. I need to get the fulfillment message.
Does anyone have any idea what I can do? Thank you all!!
I believe you need intents for the flow to enter the fulfilment page.
Intent documentation: https://cloud.google.com/dialogflow/cx/docs/concept/intent
Fullfilment documentation and use cases: https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |