AI Features — Customer User Guide
Purpose
This guide covers Pi's five AI features, how to configure them, and your compliance obligations. Every AI feature operates exclusively on data already visualised in Pi — it never accesses raw databases or queries data connections directly. Your existing access controls are enforced automatically for every AI interaction.
Introduction
Pi's AI features turn your existing dashboards and reports into an active intelligence layer. The AI cannot access raw database tables, query data connections directly, or surface information not exposed through a chart or report. Role-based permissions, user profiles, organisational restrictions, and subscription models are enforced automatically across every AI interaction. AI responses vary by user. Conversation history is not retained between sessions.
End users → Core AI Features. Administrators → Configuration. Compliance teams → Compliance and Regulation.
Core AI Features
Chart Summarisation
Reads the data behind any individual chart and generates a written insight — key patterns, notable findings, and suggested actions. Uses the same data the chart displays, filtered to the logged-in user's access level.
How to use it
Open any dashboard category and locate a chart.
Click the three dots in the top right-hand corner of the Chart Panel, then click the wand icon (
) in the opening Chart Tools dialog.
The AI generates a summary on screen.
What it does not do
Does not access data outside the chart's current view or the user's permissions
Does not predict future values or perform statistical forecasting
Does not retain the generated text between sessions
Does not modify the chart or any underlying data
Prompt customisation. Override the default using LLM_CHART_SUMMARY_USER_MESSAGE. Default: "What does this chart reveal? Identify the key patterns, provide meaningful insights, and suggest specific actions based on the data."
Dynamic Report Summaries
Beta flag required:
AI_REPORT_DESCRIPTION
Adds an AI-generated text page to a scheduled or instant report. The summary is generated at the moment the report runs, reflecting current data, user-specific restrictions, and variables applied at report time.
How to use it
Open the Report Editor.
Click the magic wand icon in the page settings to insert a dynamic summary page.
Write a clear, specific prompt — describe which charts to focus on and which metrics to highlight. Be concise; the summary will not spill onto a second page.
Reposition the page within the report as needed. A wand icon on the page tab indicates it is a dynamic summary page.
When the report runs — scheduled, instant, or PDF export — the AI replaces the prompt with generated text.
Output example
Permissions. Creating and editing a summary page requires the AI permission. Users who can edit the report without the AI permission can delete the summary page but cannot create or modify the prompt. Users receiving the report do not need the AI permission.
What it does not do
Cannot produce more than one summary page per report
Does not spill onto a second page if generated text is long
Does not consider visual attributes, chart colours, or targets — only underlying data and chart names
Does not modify chart data or other report content
Chart Explorer
Beta flag required:
AI_CHART_SUGGESTION
Lets users ask questions in plain English and receive recommendations for up to three relevant charts from their accessible data library. Uses semantic vector search, retrieves live data from matching charts, and generates a written analysis.
How to use it
Click the wand icon (
) in the top menu bar from any dashboard category.
Type a question — for example: "Show me customer satisfaction trends" or "Who is the top performer in sales?"
Chart Explorer returns up to three charts relevant to the question, a summary per chart, and an overall analysis.
Each result includes a navigation link to its full category view.
Effective query types: topic discovery ("Customer satisfaction data"), people-based questions ("Who's the top performer?"), metric identification ("Revenue trends"), department-specific ("HR analytics").
Account type requirement. Chart Explorer requires a User account type or above. Chart Viewer accounts do not have access to this feature. Ensure the appropriate account type is assigned before enabling the AI_CHART_SUGGESTION beta flag for end users.
What it does not do
Does not apply category context to charts - they are presented outside of any category they are shown in elsewhere
Cannot create charts, apply filters, or modify chart configurations
Cannot combine data across multiple charts in a single calculation
Cannot export or download data
Does not retain memory between queries — each question is independent
Returns a maximum of three chart recommendations per query
Chart discoverability depends on chart names and column metadata quality
Prompt customisation. LLM_COPILOT_USER_MESSAGE_PREFIX adds a prefix to every user query. LLM_COPILOT_SUMMARY_USER_MESSAGE controls the overall summary prompt (default: "What are the key points and implications from this data?").
Chart Builder
Beta flag required:
AI_CHART_GENERATION
Creates new charts from plain English descriptions. Interprets the request, identifies matching columns in configured data connections, selects an appropriate chart type, and creates the chart ready for review. Chart generation lives in the Generate tab within the AI chatbox, alongside the chart search tab. If only one beta flag is active, the chatbox opens without tabs. With both flags, both tabs are available.
How to use it
Open the AI chatbox (wand icon in the menu bar) and switch to the Generate tab.
Describe the chart — for example: "Create a bar chart about departments and numbers".
On success: Edit (opens chart editor), Refresh or Delete.
If generation fails, the AI explains why and suggests how to revise the query.
Tips for better results. Include chart type, dimensions, and measures. Use column names close to those in your data — spelling variation is tolerated. Specify a category if needed; otherwise the AI chooses automatically.
What it does not do
Cannot create: merged charts, merged tables, custom maps, cards, iFrames, combined charts, URL links, or drill-to chart/category/API types
Cannot apply styling, colours, filters, attributes, additional data, targets, or custom SQL — use the chart editor after generation in order to do this
Does not understand table joins within data connections — joins must be pre-configured
Cannot edit existing charts via prompts; only creates new ones
Cannot access objects inherited from a parent Data Connection — only objects configured directly within the selected Data Connection are available to the AI
Pi-AI — Agent Integration (MCP Server)
⚠️ Beta status: Pi-AI is currently in beta. Raise issues via Panintelligence Support.
A Model Context Protocol (MCP) server that allows external AI agents — such as Claude Code — to interact directly with your Pi dashboard. Provides tools to list data connections, list available columns, list categories, and create charts, within the permission level of the Pi user account whose token is used. Pi-AI is also used internally by Pi's built-in Chart Builder feature.
Who should use this. Dashboard developers, data engineers, and technical integrators comfortable with AI agent tooling. Not an end-user interface.
Available MCP tools
Tool | Purpose |
|---|---|
| Returns the Pi V3 OpenAPI spec |
| Creates a chart via POST /api/v3/charts |
| Lists data connections available to the user |
| Lists columns for a given data connection |
| Lists categories available to the user |
| Provides chart-building guidance to agents |
What it does not do
Does not grant access beyond the permission level of the token in use
Currently limited to chart creation and data discovery
Does not support unsupervised autonomous operation without human review
Cannot be used in high-risk contexts (EU AI Act Annex III) without a FRIA
Configuration
Prerequisites
PiPredict licence — required for all AI features
LLM provider API key — OpenAI-compatible endpoints are supported and recommended
Qdrant vector database — required for Chart Explorer and Chart Builder
Pi-AI service — required for Chart Builder and agent integration only
Vector Database Setup
Windows. Qdrant is bundled in the Pi Windows installer. Select it as a component during installation.
Linux and containers.
qdrant:
image: qdrant/qdrant:v1.15.5
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
restart: unless-stopped
Set on the Pi server: PI_VECTOR_DB_URL (e.g. http://localhost:6333/) and optionally PI_VECTOR_DB_NAMESPACE for data segregation.
System environment variable required. PI_VECTOR_DB_URL must be configured as a system-level environment variable on the Pi server. Setting it as a Pi dashboard variable has no effect — Chart Explorer and Chart Builder will not connect to Qdrant. Configure this value via Docker environment settings, the Windows installer configuration tool, or the server operating system environment.
Connecting an LLM Provider
Provider | AI_PROVIDER value | Default embedding model | Default chat model | Default reasoning model |
|---|---|---|---|---|
OpenAI |
| text-embedding-3-small | gpt-4o-mini | gpt-5-mini |
OpenAI-compatible* |
| text-embedding-3-small | gpt-4o-mini | gpt-5-mini |
*Unsupported — works with providers exposing an OpenAI-compatible API. How well this works will be highly dependent on the models used and the quality of the OpenAI compatibility. We recommend sticking to our approved providers and models for the best experience.
Required dashboard variables (set globally): AI_PROVIDER = openai and AI_API_KEY = your key.
Minimum recommended model by feature
Feature | Minimum model |
|---|---|
Chart Summarisation | gpt-4o-mini |
Chart Explorer | gpt-4o-mini |
Dynamic Report Summaries | gpt-4o-mini |
Chart Builder | gpt-5-mini |
Additional provider compatibility notes
Provider | Configuration notes and limitations |
|---|---|
Ollama (local / self-hosted) |
|
Azure OpenAI | Set |
Anthropic | Anthropic does not provide an embedding model. Chart Explorer and Chart Builder require a separate embedding provider alongside Anthropic as the chat provider. Configure |
AWS Bedrock | Chart Summarisation and Dynamic Report Summaries are supported. Chart Explorer and Chart Builder require an embedding model — AWS Bedrock does not currently provide a compatible embedding endpoint and requires a separate embedding provider configured via the embedding override variables above. |
Dashboard Variables Reference
Core (required — set as dashboard variables globally)
Variable | Description |
|---|---|
| LLM provider — set to |
| API key for global AI actions, including embeddings |
AI_API_KEY — Keep Secure behaviour. When AI_API_KEY is saved with Keep Secure enabled, the value field displays a masked placeholder. This is expected behaviour — the key is stored securely and AI features will continue to function normally. Re-entering the key is not necessary. The masked display confirms the value is protected, not that it has been lost.
Optional overrides
Variable | Description |
|---|---|
| Override default provider URL (e.g. |
| Override default chat model |
| Override reasoning model used for Chart Builder |
| Override default embedding model |
Chart Builder and Pi-AI — set at system level
Variable | Description |
|---|---|
| URL of Pi-AI service (e.g. |
| Pi dashboard URL that Pi-AI calls back to. Set at system level. |
Multiple-provider setup (advanced). To use different providers per user or role, keep the embedding provider consistent across the Pi instance, then vary chat/reasoning per user: AI_EMBEDDING_PROVIDER, AI_EMBEDDING_PROVIDER_URL, AI_EMBEDDING_API_KEY, AI_EMBEDDING_MODEL.
Per-Feature Activation
Beta flags are set in the Enable Beta Features field in the dashboard's Features and Performance configuration. Contact Panintelligence Support for flag values.
Feature | Beta flag required |
|---|---|
Dynamic Report Summaries |
|
Chart Explorer (User account type or above required) |
|
Chart Builder |
|
First-login performance note. After initial setup, Pi syncs chart metadata into Qdrant on first user login. This can cause a slower initial load. Subsequent logins are unaffected.
Pi-AI Setup (MCP Server)
Windows. Available in the Pi Windows installer, pre-configured automatically.
Containers. Deploy using Docker image ghcr.io/pi-cr/pi-ai:VERSION. See the Panintelligence docker-deployments repository for a working example.
Required environment variables: PI_AI_PORT, PI_AI_ALLOWED_URLS (comma-separated permitted Pi dashboard URLs), PI_AI_JSON_LOGGING (ecs, gelf, or logstash).
MCP client configuration:
{
"mcpServers": {
"pi-ai": {
"url": "https://pi-ai.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_PI_API_TOKEN",
"Pi-Url": "https://your-pi-dashboard.example.com/pi"
}
}
}
}
Security requirements for production. TLS is required. Use minimum-permission tokens rotated every three months. Store tokens in a secrets manager. Deploy Pi-AI in a restricted network segment; consider mTLS between Pi-AI and Pi.
Customising AI Prompts
Variable | Feature | Default |
|---|---|---|
| Chart Summarisation | "What does this chart reveal? Identify the key patterns, provide meaningful insights, and suggest specific actions based on the data." |
| Chart Explorer | (none — prefix appended to every user query) |
| Chart Explorer overall summary | "What are the key points and implications from this data?" |
Token Usage and Cost Management
Feature | Model type | Input tokens | Output tokens |
|---|---|---|---|
Chart metadata embedding (per chart) | Embedding | ~50 | — |
Chart Summarisation (small chart) | Language | ~500 | ~500 |
Chart Summarisation (large table) | Language | ~5,000 | ~500 |
Chart Explorer | Language | ~5,000–10,000 | ~2,000 |
Dynamic Report Summary | Language | ~200–5,000 | ~300 |
Chart Builder | Language + reasoning | ~50,000 | ~3,000 |
Token usage per user and feature is recorded in the MIS_AI_AUDIT table in the Pi repository database. Apply budget limits via your LLM provider to cap costs.
Monitoring and Health Checks
Component | Health endpoint |
|---|---|
Pi-AI |
|
Qdrant |
|
Enable structured logging with PI_AI_JSON_LOGGING in production. Logs must be retained for at least six months (EU AI Act Article 19).
Deployment Behind a Reverse Proxy
When Pi is deployed behind a reverse proxy — such as nginx — additional configuration is required to support AI streaming responses. Without these settings, streaming responses may appear to hang or fail before completing.
nginx
proxy_buffering off;
proxy_read_timeout 300s;Apply these directives to the relevant location block in the nginx configuration. The proxy_read_timeout value may need adjusting depending on the expected response time of the configured LLM provider. Other reverse proxies require equivalent settings to support long-lived streaming connections.
Troubleshooting
AI features not appearing in the interface
If AI buttons or icons are absent, check the following:
The required beta flag for the feature is entered exactly in the Enable Beta Features field — no leading or trailing spaces
AI_PROVIDERandAI_API_KEYare set as global dashboard variablesThe PiPredict licence is active on this installation
Trailing space in AI_PROVIDER. If AI_PROVIDER was saved with a trailing space, it will not match a recognised provider and AI features will not activate. The value cannot be corrected by editing in place — delete the existing variable and create it again with the correct value, ensuring no trailing space is present.
Chart Explorer returns no results
Confirm
PI_VECTOR_DB_URLis set as a system environment variable, not a Pi dashboard variable — see Vector Database SetupVerify Qdrant is running and reachable at the configured URL
Chart metadata is indexed on first user login after initial setup — allow the sync to complete before querying
Confirm the user account is type User or above — Chart Viewer accounts cannot access Chart Explorer
Chart discoverability depends on chart name and column metadata quality — charts with generic or abbreviated names may surface less reliably
Streaming responses fail or time out
When Pi is deployed behind a reverse proxy, default proxy settings may interrupt streaming responses before they complete. Configure the proxy to support long-lived streaming connections — see Deployment Behind a Reverse Proxy for nginx settings.
Pi applies a five-minute response timeout to all AI features. This value is not configurable. Self-hosted or local LLM providers may respond more slowly than cloud-hosted APIs — ensure the configured model meets the minimum recommendation for the feature in use.
AI_API_KEY displays as masked after saving
When AI_API_KEY is saved with Keep Secure enabled, the value field shows a masked placeholder. This confirms the value is stored securely. AI features will continue to function normally — re-entering the key is not necessary.
Responses contain unexpected formatting or raw output
This may occur when the configured model does not meet the minimum recommendation for the feature in use, or when a local model does not consistently follow output formatting instructions. Review the minimum recommended model table and adjust AI_CHAT_MODEL as needed. Prompt customisation variables such as LLM_CHART_SUMMARY_USER_MESSAGE can be updated to include explicit formatting guidance.
Compliance and Regulation
Data Access and Governance
Pi-AI operates exclusively on data that has already been visualised in charts, dashboards, or reports. It cannot query raw database tables, access metadata directly, or surface information not exposed through the platform.
Access controls enforced automatically — role-based permissions, user profiles, organisational restrictions, and subscription models apply to every AI interaction
AI responses vary by user — two users asking the same question may receive different answers if their data access differs
No cross-chart calculations — AI features analyse individual charts and cannot join or aggregate data across multiple charts
Session-only memory — the AI does not retain conversation history between sessions
Privacy and Data Transmission
⚠️ When a user submits a query or triggers chart summarisation, relevant chart data and the user's input are sent to the configured LLM provider (e.g. OpenAI) for processing. Data leaves your Pi environment and is transmitted to a third-party API.
Do not share personal, confidential, or sensitive information through AI features
Do not rely on AI-generated responses for critical decisions, legal matters, medical advice, or financial guidance
AI responses may not always be accurate, current, or contextually appropriate — verify before acting
No session storage — chat history is not retained beyond the active session
Confirm your chosen LLM provider's GDPR compliance before deployment
EU AI Act Obligations
Chart Summarisation, Dynamic Report Summaries, and Chart Explorer do not fall within the high-risk categories of EU AI Act Annex III when used for general business analytics.
⚠️ Pi-AI (MCP Server) is an agentic AI system. By enabling Pi-AI, you become a deployer under EU AI Act Article 26 with the following obligations:
Human oversight (Art. 26) — implement processes to monitor AI outputs and review items created by the agent
Usage logging (Art. 19) — retain logs for a minimum of six months
Conformity assessment support (Art. 27) — required if deployed in a high-risk context
Pi-AI's formal classification under the EU AI Act is pending. Include it in your AI system register.
Human Oversight
Chart Summarisation and Chart Explorer: Review AI-generated summaries before sharing or acting on them. Treat outputs as a starting point, not a definitive conclusion.
Chart Builder: Review every generated chart in the chart editor before publishing. Confirm data connections, column mappings, and chart type are correct.
Pi-AI (agentic use): Review logs regularly. Use minimum-permission tokens. Establish a review process for all AI-created items. Consider a staged rollout. Deactivate the token immediately if unexpected behaviour is observed. Pi-AI can be disabled by stopping the Pi-AI service.
Audit Logging
Token usage per user and feature is recorded in the MIS_AI_AUDIT table in the Pi repository database. Pi-AI logs all agent interactions — enable structured logging with PI_AI_JSON_LOGGING and retain logs for at least six months. Dashboard system logs: your Pi URL /pi/log (admin required). Diagnostics: your Pi URL /pi/diagnostics.
Responsible Use and Prohibited Uses
Do not use Pi-AI for:
Autonomous decision-making without human review
High-risk use cases under EU AI Act Annex III (employment decisions, credit scoring, healthcare, law enforcement) unless a Fundamental Rights Impact Assessment (FRIA) has been completed
Processing with LLM providers not assessed for GDPR compliance
Generating content that may be mistaken for authoritative regulatory, legal, or medical guidance
For concerns or incidents: support@panintelligence.com