Data scientists, ML engineers, AI engineers, forward deployed engineers, and platform teams in financial services and insurance
Overview and goals
The challenge
Teams building customer-facing agents tend to hand orchestration to a cloud vendor instead of building their own agent runtime. AWS has Bedrock AgentCore, Microsoft has Foundry Agent Service, and Google has the Gemini Enterprise Agent Platform alongside Conversational Agents (Dialogflow CX). In Conversational Agents, the agent follows a playbook, a set of plain language instructions plus the tools it's allowed to use, to hold a conversation across many turns, decide which tool to call, and pass one tool's output into the next. Standardizing on one of these platforms takes the runtime off the team's plate. The catch is that the conversation now runs in the vendor's cloud, while the models it calls are still hosted, versioned, and governed on a different platform.
For a team running on Domino, each model keeps its own access token, its monitored endpoint, and a run history tied to a Domino Project. But when a playbook calls those models from Google Cloud, Domino never sees the calls. Which tool ran, in what order, and with what inputs is recorded only in Google's Conversational Agents console, separate from each model's history in Domino.
Regulated teams feel this first. Insurers, banks, and other financial services firms work under model risk frameworks that expect a model-driven decision to trace back to a specific model version and run. A transcript shows what the agent said, but not which model version produced each answer or what data it used. A tool call that scores a claim, prices a trade, or retrieves a document needs the same audit trail it would carry if the model had been called directly, but today that record sits in Google's console, apart from the platform that governs the model.
Credentials carry a similar cost. Each Domino endpoint issues its own access token, and the playbook can only call that endpoint if Google holds a copy of the token. Every tool you add puts another Domino token in Google's tool configuration, and another credential to store and rotate.
The solution
If your organization has already standardized on Google for its agents, this blueprint shows how to keep your models governed in Domino without moving the conversation layer off Google. Domino keeps hosting, versioning, and monitoring the models a playbook calls, the same way it does for any other Domino endpoint. A Conversational Agents playbook handles the conversation on top of them, and a Domino-hosted gateway App brings each turn's record back into Domino. The GitHub repository associated with this blueprint is a working reference you can install and adapt to your own models. It includes:
A playbook in Google Cloud orchestrates Domino-hosted tools in whatever order the use case needs. The reference implementation chains fraud scoring, then settlement prediction (which needs the fraud result), then claim summarization over case documents, but the pattern holds for any set of tools a playbook instruction can describe.
Tool calls that go straight to Domino endpoints. Each tool authenticates with an access token scoped to one endpoint, which Domino issues and can revoke. Any model already deployed in Domino, whether a classifier, a regression model, or a RAG pipeline, becomes callable from the conversation while it keeps running on Domino's infrastructure, under Domino's access controls. Google holds only the token, and in production that token is stored in Google Secret Manager.
A tracing path back into Domino. The gateway calls detectIntent with the FULL response view, which is the view that returns traceBlocks: the playbook invocation, each tool call with its inputs and outputs, and the LLM turns. The gateway replays these as trace spans inside a DominoRun in Domino Experiments, so every turn appears as a trace on the agent's Performance tab, and it writes a child run per tool call so each tool's inputs and outputs can be inspected on their own.
A Domino-hosted FastAPI gateway that is the entry and exit point for every request. The user's prompt enters through the App, which calls the playbook and returns the answer with a "Models called" footer listing each tool result. The reference implementation adds human review on top: a HIGH fraud risk classification, or a settlement recommendation above a configurable dollar threshold, is held in a review queue for a person to approve or reject before the answer reaches the user. The same hook works for any tool result worth checking before it ships.
Architecture overview:
When to consider Gemini Enterprise Agent Platform with Domino
Your organization runs agents on Gemini Enterprise Agent Platform but governs models inside Domino. Google keeps the conversation and orchestration, and Domino keeps the models, their governance, and the record of every call. If a classifier, a regression model, or a RAG pipeline already works on its own in Domino, wrapping it as a playbook tool is an integration project, not a modeling one.
Your industry requires each tool call to trace back to a model version and run. Google governs the agent layer well. In the Gemini Enterprise Agent Platform, Agent Identity gives each agent a unique cryptographic ID, Agent Registry indexes the agents and tools an organization uses, Agent Gateway enforces security policies on agent traffic, and agent observability records execution traces. That governance describes the agent and its connections. A tool registered as an external URL is a destination, so nothing on the Google side records which model version answered or what data and code produced it. For a model hosted in Domino, that lineage exists only if something carries each call back to Domino, which is what this integration does.
A conversation needs to call several tools in a specific, data-dependent order. When one tool's output feeds the next, such as a settlement estimate that depends on a fraud score, the playbook instruction encodes that sequence in plain language instead of a hardcoded pipeline.
A risk policy requires a person to check a consequential answer before it ships. Whatever counts as high risk in your use case (a fraud flag, a large payout, a clinical recommendation), the same gating pattern holds the response for human approval before it reaches the end user.
How to integrate Gemini Enterprise Agent Platform and Domino
Step 1. Prerequisites
Domino access. You need permission in a Domino Project to build Compute Environments, deploy Domino endpoints, and deploy an App as an agent.
A GCP project with an admin-capable service account. Enable the Dialogflow API (dialogflow.googleapis.com), then create a service account with the Dialogflow API Admin role (roles/dialogflow.admin), which Step 4 needs to create the agent. Once the agent exists, roles/dialogflow.client is enough for the running App. Download the service account's JSON key and keep it outside the Git repository. Creating the service account usually needs someone with IAM admin rights on the GCP project.
A Gemini API key (GOOGLE_API_KEY), used by the claim summarizer's RAG step.
Compute Environments for the App and the endpoints. The App needs the Domino agents SDK (domino.agents.tracing, domino.agents.logging) and mlflow, which the Domino base environment provides; agent/app.sh installs agent/requirements.txt (FastAPI, uvicorn, google-cloud-dialogflow-cx, google-auth, tiktoken) on top at startup. The endpoints need the packages in serve/requirements.txt (xgboost, scikit-learn, faiss-cpu, and the langchain packages). Domino endpoints don't install packages at deploy time, so add those to the environment's Dockerfile and build it before Step 3. One environment can serve both the App and the endpoints if it has both sets of packages.
Step 2. Configure
Clone the repository into a Domino Project, open a Workspace that uses the App environment, and copy the config template:
Bash / Shell
cd AgentBuilder-Domino
cp config.env.example config.env
Fill in GCP_PROJECT_ID, VERTEX_LOCATION, GOOGLE_APPLICATION_CREDENTIALS, and GOOGLE_API_KEY for GCP, and DOMINO_DOMAIN and DOMINO_API_KEY for Domino. Inside a Workspace, Domino already sets DOMINO_API_HOST, DOMINO_PROJECT_ID, and DOMINO_ENVIRONMENT_ID, so leave those blank unless the endpoints should use a different environment from the Workspace, in which case set DOMINO_ENVIRONMENT_ID to that environment's ID. Leave VERTEX_AGENT_ID and the three *_MODEL_ID and *_TOKEN fields blank; you fill them in during Steps 3 and 4. Every setup script runs through run.sh, which loads config.env and keeps the Workspace's own value for any key left blank:
Bash / Shell
./run.sh python3 <script>
config.env is gitignored, so it never reaches the deployed App. Step 5 sets the values the App needs as App environment variables instead.
Step 3. Deploy the Domino endpoints
Bash / Shell
./run.sh python3 deploy/deploy_endpoints.py
This creates the fraud-score, settlement-predictor, and claim-summarizer endpoints through Domino's /api/modelServing/v1/modelApis API. It's safe to rerun, because it skips any endpoint that already exists. Paste the printed model IDs into FRAUD_MODEL_ID, SETTLEMENT_MODEL_ID, and SUMMARIZER_MODEL_ID. Then open the claim-summarizer endpoint, add GOOGLE_API_KEY under its environment variables, and republish its version so the key takes effect.
Next, copy each endpoint's access token (Settings > Invocation > Add Endpoint Access Token) into FRAUD_TOKEN, SETTLEMENT_TOKEN, and SUMMARIZER_TOKEN, and smoke-test the endpoints:
Bash / Shell
./run.sh python3 phase0/test_endpoints.py
Step 4. Create the agent and register the tools
Start by creating the agent shell, a Conversational Agents (Dialogflow CX) agent with a starting playbook, and confirming the round trip works:
Bash / Shell
./run.sh python3 phase0/validate_roundtrip.py
With VERTEX_AGENT_ID blank, the script creates an agent named domino-phase0-test with a domino-claims-triage playbook (or reuses that agent if it already exists), sends one test prompt with the FULL response view, replays the returned traceBlocks into a Domino Experiments run, and prints the agent's resource name. With VERTEX_AGENT_ID set, it skips creation and only runs the round-trip check against that agent. Paste the trailing agent ID into VERTEX_AGENT_ID now. The next script exits without it, and the App can't start without it.
Then register the tools and write the playbook instruction:
Bash / Shell
./run.sh python3 vertex/register_tools.py
This fills the __DOMINO_DOMAIN__ and __MODEL_ID__ placeholders in each vertex/openapi_*.yaml spec from config.env, creates or updates each tool on the agent, and rewrites the domino-claims-triage playbook with the full instruction and its tool bindings. Each tool authenticates through an ApiKeyConfig that sends the endpoint's access token, base64-encoded as token:token, as a Basic auth value in the Authorization header. Rerun the script whenever a tool definition, endpoint URL, or the playbook instruction changes; reruns update the existing tools and playbook in place.
The script stores each Basic auth header as a raw value in the tool's ApiKeyConfig. That's fine while you prove the integration works. Before it runs anywhere real, move the tokens into Secret Manager, as described in "Moving tool auth off raw tokens" below.
Step 5. Deploy the gateway as an agent in Domino
In the Domino Project, go to Deploy > Apps & Agents and deploy the App as an agent, with AgentBuilder-Domino/app.sh as the launch file. That root script loads config.env if one is present and then starts agent/app.sh, so point the launch file at it rather than at agent/app.sh. Deploying as an agent, rather than a plain App, connects the App's traces to the agent's Performance tab. Domino sets DOMINO_AGENT_IS_PROD=true and DOMINO_APP_ID for deployed agents, which puts the agent's SDK into production mode.
Select the App Compute Environment from Step 1 and add these App environment variables:
VERTEX_AGENT_ID and GCP_PROJECT_ID, which the App requires to start.
GOOGLE_CREDENTIALS_JSON, the contents of the same service account key, minified to one line. It replaces GOOGLE_APPLICATION_CREDENTIALS because the App has no key file on disk.
VERTEX_LOCATION, if your agent isn't in us-central1.
SETTLEMENT_REVIEW_THRESHOLD, if you want a review threshold other than the default of 50,000.
Step 6. Verify the integration
Open the deployed App and run a claim through the chat UI. Confirm that:
The response shows the "Models called" footer with the fraud, settlement, and summarizer results.
/health returns "status": "ok" and "prod_mode": true.
The turn appears as a trace on the agent's Performance tab, with a span for each tool call, and each tool call appears as its own child run under the turn's run in Domino Experiments.
If the trace doesn't appear on the Performance tab, confirm the App was deployed as an agent and not as a plain App. Domino sets DOMINO_APP_ID only for deployed agents, and the agents SDK needs it to log to the agent's production experiment. /health reports which mode the SDK is in; with "prod_mode": false, spans go to the claims-agent-dev experiment in Domino Experiments instead.
If an endpoint times out or the App returns an error: check that endpoint's logs first (Deploy > Endpoints, then the endpoint's Logs). A ModuleNotFoundError there means the Compute Environment is missing a package from serve/requirements.txt. Add it, rebuild the environment, and republish that endpoint's version.
Extending the integration
Adding a tool
A new tool needs a Domino endpoint (a predict(**kwargs) handler under serve/, deployed the same way as the existing ones), an OpenAPI spec that follows the same __DOMINO_DOMAIN__ and __MODEL_ID__ placeholder convention, and a new entry in the TOOLS list in vertex/register_tools.py. Then update PLAYBOOK_INSTRUCTION in that same file to say when to call the new tool. The playbook learns what a tool does from its OpenAPI description, but the instruction defines the policy for when to call it.
Moving tool auth off raw tokens
register_tools.py passes each endpoint's Basic auth header to ApiKeyConfig.api_key as a raw string. The file already includes upsert_secret and grant_secret_accessor helpers for the Secret Manager path Google recommends for production, but main() doesn't call them. Wiring them in means creating one global Secret Manager secret per tool (regional secrets aren't supported for tool auth), granting the Dialogflow service agent, service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com, the roles/secretmanager.secretAccessor role on each one, and setting ApiKeyConfig.secret_version_for_api_key to the secret's version resource name, in the form projects/PROJECT_ID/secrets/SECRET_NAME/versions/VERSION. When that field is set, Dialogflow ignores api_key, so the raw value can come out of the tool definition entirely.
Adjusting the human review thresholds
_FRAUD_HOLD_RISK_LEVELS and _SETTLEMENT_REVIEW_THRESHOLD in agent/app_server.py control what gets held for review. The settlement threshold reads from the SETTLEMENT_REVIEW_THRESHOLD environment variable, defaulting to 50,000, so you can tune it per deployment without a code change. Pending reviews live in an in-memory dict (_PENDING_REVIEWS) in a single-worker App, so they don't survive a restart. Move them to a durable store before reviews need to outlast one.
What's next
For the tracing architecture this integration builds on, including how traces map to Domino experiment spans and how the Performance tab gets populated, see the GenAI Tracing blueprint.
From tailored strategies to full-scale implementations, the team acts as an extension of yours — speeding up time-to-value, mitigating risk, and enabling responsible scale across AI initiatives.