Schedule icon
Webhook icon
AIAgent icon
GoogleGemini icon
TavilyWebSearch icon
Script icon
Process icon
If icon
SlackIncomingWebhook icon
Log icon

Autonomous Deep Research and Competitor Market Intelligence Agent

Automate competitor tracking using Kestra, Google Gemini, and Tavily. Compile cited SWOT briefings and alert on high-threat moves.

Categories
AIBusiness

Tracking competitor product launches, pricing changes, and executive pivots manually consumes dozens of hours every month and still leaves strategic blind spots. Ad-hoc scraping scripts break when websites change layouts, and standard RSS aggregators flood leadership channels with low-signal PR noise.

This blueprint deploys an autonomous AI research agent using Kestra, Google Gemini, and Tavily web retrieval. It searches primary sources, aggregates news across specified strategic angles, performs a structured SWOT analysis, and compiles an executive markdown briefing. If high-threat moves are identified, the pipeline immediately alerts leadership in Slack with an actionable summary.

How it works

  1. gather_web_intelligence (io.kestra.plugin.ai.agent.AIAgent) queries live web sources via the TavilyWebSearch retriever, extracts recent competitor announcements, and structures findings using a strict JSON schema.
  2. compile_executive_briefing (io.kestra.plugin.scripts.python.Script) parses the structured findings into a publication-ready competitor-market-briefing.md report with citations, SWOT matrices, and recommended countermeasures.
  3. threat_gate (io.kestra.plugin.core.flow.If) evaluates the calculated market_threat_level. High and critical threats trigger an immediate Slack alert to leadership, while routine updates are logged to the audit trail.

What you get

  • Automated, multi-source competitive research with zero manual web scraping.
  • Publication-ready markdown briefings saved directly to Kestra execution storage.
  • Risk-weighted Slack notifications that only page leadership when high-threat moves occur.

Who it's for

  • Product Managers, Corporate Strategy Directors, and Executive Leadership.
  • Growth and Competitive Intelligence teams tracking fast-moving market segments.

Why orchestrate this with Kestra

Building reliable research agents requires combining external search APIs, frontier LLM providers, and data transformation scripts. Kestra replaces fragile cron jobs with a declarative, auditable pipeline that manages API rate limits, persists generated briefing artifacts in execution storage, and handles authentication securely through secrets.

Prerequisites

  • A Google Gemini API key.
  • A Tavily API key for live web search retrieval.
  • A Slack incoming webhook endpoint for leadership alerts.

Secrets

  • GEMINI_API_KEY: API key for Google Gemini provider.
  • TAVILY_API_KEY: API key for Tavily search retriever.
  • SLACK_WEBHOOK_URL: Slack incoming webhook URL for leadership alerts.
  • WEBHOOK_KEY: Authentication key for event-driven trigger invocation.

Quick start

  1. Configure the GEMINI_API_KEY, TAVILY_API_KEY, SLACK_WEBHOOK_URL, and WEBHOOK_KEY secrets in your Kestra namespace.
  2. Run an execution with your target competitor (e.g., inputs.target_entity = 'Databricks').
  3. Download the generated competitor-market-briefing.md artifact from the execution outputs.
  4. Enable the weekly schedule trigger to run automated Monday briefings.

How to extend

  • Add an io.kestra.plugin.aws.s3.Upload or io.kestra.plugin.gcp.gcs.Upload task to archive weekly briefings into a corporate data lake.
  • Add a Loop task (io.kestra.plugin.core.flow.Loop) to iterate over a list of multiple competitor entities in parallel.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.