(projectId, agentId, flowId, location)
| 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); |