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.
Required. The name of the parent agent to export intents. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
Authorization requires the following IAM permission on the specified resource parent:
dialogflow.intents.get
Request body
The request body contains data with the following structure:
JSON representation
{"intents": [string],"dataFormat": enum (DataFormat),// Union field destination can be only one of the following:"intentsUri": string,"intentsContentInline": boolean// End of list of possible types for union field destination.}
Fields
intents[]
string
Required. The name of the intents to export. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.
Optional. The data format of the exported intents. If not specified, BLOB is assumed.
Union field destination. The destination to export. destination can be only one of the following:
intentsUri
string
Optional. The Google Cloud Storage URI to export the intents to. The format of this URI must be gs://<bucket-name>/<object-name>.
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.
intentsContentInline
boolean
Optional. The option to return the serialized intents inline.
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 endpoint exports intents from a Dialogflow CX agent using a long-running operation.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST to a specific endpoint with the parent agent's path as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a list of intent names to export, and optionally accepts data format and destination specifications.\u003c/p\u003e\n"],["\u003cp\u003eThe data format can be specified as \u003ccode\u003eBLOB\u003c/code\u003e, \u003ccode\u003eJSON\u003c/code\u003e or \u003ccode\u003eCSV\u003c/code\u003e, but will default to \u003ccode\u003eBLOB\u003c/code\u003e if none are provided.\u003c/p\u003e\n"],["\u003cp\u003eThe destination to export the intents to can be a Google Cloud Storage URI or a boolean to have the intents returned inline.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.agents.intents.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- [DataFormat](#DataFormat)\n- [Try it!](#try-it)\n\nExports the selected intents.\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`: [ExportIntentsMetadata](/dialogflow/cx/docs/reference/rest/v3/ExportIntentsMetadata)\n- `response`: [ExportIntentsResponse](/dialogflow/cx/docs/reference/rest/v3/ExportIntentsResponse)\n\n### HTTP request\n\n`POST https://{endpoint}/v3/{parent=projects/*/locations/*/agents/*}/intents: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/v3/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).\n\nDataFormat\n----------\n\nData format of the exported intents."]]