Google Dialogflow Agent API

The agent API from Google Dialogflow — 14 operation(s) for agent.

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/projects/{projectsId}/locations/{locationsId}/agent:restore Restore a regional ES agent from a ZIP · Dialogflow projects locations agent restore #
Ask an LLM
“Can I replace my regional ES agent entirely with one from a ZIP backup?”
“Does restoring an agent in a specific location wipe its current intents and entities?”
Tell an agent destructive · confirm first
Restore the ES agent in project {project}, location {location}, from the ZIP at {agent_uri}.
Overwrite the regional agent in {location} for project {project} with the backup at {agent_uri}.
PATCH /v2/projects/{projectsId}/locations/{locationsId}/agent/fulfillment Update a regional agent's fulfillment · Dialogflow projects locations agent update fulfillment #
Ask an LLM
“How do I point my regional ES agent's fulfillment at a new webhook service?”
“Can I disable fulfillment for an agent in one location without deleting it?”
Tell an agent
Update the fulfillment of the ES agent in project {project}, location {location}, to use web service {service}.
Set regional fulfillment enabled to {enabled} for {location} in project {project}.
GET /v2/projects/{projectsId}/locations/{locationsId}/agent/fulfillment Get a regional agent's fulfillment · Dialogflow projects locations agent get fulfillment #
Ask an LLM
“Which webhook fulfillment is configured for my ES agent in a particular region?”
“Can I check whether fulfillment is enabled on a location-scoped agent?”
Tell an agent
Get the fulfillment settings of the ES agent in project {project}, location {location}.
Show the regional webhook fulfillment for {location} in project {project}.
GET /v2/projects/{projectsId}/locations/{locationsId}/agent/validationResult Get validation errors for a regional agent · Dialogflow projects locations agent get validation result #
Ask an LLM
“Are there validation errors in my regional ES agent after training?”
“Can I see agent validation results for one language in a specific location?”
Tell an agent
Get the validation result for the ES agent in project {project}, location {location}.
Show regional agent validation issues in {location} for project {project} in language {language_code}.
POST /v2/projects/{projectsId}/locations/{locationsId}/agent:export Export a regional ES agent to a ZIP · Dialogflow projects locations agent export #
Ask an LLM
“How do I back up my regional ES agent as a ZIP file?”
“Can I export an agent in a given location straight to Cloud Storage?”
Tell an agent
Export the ES agent in project {project}, location {location}.
Export the regional agent in {location} for project {project} to {agent_uri}.
POST /v2/projects/{projectsId}/locations/{locationsId}/agent:train Train a regional ES agent · Dialogflow projects locations agent train #
Ask an LLM
“How do I retrain my regional ES agent after changing intents?”
“Is training an agent in a specific location a long-running operation?”
Tell an agent
Train the ES agent in project {project}, location {location}.
Kick off regional agent training in {location} for project {project}.
POST /v2/projects/{projectsId}/locations/{locationsId}/agent:import Import into a regional ES agent from a ZIP · Dialogflow projects locations agent import #
Ask an LLM
“Can I merge intents and entities from a ZIP into my regional ES agent?”
“What happens to existing intents when I import a ZIP into an agent in one location?”
Tell an agent
Import the agent ZIP at {agent_uri} into project {project}, location {location}.
Merge the regional agent in {location} for project {project} with the content of {agent_uri}.
POST /v2/projects/{projectsId}/agent:restore Restore the default ES agent from a ZIP · Dialogflow projects agent restore #
Ask an LLM
“Can I fully replace my global ES agent with a ZIP backup?”
“Will restoring the default-location agent remove intents that aren't in the ZIP?”
Tell an agent destructive · confirm first
Restore the global ES agent in project {project} from {agent_uri}.
Replace the default-location agent of project {project} with backup {agent_uri}.
GET /v2/projects/{projectsId}/agent/validationResult Get validation errors for the default agent · Dialogflow projects agent get validation result #
Ask an LLM
“Does my global ES agent have validation warnings I should fix?”
“Can I see the default-location agent's validation result for one language?”
Tell an agent
Get the validation result for the global ES agent in project {project}.
Show default-location agent validation errors for project {project} in {language_code}.
POST /v2/projects/{projectsId}/agent:export Export the default ES agent to a ZIP · Dialogflow projects agent export #
Ask an LLM
“How can I download my global ES agent as a ZIP?”
“Can I write the default-location agent export to a Cloud Storage URI?”
Tell an agent
Export the global ES agent in project {project}.
Export project {project}'s default-location agent to {agent_uri}.
PATCH /v2/projects/{projectsId}/agent/fulfillment Update the default agent's fulfillment · Dialogflow projects agent update fulfillment #
Ask an LLM
“Can I change the webhook URL used by my global ES agent's fulfillment?”
“How would I switch off fulfillment for the default-location agent?”
Tell an agent
Update the global ES agent fulfillment in project {project} to web service {service}.
Set default-location fulfillment enabled to {enabled} for project {project}.
GET /v2/projects/{projectsId}/agent/fulfillment Get the default agent's fulfillment · Dialogflow projects agent get fulfillment #
Ask an LLM
“What fulfillment webhook does my global ES agent call?”
“Is fulfillment turned on for the default-location agent?”
Tell an agent
Get the fulfillment of the global ES agent in project {project}.
Show project {project}'s default-location webhook fulfillment config.
POST /v2/projects/{projectsId}/agent:import Import into the default ES agent from a ZIP · Dialogflow projects agent import #
Ask an LLM
“Can I add intents and entities from a ZIP to my global ES agent without a full restore?”
“What does importing into the default-location agent do with conflicting intents?”
Tell an agent
Import the agent ZIP at {agent_uri} into the global agent of project {project}.
Merge {agent_uri} into project {project}'s default-location agent.
POST /v2/projects/{projectsId}/agent:train Train the default ES agent · Dialogflow projects agent train #
Ask an LLM
“How do I start training my global ES agent?”
“Does the default-location agent need retraining after I edit entities?”
Tell an agent
Train the global ES agent in project {project}.
Retrain project {project}'s default-location agent now.

Documentation

Specifications

Other Resources

🔗
Discovery
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/discovery/google-dialogflow-v3.json
🔗
Discovery
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/discovery/google-dialogflow-v3beta1.json
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/cx-v3/session.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/cx-v3/agent.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/cx-v3/webhook.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/cx-v3/tool.proto
🔗
Pricing
https://cloud.google.com/dialogflow/pricing
🔗
Console
https://dialogflow.cloud.google.com/cx
🔗
Webhooks
https://cloud.google.com/dialogflow/cx/docs/concept/webhook
🔗
Discovery
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/discovery/google-dialogflow-v2.json
🔗
Discovery
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/discovery/google-dialogflow-v2beta1.json
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/v2/session.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/v2/agent.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/v2/intent.proto
🔗
Protobuf
https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/grpc/v2/webhook.proto
🔗
Console
https://dialogflow.cloud.google.com/
🔗
Webhooks
https://cloud.google.com/dialogflow/es/docs/fulfillment-webhook

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-dialogflow:google-dialogflow-agent-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-dialogflow-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dialogflow ES API (v2) Agent API
  version: v2
  description: Dialogflow ES (Essentials) builds conversational interfaces with intents, entity types, contexts, sessions, knowledge bases, conversation profiles and Agent Assist. This OpenAPI is a mechanical conversion of the first-party Google Discovery Document served by dialogflow.googleapis.com.
  contact:
    name: Google Cloud
    url: https://cloud.google.com/dialogflow/
  termsOfService: https://cloud.google.com/terms
  license:
    name: Google APIs Terms of Service
    url: https://developers.google.com/terms
  x-discovery-source: https://dialogflow.googleapis.com/$discovery/rest?version=v2
  x-discovery-revision: '20260825'
  x-discovery-id: dialogflow:v2
servers:
- url: https://dialogflow.googleapis.com
  description: Dialogflow API
security:
- OAuth2:
  - https://www.googleapis.com/auth/dialogflow
  - https://www.googleapis.com/auth/cloud-platform
- BearerAuth: []
tags:
- name: Agent
paths:
  /v2/projects/{projectsId}/locations/{locationsId}/agent:restore:
    post:
      operationId: dialogflow_projects_locations_agent_restore
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:restore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2RestoreAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent restore
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent/fulfillment:
    patch:
      operationId: dialogflow_projects_locations_agent_updateFulfillment
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      - name: updateMask
        in: query
        schema:
          type: string
      x-discovery-path-template: v2/{name}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent update fulfillment
      x-summary-source: derived
    get:
      operationId: dialogflow_projects_locations_agent_getFulfillment
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{name}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent get fulfillment
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent/validationResult:
    get:
      operationId: dialogflow_projects_locations_agent_getValidationResult
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: languageCode
        in: query
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent/validationResult
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2ValidationResult'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent get validation result
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent:search:
    get:
      operationId: dialogflow_projects_locations_agent_search
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: pageToken
        in: query
        schema:
          type: string
      - name: pageSize
        in: query
        schema:
          type: integer
          format: int32
      x-discovery-path-template: v2/{parent}/agent:search
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2SearchAgentsResponse'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent search
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent:export:
    post:
      operationId: dialogflow_projects_locations_agent_export
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:export
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2ExportAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent export
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent:train:
    post:
      operationId: dialogflow_projects_locations_agent_train
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:train
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2TrainAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent train
      x-summary-source: derived
  /v2/projects/{projectsId}/locations/{locationsId}/agent:import:
    post:
      operationId: dialogflow_projects_locations_agent_import
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: locationsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:import
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2ImportAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects locations agent import
      x-summary-source: derived
  /v2/projects/{projectsId}/agent:restore:
    post:
      operationId: dialogflow_projects_agent_restore
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:restore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2RestoreAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent restore
      x-summary-source: derived
  /v2/projects/{projectsId}/agent:search:
    get:
      operationId: dialogflow_projects_agent_search
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: pageToken
        in: query
        schema:
          type: string
      - name: pageSize
        in: query
        schema:
          type: integer
          format: int32
      x-discovery-path-template: v2/{parent}/agent:search
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2SearchAgentsResponse'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent search
      x-summary-source: derived
  /v2/projects/{projectsId}/agent/validationResult:
    get:
      operationId: dialogflow_projects_agent_getValidationResult
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      - name: languageCode
        in: query
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent/validationResult
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2ValidationResult'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent get validation result
      x-summary-source: derived
  /v2/projects/{projectsId}/agent:export:
    post:
      operationId: dialogflow_projects_agent_export
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:export
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2ExportAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent export
      x-summary-source: derived
  /v2/projects/{projectsId}/agent/fulfillment:
    patch:
      operationId: dialogflow_projects_agent_updateFulfillment
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      - name: updateMask
        in: query
        schema:
          type: string
      x-discovery-path-template: v2/{name}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent update fulfillment
      x-summary-source: derived
    get:
      operationId: dialogflow_projects_agent_getFulfillment
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/agent/fulfillment$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{name}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudDialogflowV2Fulfillment'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent get fulfillment
      x-summary-source: derived
  /v2/projects/{projectsId}/agent:import:
    post:
      operationId: dialogflow_projects_agent_import
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:import
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2ImportAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent import
      x-summary-source: derived
  /v2/projects/{projectsId}/agent:train:
    post:
      operationId: dialogflow_projects_agent_train
      tags:
      - Agent
      parameters:
      - name: projectsId
        in: path
        description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.'
        required: true
        schema:
          type: string
      x-discovery-path-template: v2/{parent}/agent:train
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleCloudDialogflowV2TrainAgentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLongrunningOperation'
        default:
          description: Error response (google.rpc.Status)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcStatus'
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/dialogflow
      - BearerAuth: []
      summary: Dialogflow projects agent train
      x-summary-source: derived
components:
  schemas:
    GoogleCloudDialogflowV2TrainAgentRequest:
      type: object
    GoogleCloudDialogflowV2RestoreAgentRequest:
      type: object
      properties:
        agentUri:
          type: string
        agentContent:
          type: string
          format: byte
    GoogleCloudDialogflowV2FulfillmentGenericWebService:
      type: object
      properties:
        uri:
          type: string
        username:
          type: string
        password:
          type: string
        isCloudFunction:
          type: boolean
        requestHeaders:
          type: object
          additionalProperties:
            type: string
    GoogleLongrunningOperation:
      type: object
      properties:
        name:
          type: string
        metadata:
          type: object
          additionalProperties:
            description: Properties of the object. Contains field @type with type URL.
        done:
          type: boolean
        response:
          type: object
          additionalProperties:
            description: Properties of the object. Contains field @type with type URL.
        error:
          $ref: '#/components/schemas/GoogleRpcStatus'
    GoogleCloudDialogflowV2ExportAgentRequest:
      type: object
      properties:
        agentUri:
          type: string
    GoogleCloudDialogflowV2Fulfillment:
      type: object
      properties:
        displayName:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        genericWebService:
          $ref: '#/components/schemas/GoogleCloudDialogflowV2FulfillmentGenericWebService'
        features:
          type: array
          items:
            $ref: '#/components/schemas/GoogleCloudDialogflowV2FulfillmentFeature'
    GoogleCloudDialogflowV2ValidationError:
      type: object
      properties:
        errorMessage:
          type: string
        severity:
          type: string
          enum:
          - SEVERITY_UNSPECIFIED
          - INFO
          - WARNING
          - ERROR
          - CRITICAL
          x-enumDescriptions:
          - ''
          - ''
          - ''
          - ''
          - ''
        entries:
          type: array
          items:
            type: string
    GoogleCloudDialogflowV2ImportAgentRequest:
      type: object
      properties:
        agentUri:
          type: string
        agentContent:
          type: string
          format: byte
    GoogleCloudDialogflowV2FulfillmentFeature:
      type: object
      properties:
        type:
          type: string
          enum:
          - TYPE_UNSPECIFIED
          - SMALLTALK
          x-enumDescriptions:
          - ''
          - ''
    GoogleCloudDialogflowV2Agent:
      type: object
      properties:
        timeZone:
          type: string
        defaultLanguageCode:
          type: string
        tier:
          type: string
          enum:
          - TIER_UNSPECIFIED
          - TIER_STANDARD
          - TIER_ENTERPRISE
          - TIER_ENTERPRISE_PLUS
          x-enumDescriptions:
          - ''
          - ''
          - ''
          - ''
        apiVersion:
          type: string
          enum:
          - API_VERSION_UNSPECIFIED
          - API_VERSION_V1
          - API_VERSION_V2
          - API_VERSION_V2_BETA_1
          x-enumDescriptions:
          - ''
          - ''
          - ''
          - ''
        parent:
          type: string
        matchMode:
          type: string
          enum:
          - MATCH_MODE_UNSPECIFIED
          - MATCH_MODE_HYBRID
          - MATCH_MODE_ML_ONLY
          x-enumDescriptions:
          - ''
          - ''
          - ''
        supportedLanguageCodes:
          type: array
          items:
            type: string
        avatarUri:
          type: string
        description:
          type: string
        displayName:
          type: string
        classificationThreshold:
          type: number
          format: float
        enableLogging:
          type: boolean
    GoogleCloudDialogflowV2SearchAgentsResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/GoogleCloudDialogflowV2Agent'
        nextPageToken:
          type: string
    GoogleCloudDialogflowV2ValidationResult:
      type: object
      properties:
        validationErrors:
          type: array
          items:
            $ref: '#/components/schemas/GoogleCloudDialogflowV2ValidationError'
    GoogleRpcStatus:
      type: object
      properties:
        message:
          type: string
        code:
          type: integer
          format: int32
        details:
          type: array
          items:
            type: object
            additionalProperties:
              description: Properties of the object. Contains field @type with type URL.
  securitySchemes:
    OAuth2:
      type: oauth2
      description: Google OAuth 2.0. Scopes are declared per operation in the Discovery Document.
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/dialogflow: View, manage and query your Dialogflow agents
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Google OAuth 2.0 access token or service-account-minted bearer token, sent as Authorization: Bearer <token>.'
externalDocs:
  description: Dialogflow ES documentation
  url: https://cloud.google.com/dialogflow/es/docs