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

Function createPage

dialogflow-cx/create-page.js:30–42  ·  view source on GitHub ↗
(projectId, agentId, flowId, location, displayName)

Source from the content-addressed store, hash-verified

28
29 // [START dialogflow_cx_create_page_sample]
30 async function createPage(projectId, agentId, flowId, location, displayName) {
31 const pagesClient = new PagesClient();
32
33 const createPageRequest = {
34 parent: `projects/${projectId}/locations/${location}/agents/${agentId}/flows/${flowId}`,
35 page: {
36 displayName: displayName,
37 },
38 };
39
40 const response = await pagesClient.createPage(createPageRequest);
41 console.log(response);
42 }
43 // [END dialogflow_cx_create_page_sample]
44
45 await createPage(projectId, agentId, flowId, location, displayName);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected