Google Dialogflow Test Cases API

The Test Cases API from Google Dialogflow — 8 operation(s) for test cases.

Business capability
Software Quality Engineering BC-4200.50

Operations 10

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 /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:import Import test cases into a CX agent · Dialogflow projects locations agents test cases import #
Ask an LLM
“Can I load conversation test cases from a file into my CX agent?”
“Does importing test cases from Cloud Storage overwrite existing ones?”
Tell an agent
Import test cases from {gcs_uri} into agent {agent} in project {project}, location {location}.
Bulk-load agent {agent}'s test cases from the file at {gcs_uri}.
PATCH /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId} Update a test case · Dialogflow projects locations agents test cases patch #
Ask an LLM
“How do I edit the expected turns of an existing test case?”
“Can I add tags or notes to a test case after creating it?”
Tell an agent
Update test case {test_case} on agent {agent} (project {project}, location {location}) with notes {notes}.
Set the tags of test case {test_case} to {tags}.
GET /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId} Get a test case · Dialogflow projects locations agents test cases get #
Ask an LLM
“Where can I see the turns and last result of one test case?”
“Can I look up a single CX test case by its ID?”
Tell an agent
Get test case {test_case} on agent {agent} in project {project}, location {location}.
Show the conversation turns of test case {test_case}.
POST /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}:run Run a single test case · Dialogflow projects locations agents test cases run #
Ask an LLM
“Can I run one test case against a particular environment?”
“What happens when I execute a test case without naming an environment?”
Tell an agent
Run test case {test_case} on agent {agent} in project {project}, location {location}.
Execute test case {test_case} against environment {environment}.
GET /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases List test cases on a CX agent · Dialogflow projects locations agents test cases list #
Ask an LLM
“Which test cases are defined for my CX agent?”
“Can I list test cases with only basic fields instead of full turns?”
Tell an agent
List the test cases on agent {agent} in project {project}, location {location}.
Show agent {agent}'s test cases using view {view}.
POST /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases Create a test case · Dialogflow projects locations agents test cases create #
Ask an LLM
“How do I write a new conversation test case for my agent?”
“Can I tag a new test case when I create it?”
Tell an agent
Create a test case named {display_name} on agent {agent} in project {project}, location {location}.
Add test case {display_name} to agent {agent} with tags {tags}.
GET /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:calculateCoverage Calculate test coverage for a CX agent · Dialogflow projects locations agents test cases calculate coverage #
Ask an LLM
“How much of my agent's intents or transitions do my test cases cover?”
“Can I measure test coverage for route groups instead of intents?”
Tell an agent
Calculate test coverage for agent {agent} in project {project}, location {location}.
Compute agent {agent}'s test coverage of type {type}.
POST /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:batchRun Run several test cases at once · Dialogflow projects locations agents test cases batch run #
Ask an LLM
“Can I run a batch of test cases in a single request?”
“Which environment do batch test runs use?”
Tell an agent
Batch-run test cases {test_cases} on agent {agent} in project {project}, location {location}.
Run tests {test_cases} of agent {agent} together in environment {environment}.
POST /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:batchDelete Delete several test cases at once · Dialogflow projects locations agents test cases batch delete #
Ask an LLM
“Can I delete many test cases in one call?”
“Is a bulk delete of test cases reversible?”
Tell an agent destructive · confirm first
Delete test cases {names} from agent {agent} in project {project}, location {location}.
Bulk-remove the test cases {names} on agent {agent}.
POST /v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:export Export test cases from a CX agent · Dialogflow projects locations agents test cases export #
Ask an LLM
“Can I export my agent's test cases to Cloud Storage?”
“Is it possible to export only test cases that match a filter?”
Tell an agent
Export the test cases of agent {agent} in project {project}, location {location} to {gcs_uri}.
Export agent {agent} test cases matching {filter} in format {data_format}.

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-test-cases-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-test-cases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dialogflow CX API (v3) - Conversational Agents Test Cases…
  version: v3
  description: Dialogflow CX (Conversational Agents) builds flow- and playbook-based agents with pages, routes, webhooks, tools, test cases, environments, experiments and data stores. 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=v3
  x-discovery-revision: '20260825'
  x-discovery-id: dialogflow:v3
servers:
- url: https://dialogflow.googleapis.com
  description: Dialogflow API
security:
- OAuth2:
  - https://www.googleapis.com/auth/cloud-platform
  - https://www.googleapis.com/auth/dialogflow
- BearerAuth: []
tags:


# --- truncated at 32 KB (50 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/google-dialogflow/refs/heads/main/openapi/google-dialogflow-test-cases-api-openapi.yml