Skip to main content

pages

Creates, updates, deletes, gets or lists a pages resource.

Overview

Namepages
TypeResource
Idgoogle.dialogflow.pages

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe unique identifier of the page. Required for the Pages.UpdatePage method. Pages.CreatePage populates the name automatically. Format: projects//locations//agents//flows//pages/.
advancedSettingsobjectHierarchical advanced settings for this page. The settings exposed at the lower level overrides the settings exposed at the higher level. (id: GoogleCloudDialogflowCxV3AdvancedSettings)
descriptionstringThe description of the page. The maximum length is 500 characters.
displayNamestringRequired. The human-readable name of the page, unique within the flow.
entryFulfillmentobjectThe fulfillment to call when the session is entering the page. (id: GoogleCloudDialogflowCxV3Fulfillment)
eventHandlersarrayHandlers associated with the page to handle events such as webhook errors, no match or no input.
formobjectThe form associated with the page, used for collecting parameters relevant to the page. (id: GoogleCloudDialogflowCxV3Form)
knowledgeConnectorSettingsobjectOptional. Knowledge connector configuration. (id: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings)
transitionRouteGroupsarrayOrdered list of TransitionRouteGroups added to the page. Transition route groups must be unique within a page. If the page links both flow-level transition route groups and agent-level transition route groups, the flow-level ones will have higher priority and will be put before the agent-level ones. * If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route -> page's transition route group -> flow's transition routes. * If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence. Format:projects//locations//agents//flows//transitionRouteGroups/ or projects//locations//agents//transitionRouteGroups/ for agent-level groups.
transitionRoutesarrayA list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow. When we are in a certain page, the TransitionRoutes are evaluated in the following order: * TransitionRoutes defined in the page with intent specified. * TransitionRoutes defined in the transition route groups with intent specified. * TransitionRoutes defined in flow with intent specified. * TransitionRoutes defined in the transition route groups with intent specified. * TransitionRoutes defined in the page with only condition specified. * TransitionRoutes defined in the transition route groups with only condition specified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_flows_pages_getselectprojectsId, locationsId, agentsId, flowsId, pagesIdlanguageCodeRetrieves the specified page.
projects_locations_agents_flows_pages_listselectprojectsId, locationsId, agentsId, flowsIdlanguageCode, pageSize, pageTokenReturns the list of all pages in the specified flow.
projects_locations_agents_flows_pages_createinsertprojectsId, locationsId, agentsId, flowsIdlanguageCodeCreates a page in the specified flow. Note: You should always train a flow prior to sending it queries. See the training documentation.
projects_locations_agents_flows_pages_patchupdateprojectsId, locationsId, agentsId, flowsId, pagesIdlanguageCode, updateMaskUpdates the specified page. Note: You should always train a flow prior to sending it queries. See the training documentation.
projects_locations_agents_flows_pages_deletedeleteprojectsId, locationsId, agentsId, flowsId, pagesIdforceDeletes the specified page. Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
flowsIdstring
locationsIdstring
pagesIdstring
projectsIdstring
forceboolean
languageCodestring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the specified page.

SELECT
name,
advancedSettings,
description,
displayName,
entryFulfillment,
eventHandlers,
form,
knowledgeConnectorSettings,
transitionRouteGroups,
transitionRoutes
FROM google.dialogflow.pages
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND flowsId = '{{ flowsId }}' -- required
AND pagesId = '{{ pagesId }}' -- required
AND languageCode = '{{ languageCode }}';

INSERT examples

Creates a page in the specified flow. Note: You should always train a flow prior to sending it queries. See the training documentation.

INSERT INTO google.dialogflow.pages (
data__name,
data__displayName,
data__description,
data__entryFulfillment,
data__form,
data__transitionRouteGroups,
data__transitionRoutes,
data__eventHandlers,
data__advancedSettings,
data__knowledgeConnectorSettings,
projectsId,
locationsId,
agentsId,
flowsId,
languageCode
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ entryFulfillment }}',
'{{ form }}',
'{{ transitionRouteGroups }}',
'{{ transitionRoutes }}',
'{{ eventHandlers }}',
'{{ advancedSettings }}',
'{{ knowledgeConnectorSettings }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}',
'{{ flowsId }}',
'{{ languageCode }}'
RETURNING
name,
advancedSettings,
description,
displayName,
entryFulfillment,
eventHandlers,
form,
knowledgeConnectorSettings,
transitionRouteGroups,
transitionRoutes
;

UPDATE examples

Updates the specified page. Note: You should always train a flow prior to sending it queries. See the training documentation.

UPDATE google.dialogflow.pages
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__entryFulfillment = '{{ entryFulfillment }}',
data__form = '{{ form }}',
data__transitionRouteGroups = '{{ transitionRouteGroups }}',
data__transitionRoutes = '{{ transitionRoutes }}',
data__eventHandlers = '{{ eventHandlers }}',
data__advancedSettings = '{{ advancedSettings }}',
data__knowledgeConnectorSettings = '{{ knowledgeConnectorSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND flowsId = '{{ flowsId }}' --required
AND pagesId = '{{ pagesId }}' --required
AND languageCode = '{{ languageCode}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
advancedSettings,
description,
displayName,
entryFulfillment,
eventHandlers,
form,
knowledgeConnectorSettings,
transitionRouteGroups,
transitionRoutes;

DELETE examples

Deletes the specified page. Note: You should always train a flow prior to sending it queries. See the training documentation.

DELETE FROM google.dialogflow.pages
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND flowsId = '{{ flowsId }}' --required
AND pagesId = '{{ pagesId }}' --required
AND force = '{{ force }}';