Instantly generate analytics dashboards from natural language using live data via Perplexity Sonar API.
f1
, l1
, r1
, or r2
), the function generates full structured outputs for dashboards, lightweight visualizations, or targeted updates.Mode | Description | Use Case | Notes |
---|---|---|---|
f1 | First-time full dashboard generation | User starts with an empty canvas and enters an initial prompt | Produces a complete dashboard layout with multiple widgets |
l1 | Lightweight dashboard generation | Used for quick insights or previews with minimal tokens | Faster and cheaper, but returns fewer widgets with less instruction depth |
r1 | Full dashboard regeneration | User wants to replace all existing widgets with a new prompt | Rebuilds the entire dashboard while keeping layout intact |
r2 | Targeted widget update | User wants to change a specific widget (e.g. “make this a pie chart”) | Only the selected widget is modified based on the new instruction |