You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/agents/retail-ai-location-strategy/README.md
+64-38Lines changed: 64 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,35 @@ A multi-agent AI pipeline for retail site selection, built with [Google Agent De
9
9
</tr>
10
10
</thead>
11
11
<tbody>
12
-
<tr>
13
-
<td>🏗️</td>
14
-
<td><strong>Production-Ready:</strong> Built with ADK for seamless deployment to <a href="https://cloud.google.com/run">Google Cloud Run</a> and <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/overview">Vertex AI Agent Engine</a>.</td>
15
-
</tr>
16
12
<tr>
17
13
<td>🔍</td>
18
-
<td><strong>Multi-Agent Pipeline:</strong> 7 specialized agents for market research, competitor mapping, gap analysis, strategy recommendations, and report generation.</td>
14
+
<td><strong>Multi-Agent Pipeline:</strong> 7 specialized agents for market research, competitor mapping, gap analysis, strategy synthesis, and report generation.</td>
19
15
</tr>
20
16
<tr>
21
17
<td>🗺️</td>
22
-
<td><strong>Real-World Data:</strong> Integrates Google Maps Places API for competitor mapping and live web search for market research.</td>
18
+
<td><strong>Real-World Data:</strong> Integrates Google Maps Places API for competitor mapping and Google Search for live market research.</td>
19
+
</tr>
20
+
<tr>
21
+
<td>🐍</td>
22
+
<td><strong>Code Execution:</strong> Python/pandas analysis for quantitative gap analysis with viability scoring.</td>
23
+
</tr>
24
+
<tr>
25
+
<td>🎨</td>
26
+
<td><strong>AI-Generated Outputs:</strong> Executive HTML reports and infographics via Gemini's native image generation.</td>
27
+
</tr>
28
+
<tr>
29
+
<td>🖥️</td>
30
+
<td><strong>AG-UI Frontend:</strong> Optional interactive dashboard with <a href="https://docs.ag-ui.com/">AG-UI Protocol</a> and <a href="https://docs.copilotkit.ai/">CopilotKit</a> for real-time pipeline visualization.</td>
31
+
</tr>
32
+
<tr>
33
+
<td>🏗️</td>
34
+
<td><strong>Production-Ready:</strong> Deploy to <a href="https://cloud.google.com/run">Cloud Run</a> or <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/overview">Vertex AI Agent Engine</a> via <a href="https://goo.gle/agent-starter-pack">Agent Starter Pack</a>.</td>
23
35
</tr>
24
36
</tbody>
25
37
</table>
26
38
27
39
<palign="center">
28
-
<imgsrc="assets/images/hero-image.png"alt="Retail AI Location Strategy - Multi-Agent Pipeline"width="700">
40
+
<imgsrc="assets/images/main-intro-image.png"alt="Retail AI Location Strategy - System Architecture"width="800">
29
41
</p>
30
42
31
43
## What It Does
@@ -38,10 +50,6 @@ Given a location and business type, this pipeline automatically:
38
50
- Generates strategic recommendations with extended reasoning
39
51
- Produces an HTML executive report and visual infographic
- target_location: Geographic area to analyze (e.g., "Indiranagar, Bangalore")
77
-
- business_type: Type of business (e.g., "coffee shop", "bakery", "gym")
77
+
To use, get the following details:
78
+
- target_location: {target_location}
79
+
- business_type: {business_type}
78
80
79
81
The analysis runs automatically through all stages and produces artifacts
80
82
including JSON report, HTML report, and infographic image.
81
83
""",
82
84
sub_agents=[
83
-
intake_agent, # Part 0: Parse user request
84
85
market_research_agent, # Part 1: Market research with search
85
86
competitor_mapping_agent, # Part 2A: Competitor mapping with Maps
86
87
gap_analysis_agent, # Part 2B: Gap analysis with code exec
@@ -90,4 +91,18 @@
90
91
],
91
92
)
92
93
93
-
94
+
# Root agent orchestrating the complete location strategy pipeline
95
+
root_agent=Agent(
96
+
model=FAST_MODEL,
97
+
name=APP_NAME,
98
+
description='A strategic partner for retail businesses, guiding them to optimal physical locations that foster growth and profitability.',
99
+
instruction="""Your primary role is to orchestrate the retail location analysis.
100
+
1. Start by greeting the user.
101
+
2. Check if the `TARGET_LOCATION` (Geographic area to analyze (e.g., "Indiranagar, Bangalore")) and `BUSINESS_TYPE` (Type of business (e.g., "coffee shop", "bakery", "gym")) have been provided.
102
+
3. If they are missing, **ask the user clarifying questions to get the required information.**
103
+
4. Once you have the necessary details, call the `IntakeAgent` tool to process them.
104
+
5. After the `IntakeAgent` is successful, delegate the full analysis to the `LocationStrategyPipeline`.
105
+
Your main function is to manage this workflow conversationally.""",
106
+
sub_agents=[location_strategy_pipeline],
107
+
tools= [AgentTool(intake_agent)], # Part 0: Parse user request
0 commit comments