Data & Analysis text-to-sqlsemantic-layerbusiness-intelligencedashboard-deploymentdatafusionlangchainmcpdata-governance

WrenAI GenBI

Give AI agents governed business context to produce SQL, charts, and deployable dashboards.

FollowAgents review · FARS-2.0
Not yet reviewed
See the full review method →

What does this agent do, and when should you use it?

WrenAI is an open-source generative BI engine for AI agents, spanning natural-language questions, SQL, charts, and shareable dashboards. Its context layer combines MDL semantic models with versioned instructions.md and queries.yml files plus a local LanceDB memory index for business definitions, examples, and query recall. The core tree includes a Rust semantic engine built on Apache DataFusion, Python bindings, a Python SDK and CLI, and the browser-side wren-core-wasm build. Agents can run MDL-mediated queries with wren query and use the GenBI workflow to build browser-side dashboards for deployment to the user’s Vercel or Cloudflare Pages account. It is a fit for teams that want governed, Git-friendly business context behind their existing agents, rather than a one-off chart from a CSV.

After installing wrenai, an agent can fetch the setup workflow with wren skills get onboarding, check the environment, create a connection profile, scaffold a project, and run an initial query. It works from MDL definitions for models, columns, relationships, views, cubes, metrics, and row- and column-level access control, alongside instructions.md, queries.yml, and a LanceDB memory index. Agents can shape questions with wren ask "<question>" --guided or --direct, or execute SQL through the MDL layer with wren query --sql '...'; the repository also names schema-aware retrieval, MDL planning, dry-plan validation, structured errors, functions, and row limits. For dashboard delivery, an agent fetches wren skills get genbi, builds a browser-side GenBI app powered by wren-core-wasm, previews it locally, and deploys it to the user’s Vercel or Cloudflare Pages account.

  1. A data team using Codex, Claude Code, or another connected agent needs answers to quarterly sales questions based on approved Postgres business definitions.
  2. A warehouse team on BigQuery, Snowflake, ClickHouse, or Databricks wants approved metrics, joins, and enum meanings maintained as versioned context.
  3. An analytics engineering team wants an agent to turn a validated query into an interactive, filterable dashboard and publish it on its own Vercel or Cloudflare Pages account.
  4. A company whose business logic is scattered across documents, wikis, and chat threads wants to encode that knowledge in MDL, instructions.md, queries.yml, and memory records.
  5. A Python team building a data assistant with LangChain or LangGraph wants to use the repository’s wren-langchain reference SDK integration.

What are this agent's strengths and limitations?

Pros
  • It keeps MDL, instructions.md, queries.yml, and memory as reviewable, version-controlled business context instead of relying only on schemas or prompts.
  • It covers governed SQL, charts, and dashboard deployment; dashboards run browser-side with wren-core-wasm and can be published to the user’s own Vercel or Cloudflare Pages account.
  • The repository names a 22+ data-source engine based on Apache DataFusion, alongside a Python CLI, Python bindings, and a wren-langchain reference integration.
  • It documents concrete governance primitives including dry-plan validation, access controls, row limits, and structured errors.
Limitations
  • A usable deployment still needs a data-source connection profile; the supplied material does not provide credential formats, connection parameters, or a complete non-agent configuration path.
  • Good results depend on maintaining MDL, business instructions, query examples, and memory, which creates an ongoing modeling and governance workload.
  • Dashboard delivery is bounded by the user’s own Vercel or Cloudflare Pages account rather than a repository-described integrated hosting service.
  • The former Docker chat-first product now lives on legacy/v1 and is stated to receive no new features or security fixes, so it should not be treated as the maintained path.

How do you install or deploy this agent?

Use an environment with shell access, network access, and connectivity to a target data source:

pip install wrenai

For Postgres and memory support:

pip install "wrenai[postgres,memory]"

Then install the AI-client discovery stub:

npx skills add Canner/WrenAI

The supplied material says this command auto-detects Claude Code, Cursor, Cline, Codex, and similar clients. The required data-source credential fields and connection parameters are not specified in the supplied material; create the connection profile through the onboarding workflow.

How do you use this agent?

From a project directory, begin with:

wren skills get onboarding

Have an AI client with the discovery stub follow that workflow to set up the database and run an initial query. To add business context, run:

wren skills get enrich-context

For routine querying, use:

wren query --sql '...'

Or have the agent use:

wren ask "Who are our top 10 customers by sales this quarter?" --guided

For dashboards, run wren skills get genbi and have the agent generate, preview, and deploy the browser-side app. Deployment requires the user’s own Vercel or Cloudflare Pages account.

How does this agent compare with similar options?

The repository contrasts WrenAI with raw LLM agents, traditional BI tools, and bare semantic layers. Its stated distinction is governed SQL generation from external agents plus agent-driven dashboard deployment, whereas traditional BI dashboarding is described as manual and inside the BI tool.

FAQ

Does WrenAI host my dashboards for me?
The supplied material describes generating a browser-side GenBI app and deploying it to your own Vercel or Cloudflare Pages account.
Is it limited to one database?
No. The material states 22+ data sources and explicitly names DuckDB, Postgres, BigQuery, Snowflake, ClickHouse, Amazon Redshift, and Databricks; individual sources may require their relevant install extras.
What limits the risk of incorrect agent-written SQL?
Use MDL and maintained business context, together with the named schema-aware retrieval, MDL planning, dry-plan validation, structured errors, access controls, and row limits.
Should I adopt the older Docker chat application instead?
That product is preserved as Wren GenBI Classic on legacy/v1 (v1-final). The supplied material says it receives no new features or security fixes.

Related agents