Method: projects.locations.agents.flows.import

Imports the specified flow to the specified agent from a binary file.

HTTP request

POST https://dialogflow.googleapis.com/v3beta1/{parent=projects/*/locations/*/agents/*}/flows:import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

Authorization requires the following IAM permission on the specified resource parent:

  • dialogflow.flows.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "importOption": enum (ImportOption),

  // Union field flow can be only one of the following:
  "flowUri": string,
  "flowContent": string
  // End of list of possible types for union field flow.
}
Fields
importOption

enum (ImportOption)

Flow import mode. If not specified, KEEP is assumed.

Union field flow. Required. The flow to import. flow can be only one of the following:
flowUri

string

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>.

flowContent

string (bytes format)

Uncompressed raw byte content for flow.

A base64-encoded string.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

ImportOption

Import option.

Enums
IMPORT_OPTION_UNSPECIFIED Unspecified. Treated as KEEP.
KEEP Always respect settings in exported flow content. It may cause a import failure if some settings (e.g. custom NLU) are not supported in the agent to import into.
FALLBACK Fallback to default settings if some settings are not supported in the agent to import into. E.g. Standard NLU will be used if custom NLU is not available.