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

Scopes

You will need authorization for at least one of the following scopes to make a valid call:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/dialogflow

If unset, the scope for this method defaults to https://www.googleapis.com/auth/cloud-platform. You can set the scope for this method like this: dialogflow3 --scope <scope> projects locations-agents-flows-pages-patch ...

Required Scalar Argument

  • <name> (string)
    • The unique identifier of the page. Required for the Pages.UpdatePage method. Pages.CreatePage populates the name automatically. Format: projects//locations//agents//flows//pages/.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

GoogleCloudDialogflowCxV3Page:
  advanced-settings:
    audio-export-gcs-destination:
      uri: string
    dtmf-settings:
      enabled: boolean
      finish-digit: string
      max-digits: integer
    logging-settings:
      enable-interaction-logging: boolean
      enable-stackdriver-logging: boolean
  description: string
  display-name: string
  entry-fulfillment:
    advanced-settings:
      audio-export-gcs-destination:
        uri: string
      dtmf-settings:
        enabled: boolean
        finish-digit: string
        max-digits: integer
      logging-settings:
        enable-interaction-logging: boolean
        enable-stackdriver-logging: boolean
    enable-generative-fallback: boolean
    return-partial-responses: boolean
    tag: string
    webhook: string
  knowledge-connector-settings:
    enabled: boolean
    target-flow: string
    target-page: string
    trigger-fulfillment:
      advanced-settings:
        audio-export-gcs-destination:
          uri: string
        dtmf-settings:
          enabled: boolean
          finish-digit: string
          max-digits: integer
        logging-settings:
          enable-interaction-logging: boolean
          enable-stackdriver-logging: boolean
      enable-generative-fallback: boolean
      return-partial-responses: boolean
      tag: string
      webhook: string
  name: string
  transition-route-groups: [string]

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r .advanced-settings.audio-export-gcs-destination uri=invidunt

    • Required. The Google Cloud Storage URI for the exported objects. A URI is of the form: gs://bucket/object-name-or-prefix Whether a full object name, or just a prefix, its usage depends on the Dialogflow operation.
  • ..dtmf-settings enabled=false

    • If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).
  • finish-digit=at
    • The digit that terminates a DTMF digit sequence.
  • max-digits=9

    • Max length of DTMF digits.
  • ..logging-settings enable-interaction-logging=true

    • If true, DF Interaction logging is currently enabled.
  • enable-stackdriver-logging=false

    • If true, StackDriver logging is currently enabled.
  • ... description=eirmod

    • The description of the page. The maximum length is 500 characters.
  • display-name=erat
    • Required. The human-readable name of the page, unique within the flow.
  • entry-fulfillment.advanced-settings.audio-export-gcs-destination uri=duo

    • Required. The Google Cloud Storage URI for the exported objects. A URI is of the form: gs://bucket/object-name-or-prefix Whether a full object name, or just a prefix, its usage depends on the Dialogflow operation.
  • ..dtmf-settings enabled=false

    • If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).
  • finish-digit=sit
    • The digit that terminates a DTMF digit sequence.
  • max-digits=28

    • Max length of DTMF digits.
  • ..logging-settings enable-interaction-logging=false

    • If true, DF Interaction logging is currently enabled.
  • enable-stackdriver-logging=false

    • If true, StackDriver logging is currently enabled.
  • ... enable-generative-fallback=false

    • If the flag is true, the agent will utilize LLM to generate a text response. If LLM generation fails, the defined responses in the fulfillment will be respected. This flag is only useful for fulfillments associated with no-match event handlers.
  • return-partial-responses=true
    • Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
  • tag=dolor
    • The value of this field will be populated in the WebhookRequest fulfillmentInfo.tag field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if webhook is specified.
  • webhook=amet

    • The webhook to call. Format: projects//locations//agents//webhooks/.
  • ..knowledge-connector-settings enabled=true

    • Whether Knowledge Connector is enabled or not.
  • target-flow=invidunt
    • The target flow to transition to. Format: projects//locations//agents//flows/.
  • target-page=sea
    • The target page to transition to. Format: projects//locations//agents//flows//pages/.
  • trigger-fulfillment.advanced-settings.audio-export-gcs-destination uri=duo

    • Required. The Google Cloud Storage URI for the exported objects. A URI is of the form: gs://bucket/object-name-or-prefix Whether a full object name, or just a prefix, its usage depends on the Dialogflow operation.
  • ..dtmf-settings enabled=true

    • If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).
  • finish-digit=stet
    • The digit that terminates a DTMF digit sequence.
  • max-digits=6

    • Max length of DTMF digits.
  • ..logging-settings enable-interaction-logging=true

    • If true, DF Interaction logging is currently enabled.
  • enable-stackdriver-logging=true

    • If true, StackDriver logging is currently enabled.
  • ... enable-generative-fallback=true

    • If the flag is true, the agent will utilize LLM to generate a text response. If LLM generation fails, the defined responses in the fulfillment will be respected. This flag is only useful for fulfillments associated with no-match event handlers.
  • return-partial-responses=false
    • Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
  • tag=amet.
    • The value of this field will be populated in the WebhookRequest fulfillmentInfo.tag field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if webhook is specified.
  • webhook=ipsum

    • The webhook to call. Format: projects//locations//agents//webhooks/.
  • ... name=at

    • The unique identifier of the page. Required for the Pages.UpdatePage method. Pages.CreatePage populates the name automatically. Format: projects//locations//agents//flows//pages/.
  • transition-route-groups=vero
    • Ordered 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.
    • Each invocation of this argument appends the given value to the array.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional Method Properties

You may set the following properties to further configure the call. Please note that -p is followed by one or more key-value-pairs, and is called like this -p k1=v1 k2=v2 even though the listing below repeats the -p for completeness.

  • -p language-code=string

    • The language of the following fields in page: * Page.entry_fulfillment.messages * Page.entry_fulfillment.conditional_cases * Page.event_handlers.trigger_fulfillment.messages * Page.event_handlers.trigger_fulfillment.conditional_cases * Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages * Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases * Page.form.parameters.fill_behavior.reprompt_event_handlers.messages * Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases * Page.transition_routes.trigger_fulfillment.messages * Page.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
  • -p update-mask=string

    • The mask to control which fields get updated. If the mask is not present, all fields will be updated.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").