Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Advanced Agents ·Intermediate

AI Research Planner & Executor Agent with Google's Interactions API

About this app

A streamlined multi-phase research agent built with Google's Interactions API that demonstrates stateful conversations, model mixing, background execution, and automatic infographic generation.

  • Complete open-source code
  • Step-by-step tutorial

Technical sheet

Category
Advanced Agents
Difficulty
Intermediate
Models
Gemini
Frameworks
-
Runs locally?
Needs cloud APIs
Required keys
None

License Apache-2.0 · content curated and maintained by Doutor AI.

Full tutorial

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_id for 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 Infographic

Phase 1: Planning

  1. Enter your research goal
  2. Gemini 3 Flash creates a numbered research plan with 5-8 specific tasks
  3. Plan is stored as an Interaction for stateful continuation

Phase 2: Select & Research

  1. Review the research plan with checkboxes for each task
  2. Select/deselect tasks to focus your research
  3. Deep Research Agent executes comprehensive web research using previous_interaction_id

Phase 3: Synthesis + Infographic

  1. Gemini 3 Pro synthesizes findings into an executive report
  2. Gemini 3 Pro Image automatically generates a whiteboard TL;DR infographic
  3. Report displays with infographic at the top, followed by full text
  4. Download as markdown

🛠️ Tech Stack

ComponentTechnology
Planning Modelgemini-3-flash-preview
Research Agentdeep-research-pro-preview-12-2025
Synthesis Modelgemini-3-pro-preview
Infographic Modelgemini-3-pro-image-preview
UI FrameworkStreamlit
Python SDKgoogle-genai

How to get Started?

  1. Clone the GitHub repository
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd advanced_ai_agents/single_agent_apps/research_agent_gemini_interaction_api
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Get your Google API Key
  1. Run the Streamlit App
streamlit run research_planner_executor_agent.py
  1. Open your browser at http://localhost:8501
  1. Enter 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 agent parameter, not model
  • Image Generation: Infographic generation uses the standard generate_content API

🔗 Resources

📄 License

Part of the Awesome LLM Apps collection.

From the same category

Advanced AgentsIntermediate

AI Agent Governance - Policy-Based Sandboxing

Policy-Based Sandboxing: Define what your AI agent can and cannot do using declarative policies - Action Interception: Catch and validate agent action…

  • OpenAI
Advanced AgentsIntermediate

AI Consultant Agent with Google ADK

A powerful business consultant powered by Google's Agent Development Kit that provides comprehensive market analysis, strategic planning, and actionab…

  • Gemini
Advanced AgentsIntermediate

AI Customer Support Agent

This Streamlit app implements an AI-powered customer support agent for synthetic data generated using GPT-4o. The agent uses OpenAI's GPT-4o model and…

  • OpenAI

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans