gcloud alpha dialogflow intents update

gcloud alpha dialogflow intents update - update a Dialogflow entity type for the agent of the current project
gcloud alpha dialogflow intents update INTENT [--is-fallback] [--no-ml-enabled] [--other-properties=[OTHER_PROPERTIES,…]] [--priority=PRIORITY] [--responses=[RESPONSES,…]] [--training-phrases=[TRAINING_PHRASES,…]] [GCLOUD_WIDE_FLAG]
(ALPHA) Update a Dialogflow intent for the agent of the current project.
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 other ways. To set the [project] attribute: provide the argument [intent] on the command line with a fully specified name; set the property [core/project]; provide the argument [--project] on the command line. This must be specified.
ID of the intent or fully qualified identifier for the intent.
If true, set this intent as a fallback intent.
If true, enable machine learning for the intent. Enabled by default, use --no-ml-enabled to disable.
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 more information, see gcloud topics flags-file.

Other flags take precedence over properties specified here.

Priority of the intent.

Higher numbers represent higher priorities. Zero or negative numbers mean that the intent is disabled. Default priority is 500000.

Comma separated list of simple text responses to send to the user.
List of examples or templates.

Can be provided as comma separated unannotated examples or as a list training phrase objects. To provide training phrase objects, specify the flag with --flags-file.

For example, use --flags-file=flags.yaml, where flags.yaml contains:

    - type: TEMPLATE
      - text: I love the color
      - text: red
        entityType: <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, see gcloud topics flags-file.

These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

This command uses the dialogflow/v2 API. The full documentation for this API can be found at: https://cloud.google.com/dialogflow/
To update the training phrases of an intent:
gcloud alpha dialogflow intents update 12345678-1234-1234-1234-1234567890ab --training-phrases="example query"
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access whitelist.