ai

Generate Dashboard

Generate a complete dashboard with KPIs, charts, name, and filters.

This is the unified dashboard generation endpoint that creates all dashboard components concurrently for maximum speed:

  • KPIs (3-5 metrics)
  • Charts (6-8 visualizations)
  • Dashboard name and description
  • Filters (3-5 filters)

Args: source_id: The source to generate the dashboard from prompt: Optional user prompt to customize the dashboard save: Whether to persist the dashboard (default: True)

Returns: GenerateDashboardResponse with all generated components. If save=True, includes dashboard ID and insight IDs. If save=False, returns generated content without persisting.

post/ai/generate-dashboard

Request

  • Base URL: https://api.pandas-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pandas-ai.com/ai/generate-dashboard
  • Auth: none declared

Request body

source_idstring required

Source ID to generate dashboard from

promptstring nullable

Optional user prompt to customize the dashboard

Response

Successful Response

idstring nullable

Dashboard ID (only if saved)

namestring required

Generated dashboard name

descriptionstring nullable

Generated dashboard description

iconstring nullable

Dashboard icon

configobject

Dashboard config including layout and filters

Changes

No recorded changes to this operation across all 1 revision of this API.