- Google ADK (Agent Development Kit): A flexible framework by Google to build intelligent, multi-step agents capable of reasoning, decision-making, and orchestration using Gemini models.
- Dappier: A real-time data platform that connects LLMs to live, rights-cleared information across domains like finance, news, and web search. It enriches agent workflows with structured, prompt-ready data.
- Gemini-Powered Agents: Modular LLM agents designed to resolve ticker symbols, extract stock metrics, analyze peer companies, and generate comprehensive investment summaries.
- Replit Deployment: Run the complete multi-agent research pipeline in the browser using Replit, with secure environment variable support and real-time agent execution.
๐ Live Demo
You can explore and test the full stock market research pipeline directly in your browser.- ๐ Live Deployment: multi-agent-stock-market-research-or-google-adk-and-dap-dappier.replit.app Run the full multi-agent workflow and get real-time investment reports by entering a company name.
- ๐ ๏ธ Source Code: Replit Project Fork the code, explore agent definitions, customize tool integrations, or extend the pipeline for your own use cases.
๐ก You donโt need to install anything locally. Just open the link, input a company name (e.g., "Apple"), and receive a full markdown-formatted investment report โ powered by Gemini models and Dappierโs real-time financial data.
๐ฆ Installation
This app is built using Replit, so you donโt need to set up any local environment. Just fork or run the app directly in your browser. However, if youโre setting this up manually or adapting it outside Replit, install the required packages usingpip:
โ Note: Replit automatically installs the packages listed inOnce dependencies are installed, youโre ready to configure your API keys and begin running the agent workflow.replit.nixorpyproject.toml(if used). You can also manually add packages from the Packages tab in the left sidebar.
๐ Setting Up API Keys
To run the stock market research agent, youโll need the following API keys:GOOGLE_API_KEYโ For accessing Gemini models via Google ADK.GOOGLE_GENAI_USE_VERTEXAIโ Set this to"false"to use Gemini on public API instead of Vertex AI.DAPPIER_API_KEYโ To access real-time financial and web data from Dappier.
๐ In Replit
- Click the ๐ Secrets tab (lock icon) in the left sidebar.
- Add the following environment variables:
| Key | Value |
|---|---|
GOOGLE_API_KEY | (Your Google API Key) |
GOOGLE_GENAI_USE_VERTEXAI | false |
DAPPIER_API_KEY | (Your Dappier API Key) |
- Google API Key: https://makersuite.google.com/app/apikey
- Dappier API Key: https://platform.dappier.com/profile/api-keys
โ ๏ธ Important: Do not print your API keys or commit them to public repositories. Use environment variables or secret managers to handle credentials securely.
๐ Real-Time Tools Powered by Dappier
Dappier provides real-time, rights-cleared data that powers different stages of the stock research workflow. In this app, we use two key tool functions:- Web Search Tool โ For general queries like company overview, financial trends, and peer benchmarking.
- Stock Market Tool โ For structured stock market data such as price snapshots, ratios, volumes, and categorized news.
tools.py file and initialized using the Dappier Python SDK.
๐ง These tools power the agents in different stages of the pipeline based on the query type โ general vs. ticker-specific. All data comes from Dappierโs trusted and rights-cleared data sources, ensuring accuracy and compliance.
๐ท๏ธ Ticker Resolution Agent
The first step in the stock research pipeline is to resolve the stock ticker symbol from a user-provided company name. This ensures downstream agents receive a valid ticker for accurate data retrieval. We define a lightweight LLM agent using Google ADKโsLlmAgent, powered by Gemini, and backed by Dappierโs real-time web search tool.
๐ฏ This agent ensures the entire pipeline starts with an accurate stock symbol, derived from the latest web data. Dappier is used here to ensure up-to-date resolution, especially for lesser-known or recently listed companies.Perfect โ weโll now begin documenting the individual agents, one at a time, starting with the Ticker Resolution Agent.
๐ท๏ธ Ticker Resolution Agent
The first step in the stock research pipeline is to resolve the stock ticker symbol from a user-provided company name. This ensures downstream agents receive a valid ticker for accurate data retrieval. We define a lightweight LLM agent using Google ADKโsLlmAgent, powered by Gemini, and backed by Dappierโs real-time web search tool.
๐ฏ This agent ensures the entire pipeline starts with an accurate stock symbol, derived from the latest web data. Dappier is used here to ensure up-to-date resolution, especially for lesser-known or recently listed companies.
๐ฐ Financial Performance Agent
After gathering company basics, this agent dives into the companyโs recent financial performance using real-time search. It retrieves financial indicators such as:- Revenue (TTM)
- Net Income (TTM)
- YoY growth
- Gross margin
- Key financial trends or earnings commentary
๐งฎ Competitive Benchmarking Agent
To evaluate a companyโs standing in its industry, this agent identifies and compares 3โ5 peer companies using real-time web search. It focuses on benchmarking key metrics:- P/E ratio
- Revenue
- Stock Price
- Market Cap
๐ฐ Stock News & Sentiment Agent
Fetches categorized real-time financial news for the given ticker.๐ค Parallel Research Agents
Run multiple agents concurrently to improve performance and modularity.Web Research Agent Group
Stock Insights Agent Group
๐ Investment Report Generator Agent
Synthesizes all outputs into a single markdown-formatted investment report.๐ Sequential Agent Pipeline
Defines the full multi-agent flow: resolves ticker โ fetches data โ generates report.๐ป Running the Agent
This app is fully interactive โ you donโt need to write any code to run it. Just open the Replit app and use the built-in chat interface to enter a company name (e.g.,"Apple" or "Tesla"). The agent pipeline will:
- Resolve the stock ticker.
- Fetch real-time data and financial insights.
- Generate a full investment report in markdown format.
๐ฌ The chat interface will display the markdown report directly in the console or browser output pane.
๐ Highlights
This app has guided you through building and running a stock market research agent using Google ADK and Dappier. By combining real-time financial data, multi-agent workflows, and markdown generation, youโve created a complete pipeline that transforms natural language input into a structured investment report. Key tools utilized in this app include:- Google ADK: A flexible framework that enables sequential and parallel agent orchestration, built around modular LLM-based agents for complex task automation.
- Dappier: A platform connecting LLMs to real-time, rights-cleared data across domains like finance, news, and web search. It delivers enriched, prompt-ready insights, empowering agents with verified and up-to-date information.
- Gemini Models: LLMs used to reason over financial data, extract metrics, benchmark competitors, and synthesize final markdown content.
- Replit: An interactive development and execution environment that makes it easy to deploy, test, and interact with the pipeline via chat interface.
- Portfolio monitoring
- Real-time earnings tracking
- Sector-specific investment dashboards
- Automated newsletter generation

