Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Optional. The Google Cloud Storage URI to export the flow to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized flow is returned inline.
Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.
includeReferencedFlows
boolean
Optional. Whether to export flows referenced by the specified flow.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis operation exports a specified flow to a binary file, including any referenced resources like intents, entities, and webhooks.\u003c/p\u003e\n"],["\u003cp\u003eThe method is a long-running operation, returning an \u003ccode\u003eOperation\u003c/code\u003e type with specific metadata and a \u003ccode\u003eresponse\u003c/code\u003e field of type \u003ccode\u003eExportFlowResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method with a specific URL structure that includes path parameters, and it can export to a Google Cloud Storage URI or return the serialized flow inline.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can contain an optional \u003ccode\u003eflowUri\u003c/code\u003e to specify a Google Cloud Storage destination and an \u003ccode\u003eincludeReferencedFlows\u003c/code\u003e boolean to include other flows in the export.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires specific IAM permissions and one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.agents.flows.export\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nExports the specified flow to a binary file.\n\nThis method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields:\n\n- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n- `response`: [ExportFlowResponse](/dialogflow/cx/docs/reference/rest/v3beta1/ExportFlowResponse)\n\nNote that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.\n\n### HTTP request\n\n`POST https://{endpoint}/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:export`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/cx/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]