
Customer Experience Agent StudioAuthorCloudBrum editorial teamCreatedLast reviewedReading time~18 minLevelBeginner to advanced
Google Cloud · Gemini Enterprise for CX · Conversational agents
Customer Experience Agent Studio builds conversational applications that can answer customers and use configured tools. Google presents it as the evolution of Dialogflow CX, with a new application and deployment model. That history does not make the APIs interchangeable: current Studio examples use the CES v1 session service, while existing Dialogflow CX flows retain their own API and pricing. Before choosing either path, decide which customer tasks the agent may perform and how those actions will be checked.
On this page (17 sections)
Mind map: Customer Experience Agent Studio at a glance
Free to share. The downloaded image includes the CloudBrum link.
Key features (summary)
- A visual agent applicationBuild an application around the customer work it should handle, with agents and instructions that fit those tasks. A long instruction paragraph is not an evaluation plan or an authorization policy.
- Tools and delegated workAn agent can call configured capabilities to retrieve information or carry out a permitted action. Start with a small tool surface and explicit argument rules; giving the agent a general administrative API makes every misunderstanding harder to contain.
- Multimodal customer interactionsThe current product supports text, audio and image interactions. Test the input modes you intend to expose, including what happens when a customer changes channel or supplies an image that the task cannot use.
- Deployments separate from editingA deployment gives a client a defined application target. Keep the application version behind it in the release evidence; a successful conversation with an edited draft does not establish how the deployed experience behaves.
- Evaluation and tracing in the design processUse repeatable scenarios to inspect answers, tool selection and task outcomes. A friendly response can conceal an incorrect tool argument or a missing escalation, so evaluation needs more than a text-similarity score.
- IAM at the runtime boundaryThe caller needs access to use the agent application, while business tools have their own access path. Granting a client permission to start a session must not turn every customer-supplied identifier into an authorized lookup.
Basic concepts
- Current Studio versus legacy Dialogflow
- CX Agent Studio is the current product. Google still publishes separate documentation for legacy Dialogflow CX and ES. The older flow model, its resource names and its price units are not drop-in substitutes for a current Studio application.
- Application and agent
- The application contains the conversational configuration and its agents. Separate agent responsibilities only when the task benefits from that routing; extra delegation can add latency and make failures harder to explain.
- Version and deployment
- A version captures application configuration. A deployment is the resource the runtime example explicitly selects. Record both during a release so a later edit is not confused with the version that passed the test.
- Session
- A session carries one conversation’s context. Use a fresh opaque identifier for a different customer interaction, but retain it for later turns of the same interaction. Keep ownership and expiry rules in the application that starts it.
- Output and turn completion
- RunSession can return several outputs, including text, tool work and control information. Look for the relevant completion state and process the full output list instead of assuming the first text item tells the whole story.
- Client-executed tool request
- If tool work is delegated to a client, the application must validate the requested operation and provide the appropriate response. The example detects that condition and stops short of executing it; model-produced names and arguments are not a trusted dispatch table.
How to create & configure it
Deploy a deliberately limited support agent
- Define what the agent may resolveChoose a narrow support task, the information it may reveal and the actions it must never take automatically. Include examples where the customer asks for another person’s data or provides a misleading document.
- Create the application in the Studio consoleUse a supported location and configure the root agent’s purpose. Begin with synthetic content and no consequential write tools so the first evaluation cannot change real customer records.
- Add a small, authenticated tool interfaceFor an external business API, use a controlled service such as an appropriate Cloud Run backend. Validate identity, record ownership, argument ranges and repeated-operation behavior at that service.
- Build an outcome-based evaluation setInclude ordinary requests, ambiguous wording, unsupported tasks and escalation cases. For voice, test interruptions and recognition failures too. Inspect tool traces when the displayed answer looks correct for the wrong reason.
- Create and test an API deploymentCreate the application version/deployment through the current Studio workflow and retain the full deployment resource name. Use the CES v1 session API shown below; Dialogflow CX v3 detectIntent targets a different resource model.
- Release with a recovery pathMonitor the deployed version, latency and unresolved work. Decide how the client handles pending tool requests, a broken connection and a request whose business effect is uncertain before opening the agent to production traffic.
A useful negative test is a customer asking the agent to ignore its instructions and invoke a privileged tool. The test should prove that the backend refuses the action, not merely that one model response sounded cautious.
Common issues after configuration
| Symptom | Likely cause | What to check / fix |
|---|---|---|
| A Dialogflow CX request does not address the new application | The client mixes legacy v3 agent/session names with the current CES API | Use the application, deployment and session naming documented for Studio. Keep legacy flow integrations separate until a deliberate migration has been designed and tested. |
| A session cannot reach the intended deployment | The application/location IDs or deployment reference are wrong | Compare the full resource names with the console deployment. An editor URL or a bare display name is not the runtime deployment resource. |
| The first text looks complete but work remains | The client ignores additional outputs or a delegated tool request | Inspect every output and the turn-completed signal. Route unimplemented client tool work to a controlled exception path rather than silently marking the customer task resolved. |
| A development test works but the service identity is denied | The tested user and runtime principal have different IAM permissions | Test using the production workload identity. Distinguish permission to run sessions from permissions needed to edit the application or access a downstream business API. |
| The estimate is far below the bill | Legacy per-turn pricing was applied to current Studio sessions, or session limits were missed | Use the product’s current session terms and the measured chat/voice duration. A reused application session ID is not a promise that all later interaction falls into one billable unit. |
| Answers change after a release | The deployment, instructions, tool schema or supporting data changed | Keep a versioned evaluation record and compare task outcomes against the prior release. Examine failed tool calls and escalations before blaming wording alone. |
Use cases: when and where to use it
Good fit
- A customer-facing workflow that benefits from generative dialogue and narrowly defined tools.
- A team that can evaluate the agent’s actions as well as its answers.
- A supported voice or multimodal experience with an explicit handoff and recovery design.
- An application whose business services can enforce access independently of the generated conversation.
Consider something else
- An existing deterministic Dialogflow CX flow already meets the task: evaluate migration against its API, operational behavior and commercial terms.
- A basic language-model response is sufficient: compare a direct Gemini integration rather than adding an entire conversation platform.
- A high-impact transaction has no reliable authorization or reconciliation path: keep it outside autonomous tool execution.
- The data or deployment location cannot meet the organization’s requirements under the available service configuration.
Pros: why consider it?
Why teams choose it
- The application builder brings conversation design, tool configuration and evaluation into one workflow.
- A deployed application can support richer interaction than a fixed intent menu.
- Explicit runtime outputs let a client distinguish text from tool and conversation-control events.
- Versioned evaluations can expose regressions before a changed agent reaches customers.
Trade-offs to weigh
- Natural-language behavior needs scenario testing beyond a handful of successful prompts.
- Tools and delegated agents can increase latency and expand the number of failure paths.
- Current Studio and legacy Dialogflow have different APIs and commercial models to understand.
- A conversational application still depends on secure and reliable business integrations.
Common threats, vulnerabilities & risks
| Risk | Severity | Why it matters | Mitigation |
|---|---|---|---|
| A tool returns or changes an unauthorized record | High | The model selects a plausible identifier supplied by an untrusted user. | Enforce customer and record permissions inside the business service before returning data or changing state. |
| Untrusted content redirects an agent | High | A retrieved page, tool result or uploaded image contains instructions mixed with customer information. | Keep source content distinct from trusted configuration and constrain the operations each tool can perform. |
| A lost reply leads to a repeated write | High | The backend may have processed an action before the client observes a timeout. | Give consequential operations an idempotency/reconciliation mechanism instead of replaying the entire conversation turn. |
| A release has no reproducible evaluation evidence | Medium | The team tests an editable configuration without recording the deployed version and data dependencies. | Store a release record and rerun a fixed set of task and access tests against the selected deployment. |
| A partial output is presented as a resolved task | Medium | The client displays one response and ignores pending tool work or control outputs. | Model the output protocol explicitly and show an unresolved or handoff state when work cannot be completed. |
| Traces expose sensitive conversation content | High | Debugging exports can contain customer requests, tool arguments and returned business data. | Limit content collection and restrict trace access, retention and exports. |
Performance optimisation
- Measure the full customer turn, including any agent delegation and business-tool round trips.
- Start with the smallest useful tool set so the agent does not need to search through unrelated operations.
- Compare voice input, interruption and output latency with the actual channel hardware and network.
- Reuse supported service clients and credential caching for repeated calls.
- Test deployment changes with the same scenario set rather than treating lower latency as proof of equivalent behavior.
- Separate session-processing errors from downstream-tool timeouts when choosing alerts and recovery actions.
Reduce monthly cost
Session pricing makes conversation length and modality part of the estimate. Count the interactions your task actually needs, then check where the published session limits create another charge or voice overage.
- Use the current Studio session definition and limits when forecasting usage.
- Separate chat-only, voice and mixed sessions instead of averaging every conversation into one duration.
- Measure long calls and large turn counts because the published limits affect billing.
- Budget external tool hosting, retained data and connected systems around the included platform capabilities.
- Read legacy migration pricing guidance before applying Dialogflow CX rates to a new Studio application.
- Track cost per safely resolved task alongside the number of sessions started.
The public legacy Conversational Agents table lists per-turn/audio rates. Current CX Agent Studio uses a different session offer; those tables cannot be mixed to claim one universal Dialogflow price.
Security optimisation
- Use a workload identity with the required session permissions rather than a downloaded service-account key.
- Keep authoring permissions separate from the runtime principal used by the client backend.
- Validate every protected tool action at the business API, including the customer identity and object being accessed.
- Do not execute arbitrary tool names or URLs returned in model-generated content.
- Review the supported location, conversation retention and trace access for the actual application configuration.
- Keep tokens and sensitive session exports out of public clients, analytics fields and support screenshots.
Governance & compliance
Guardrails
- Document the agent’s allowed tasks, forbidden operations and handoff conditions.
- Require task, access-control and adverse-input tests before a deployment changes.
- Assign owners for tool schemas, data sources and conversation-quality review.
Evidence after deployment
- Inspect unresolved tasks and incorrect tool actions, not only positive feedback.
- Track latency, session duration, voice overage and downstream failures.
- Retest data access and retention when a new tool or channel is added.
An evaluation score describes the scenarios and configuration that produced it. Keep the failed cases and the deployment reference so reviewers can tell which customer tasks were actually tested.
Reduce carbon footprint
- Remove unnecessary agent handoffs and repeated tool requests when they do not improve task completion.
- Run targeted regression scenarios after a focused change instead of regenerating every test artifact without a reason.
- Expire unneeded conversation exports and diagnostic copies according to policy.
- Treat provider sustainability reports as context; they do not measure emissions for an individual Studio session.
Pricing
Purchase options
Chat sessions Published list price: $0.50
The current table lists $0.50 per chat session before eligible discounts, with additional session charging after the published turn or inactivity limits.
Voice sessions Published list price: $0.50
The current list price is $0.50 per voice session. Beyond five minutes, the page lists an overage of $0.0025 per second.
Mixed conversations Check the voice rule
The pricing page says a chat session that switches to voice is billed as a voice session. Do not count the two modes as unrelated free allowances.
Legacy flow migration Separate commercial terms
Dialogflow CX flows retain different pricing. Google directs legacy customers considering Studio migration or integration to discuss pricing with sales.
What you actually pay for
- Studio sessions and applicable voice overage under the current terms.
- Additional chat sessions after 50 turns or 30 minutes of inactivity as described by the pricing page.
- External APIs, hosting, retained data and other connected services outside the included platform features.
- Any separate commercial or migration arrangement that applies to the account.
The current CX Agent Studio pricing page, checked on 21 November 2026, supplies these list rates and limits. Legacy Conversational Agents pricing is linked separately so a flow-based workload is not estimated using the wrong meter.
Important code references
Create and test the application in the current Studio console, then create an API deployment. The CLI and Python examples send a synthetic text turn to that explicit deployment. Terraform only enables the API and creates a runtime identity with a project-level role in a test project; it does not build an application or its tools. C# inspects the Python JSON export and flags client tool work instead of executing it.
# Existing Studio app and API deployment; use an authorized caller.
CES_PROJECT=replace-project
CES_LOCATION=us
CES_APP_ID=replace-app-id
CES_DEPLOYMENT_ID=replace-deployment-id
CES_SESSION_ID=replace-one-opaque-conversation-id
gcloud services enable ces.googleapis.com --project "$CES_PROJECT"
CES_APP="projects/$CES_PROJECT/locations/$CES_LOCATION/apps/$CES_APP_ID"
cat > session-request.json <<JSON
{"config":{"session":"$CES_APP/sessions/$CES_SESSION_ID",
"deployment":"$CES_APP/deployments/$CES_DEPLOYMENT_ID"},
"inputs":[{"text":"Which support topics can you help with?"}]}
JSON
CES_TOKEN=$(gcloud auth print-access-token) || exit 1
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $CES_TOKEN" -H "Content-Type: application/json" \
--data @session-request.json \
"https://ces.googleapis.com/v1/$CES_APP/sessions/$CES_SESSION_ID:runSession"
# No automatic POST replay. Inspect all outputs, not just the first text field.
# Never substitute a Dialogflow CX v3 agent path for this application resource.
terraform {
required_providers {
google = { source = "hashicorp/google", version = "~> 6.0" }
}
}
variable "project_id" { type = string }
provider "google" { project = var.project_id }
resource "google_project_service" "ces" {
project = var.project_id
service = "ces.googleapis.com"
disable_on_destroy = false
}
resource "google_service_account" "runtime" {
project = var.project_id
account_id = "cloudbrum-cx-runtime"
display_name = "CX session runtime"
}
resource "google_project_iam_member" "runtime" {
project = var.project_id
role = "roles/ces.client"
member = format("serviceAccount:%s", google_service_account.runtime.email)
depends_on = [google_project_service.ces]
}
# This is a test-project runtime grant, not authoring access.
# Create/version/deploy the agent application separately in Studio.
# Use workload identity for the runtime; no service-account key is created here.
# pip install google-cloud-ces
# Local development: gcloud auth application-default login (separate from gcloud login).
# Production: use the host's workload identity and the required CES runtime role.
import os
import sys
from google.cloud import ces_v1 as ces
from google.api_core.client_options import ClientOptions
def run_text_turn(client, app_name, deployment_id, session_id, text):
request = ces.RunSessionRequest(
config=ces.SessionConfig(
session=f"{app_name}/sessions/{session_id}",
deployment=f"{app_name}/deployments/{deployment_id}",
),
inputs=[ces.SessionInput(text=text)],
)
# Tools may have side effects; do not automatically replay a timed-out turn.
return client.run_session(request=request, retry=None, timeout=30)
def output_status(response):
pending_tools = any(o.tool_calls.tool_calls for o in response.outputs)
completed = any(o.turn_completed for o in response.outputs)
if pending_tools:
return "client_tool_work_pending; validate before any execution"
if not completed:
return "turn_not_marked_complete; inspect all outputs"
return "turn_marked_complete; verify any business outcome separately"
if __name__ == "__main__":
# python cx_turn.py APP_RESOURCE DEPLOYMENT_ID SESSION_ID "test text" result.json
app, deployment, session, text, output_path = sys.argv[1:]
with ces.SessionServiceClient(
client_options=ClientOptions(api_endpoint="ces.googleapis.com")
) as client:
result = run_text_turn(client, app, deployment, session, text)
fd = os.open(output_path, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
with os.fdopen(fd, "w", encoding="utf-8") as target:
target.write(ces.RunSessionResponse.to_json(
result, preserving_proto_field_name=False
))
print(output_status(result))
# The example never dispatches tool names or prints conversation contents.
// .NET console app: dotnet run -- result.json
// Reads the current CES v1 JSON export; no cloud credentials or tool execution.
using System.Text.Json;
using var json = JsonDocument.Parse(File.ReadAllText(args[0]));
if (!json.RootElement.TryGetProperty("outputs", out var outputs) ||
outputs.ValueKind != JsonValueKind.Array)
{
Console.WriteLine("No output array; inspect the session result.");
return;
}
var completed = false;
var pending = false;
foreach (var output in outputs.EnumerateArray())
{
completed |= output.TryGetProperty("turnCompleted", out var done) &&
done.ValueKind == JsonValueKind.True;
pending |= output.TryGetProperty("toolCalls", out var calls) &&
calls.TryGetProperty("toolCalls", out var items) &&
items.ValueKind == JsonValueKind.Array && items.GetArrayLength() > 0;
}
Console.WriteLine(pending
? "Client tool work is pending; do not dispatch untrusted operations."
: completed
? "Turn marked complete; reconcile any business operation separately."
: "Turn is not marked complete; inspect all outputs.");
Best videos to explore
This official Google video introduces the current CX Agent Studio product. Older Dialogflow CX tutorials describe a different API and should not be used to assemble the CES v1 request below.
Interview questions
BasicWhat is Customer Experience Agent Studio?
It is Google Cloud’s current platform for building, evaluating and deploying conversational agent applications, including multimodal interactions and configured tools. It is part of Gemini Enterprise for Customer Experience.
BasicIs it identical to Dialogflow CX?
No. Google describes Studio as an evolution of Dialogflow CX and maintains separate legacy CX/ES documentation. Current Studio applications use the CES service and session model; legacy CX flows use different APIs and pricing.
BasicCan I keep a deterministic Dialogflow CX flow?
Evaluate the existing flow against your requirements rather than assuming a product-name change requires an immediate rewrite. Google publishes separate flow documentation and pricing, and directs customers considering Studio migration to discuss the applicable commercial terms.
IntermediateWhich API do the current examples call?
They call CES v1 RunSession with a full application session resource and an explicit deployment. A Dialogflow CX v3 detectIntent agent path is not a substitute for those identifiers.
IntermediateShould the session ID change on every message?
Retain it while continuing the same conversation, and use a different opaque identifier for a separate interaction. The application must keep customer ownership and expiry rules around that state.
IntermediateHow do application versions and deployments differ?
A version captures configuration, while the deployment selects what the runtime uses. Record the version behind the tested deployment and rerun representative scenarios when that target changes.
IntermediateCan the client read only the first text output?
It should process the full result. Other outputs can contain tool work or control state, and a text response alone may not indicate that the turn or customer task is complete.
IntermediateWhat should happen when client tool work is returned?
Validate the requested operation, arguments and customer permissions through a trusted application path. Do not execute arbitrary names or URLs. The example reports pending work and deliberately does not implement a general dispatcher.
AdvancedDoes the session runtime role authorize every business action?
No. IAM permission to run an agent session and authorization to access a customer’s business records are distinct. The protected API must enforce its own rules before returning data or carrying out a write.
AdvancedHow is current Studio priced?
The checked list table uses chat/voice sessions, with additional chat-session limits and voice overage rules. Read the current pricing page for the account’s terms; do not substitute legacy per-turn or audio rates.
AdvancedWhat happens to pricing when chat switches to voice?
The current pricing page says that conversation is billed as a voice session. Include the applicable voice limits and overage when estimating mixed experiences.
AdvancedHow does it compare with Amazon Lex and Azure Bot Service?
Lex provides managed intent-and-slot dialogue. Azure Bot Service is the channel registration layer in an application stack you operate. Current Studio provides a generative agent application environment. Compare the task’s predictability, tools, ownership, evaluation effort and billing units across the complete design.
Similar or alternative services on other clouds
| Capability | AWS | Azure | Google Cloud |
|---|---|---|---|
| Service | Amazon Lex | Azure Bot Service | CX Agent Studio |
| Conversation model | Intent and slot dialogue | Chosen application/SDK logic | Generative agent application and tools |
| Runtime call | Lex V2 alias/locale session | Channel activity delivery to the host | CES v1 application/deployment session |
| Release target | Published bot version through an alias | Hosted code, channel and identity configuration | Application version exposed by a deployment |
| Action boundary | Application or Lambda fulfillment | Authenticated business code | Authorized tool interface |
| Legacy distinction | V1 examples are not V2 requests | Archived Bot Framework SDK differs from Agents SDK | Dialogflow CX flows have separate APIs and rates |
A protected tool endpoint can run on Cloud Run, with application-owned state stored in a suitable Firestore design. Use Cloud Monitoring alongside the platform’s diagnostic evidence where appropriate. A direct Gemini API application is another option when a full customer-conversation platform is unnecessary.
Did you find this article helpful?
Your answer helps us improve this page for the next reader.
Sources and further reading
CloudBrum wrote this page in its own words, using the provider’s public documentation listed below as the reference. Features, limits, names and prices change, so confirm anything that matters on the provider’s own pages before you decide.
- Current CX Agent Studio productGoogle Cloud
- Current Studio documentation and legacy linksGoogle Cloud
- Create an agent applicationGoogle Cloud
- Application deploymentGoogle Cloud
- CES v1 API accessGoogle Cloud
- Agent evaluationGoogle Cloud
- Studio access controlGoogle Cloud
- Runtime IAM role and permissionsGoogle Cloud
- Current Studio pricing and session limitsGoogle Cloud
- Legacy Dialogflow CX flow basicsGoogle Cloud
- Legacy Conversational Agents pricingGoogle Cloud
