Method: projects.locations.agents.flows.train

Trains the specified flow. Note that only the flow in 'draft' environment is trained.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

  • dialogflow.flows.train

Request body

The request body must be empty.

Response body

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

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.