๐ฌ AI Research Planner & Executor Agent with Google's Interactions API โ
A streamlined multi-phase research agent built with Google's Interactions API that demonstrates stateful conversations, model mixing, background execution, and automatic infographic generation.
๐ Features โ
- ๐ Phase 1 - Research Planning: Uses Gemini 3 Flash to create structured, actionable research plans
- ๐ Phase 2 - Task Selection & Deep Research: Select specific tasks and leverage Deep Research Agent with built-in web search
- ๐ Phase 3 - Synthesis + TL;DR: Uses Gemini 3 Pro for executive reports + Gemini 3 Pro Image for automatic infographic generation
- ๐จ Auto-Generated Infographics: Creates whiteboard-style TL;DR summary at the top of every report
- ๐ Stateful Conversations: Demonstrates
previous_interaction_idfor maintaining context across phases - โก Background Execution: Async research execution with progress tracking
- ๐ฅ Export Reports: Download comprehensive research reports as markdown files
๐ฏ How It Works โ
User Goal
โ
[Phase 1] Gemini 3 Flash โ Research Plan
โ
[Phase 2] Select Tasks โ Deep Research Agent โ Research Results
โ
[Phase 3] Gemini 3 Pro โ Executive Report
+ Gemini 3 Pro Image โ TL;DR InfographicPhase 1: Planning โ
- Enter your research goal
- Gemini 3 Flash creates a numbered research plan with 5-8 specific tasks
- Plan is stored as an
Interactionfor stateful continuation
Phase 2: Select & Research โ
- Review the research plan with checkboxes for each task
- Select/deselect tasks to focus your research
- Deep Research Agent executes comprehensive web research using
previous_interaction_id
Phase 3: Synthesis + Infographic โ
- Gemini 3 Pro synthesizes findings into an executive report
- Gemini 3 Pro Image automatically generates a whiteboard TL;DR infographic
- Report displays with infographic at the top, followed by full text
- Download as markdown
๐ ๏ธ Tech Stack โ
| Component | Technology |
|---|---|
| Planning Model | gemini-3-flash-preview |
| Research Agent | deep-research-pro-preview-12-2025 |
| Synthesis Model | gemini-3-pro-preview |
| Infographic Model | gemini-3-pro-image-preview |
| UI Framework | Streamlit |
| Python SDK | google-genai |
How to get Started? โ
- Clone the GitHub repository
bash
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd advanced_ai_agents/single_agent_apps/research_agent_gemini_interaction_api- Install the required dependencies:
bash
pip install -r requirements.txt- Get your Google API Key
- Sign up for a Google AI Studio account and obtain your API key.
- Run the Streamlit App
bash
streamlit run research_planner_executor_agent.pyOpen your browser at
http://localhost:8501Enter your Google API key in the sidebar and start researching!
๐ Example Research Goals โ
- "Research the B2B HR SaaS market in Germany - key players, regulations, pricing models"
- "Analyze market opportunities for AI-powered customer support tools"
- "Investigate the competitive landscape for sustainable packaging in e-commerce"
- "Research regulatory requirements for fintech products targeting Gen Z"
โ ๏ธ Notes โ
- Beta API: The Interactions API is in Beta - features may change
- Deep Research: May take 2-5 minutes for comprehensive research
- Agent vs Model: Deep Research uses
agentparameter, notmodel - Image Generation: Infographic generation uses the standard
generate_contentAPI
๐ Resources โ
๐ License โ
Part of the Awesome LLM Apps collection.