Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dialogflow CX bot does not display the fulfilment text when called by api

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:

jocieldoabreu_0-1677261563285.png

But I don't get any response. No text is sent back.

jocieldoabreu_1-1677261673637.png

Now, if I use a parameter, I'll get the response:

jocieldoabreu_2-1677261763149.png

jocieldoabreu_3-1677261792560.png

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!!

0 1 617
1 REPLY 1

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