MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / listPages

Function listPages

dialogflow-cx/list-page.js:29–38  ·  view source on GitHub ↗
(projectId, agentId, flowId, location)

Source from the content-addressed store, hash-verified

27
28 // [START dialogflow_cx_list_page_sample]
29 async function listPages(projectId, agentId, flowId, location) {
30 const pagesClient = new PagesClient();
31 const listPageRequest = {
32 parent: `projects/${projectId}/locations/${location}/agents/${agentId}/flows/${flowId}`,
33 languageCode: 'en',
34 };
35
36 const response = await pagesClient.listPages(listPageRequest);
37 console.log(response);
38 }
39 // [END dialogflow_cx_list_page_sample]
40
41 await listPages(projectId, agentId, flowId, location);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected