tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > ADK with Cloud Workflows for Orchestration

ADK with Cloud Workflows for Orchestration

Author: Venkata Sudhakar

Google Cloud Workflows provides a managed orchestration service that complements ADK agents by handling long-running processes, retry logic, and multi-service coordination. When an ADK agent needs to coordinate across multiple systems or run tasks that span hours, Cloud Workflows acts as the durable execution layer while ADK provides the intelligence.

ShopMax India uses this combination to automate supplier onboarding - a process that involves document verification, credit checks, catalogue ingestion, and system provisioning across five different services. The ADK agent handles all the intelligent decisions while Cloud Workflows manages the overall process durability.

The below example shows how to define a Cloud Workflows YAML definition that calls an ADK agent endpoint at each decision step.


It gives the following output,

Workflow execution started: exec-abc123
Step validate_documents: POST /validate -> status=approved
Step credit_check: POST /credit -> credit_score=720, limit=Rs 500000
Workflow completed successfully in 4.2s

The below example shows the ADK agent that handles the intelligent decisions at each workflow step.


It gives the following output,

POST /validate
{"supplier_id": "SUP-2847", "documents": {"gst": "29AABCS1429B1ZB", "pan": "AABCS1429B"}}

Response:
{"status": "approved", "supplier_id": "SUP-2847",
 "details": "All documents verified. GST active, PAN matched, bank details confirmed."}

Cloud Workflows handles all retry logic, timeouts, and error propagation automatically, while the ADK agent focuses purely on the business decision. This separation means you can update the agent logic independently without changing the orchestration layer - making the system easier to maintain and test in a production environment like ShopMax India.


 
  


  
bl  br