gcloud alpha dialogflow intents update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha dialogflow intents update - update a Dialogflow entity type for the agent of the current project
- SYNOPSIS
gcloud alpha dialogflow intents updateINTENT[--is-fallback][--no-ml-enabled][--other-properties=[KEY=VALUE,…]][--priority=PRIORITY][--responses=[RESPONSES,…]][--training-phrases=[TRAINING_PHRASES,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update a Dialogflow intent for the agent of the currentproject.- EXAMPLES
- To update the training phrases of an intent:
gcloudalphadialogflowintentsupdate12345678-1234-1234-1234-1234567890ab--training-phrases="example query" - POSITIONAL ARGUMENTS
- Intent resource - Intent to update. This represents a Cloud resource. (NOTE)Some attributes are not given arguments in this group but can be set in otherways.
To set the
projectattribute:- provide the argument
intenton the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
INTENT- ID of the intent or fully qualified identifier for the intent.
To set the
intentattribute:- provide the argument
intenton the command line.
- provide the argument
- provide the argument
- Intent resource - Intent to update. This represents a Cloud resource. (NOTE)Some attributes are not given arguments in this group but can be set in otherways.
- FLAGS
--is-fallback- If true, set this intent as a fallback intent.
--ml-enabled- If true, enable machine learning for the intent. Enabled by default, use
--no-ml-enabledto disable. --other-properties=[KEY=VALUE,…]- Map containing other properties to set on the intent.
Only the properties specified will be updated.
For more information on available properties, see:https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/Shared.Types/Intent
To set complex types, specify this flag with
--flags-file. For moreinformation, seegcloud topics flags-file.Other flags take precedence over properties specified here.
--priority=PRIORITY- Priority of the intent.
Higher numbers represent higher priorities. Zero or negative numbers mean thatthe intent is disabled. Default priority is 500000.
--responses=[RESPONSES,…]- Comma separated list of simple text responses to send to the user.
--training-phrases=[TRAINING_PHRASES,…]- List of examples or templates.
Can be provided as comma separated unannotated examples or as a list trainingphrase objects. To provide training phrase objects, specify the flag with
--flags-file.For example, use
--flags-file=flags.yaml, whereflags.yamlcontains:--training-phrases:-type:TEMPLATEparts:-text:Ilovethecolor-text:redentityType:<entity_type_id>alias:color
For more information on training phrases, see:https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/Shared.Types/Intent#TrainingPhrase
For more information on
--flags-file, seegcloud topicsflags-file.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - API REFERENCE
- This command uses the
dialogflow/v2API. The full documentation forthis API can be found at:https://cloud.google.com/dialogflow/ - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.