Agent Skills
AIPrismaLayer
Superset-based dashboard system integration for managing dashboards, charts, and databases
AIPrismaLayer Integration Setup Guide
The AIPrismaLayer integration provides full PrismaLayer (Superset) management from workspace prompts.
Overview
Agents can:
Read
- Dashboards: List all dashboards, get dashboard by ID or title
- Databases: List databases, get database, list tables, list schemas, test connection
- Charts: List charts, get chart, get chart data (with metric/country filters), list charts in a dashboard
- Datasets: List datasets, get dataset by ID or name
- Saved queries: List saved queries, get saved query by ID
- Tags: List all tags
Write
- Dashboards: Create, update, delete, copy dashboard
- Charts: Create, update, delete chart
- SQL: Execute query (SQL Lab or legacy), create/update/delete saved query
- Tags: Add tag to dashboard or chart
Setup
Step 1: Copy Files
Copy the integration files to the active plugins directory:
# Linux/Mac
mkdir -p backend/storage/plugins/agent-skills/aiprismalayer
cp -r path/to/aiprismalayer/* backend/storage/plugins/agent-skills/aiprismalayer/
# Windows (PowerShell)
New-Item -ItemType Directory -Force -Path "backend\storage\plugins\agent-skills\aiprismalayer"
Copy-Item -Path "path\to\aiprismalayer\*" -Destination "backend\storage\plugins\agent-skills\aiprismalayer\" -Recurse -ForceStep 2: Verify Plugin Configuration
Ensure plugin.json has "active": true:
{
"active": true,
"hubId": "aiprismalayer",
...
}Step 3: Configure in AINexLayer
- Navigate to Workspace Settings → Agent Skills
- Find AIPrismaLayer in the list
- Configure:
- AIPRISMA_BASE_URL: Base URL of your AIPrismaLayer/Superset instance (e.g.,
http://localhost:8088) - AIPRISMA_USERNAME: Username for Superset authentication (default:
admin) - AIPRISMA_PASSWORD: Password for Superset authentication (default:
admin)
- AIPRISMA_BASE_URL: Base URL of your AIPrismaLayer/Superset instance (e.g.,
- Save configuration
Step 4: Restart AINexLayer
Restart your AINexLayer server for changes to take effect.
Usage Examples
User: "Show me all available dashboards in AIPrismaLayer"
AI: [Calls get_dashboards and displays list]
User: "Show me all charts in the COVID Vaccine Dashboard"
AI: [Calls get_dashboard_charts and displays charts]
User: "What's in the Sales Dashboard?"
AI: [Calls get_dashboard and displays dashboard details]
User: "List all available databases in AIPrismaLayer"
AI: [Calls get_databases and displays list]
User: "Show me tables in the main database"
AI: [Calls get_database_tables and displays tables]Available Operations
Dashboards
get_dashboards- List all dashboardsget_dashboard- Get specific dashboard by ID or titlecreate_dashboard- Create a new dashboardupdate_dashboard- Update an existing dashboarddelete_dashboard- Delete a dashboardcopy_dashboard- Duplicate a dashboard
Charts
get_charts- List all chartsget_chart- Get specific chart by ID or titleget_chart_data- Get actual data from a chart (with filters)get_dashboard_charts- List all charts in a dashboardcreate_chart- Create a new chartupdate_chart- Update an existing chartdelete_chart- Delete a chart
Databases
get_databases- List all databasesget_database- Get specific database by ID or nameget_database_tables- List tables in a databaseget_database_schemas- List schemas in a databasetest_database_connection- Test connection to a database
SQL Queries
execute_query- Execute a SQL query on a databaseexecute_sql- Execute SQL via SQL Lablist_saved_queries- List saved SQL Lab queriesget_saved_query- Get specific saved query by IDcreate_saved_query- Create a saved queryupdate_saved_query- Update a saved querydelete_saved_query- Delete a saved query
Datasets
get_datasets- List all datasetsget_dataset- Get specific dataset by ID or name
Tags
list_tags- List all tagsadd_tag- Add a tag to a dashboard or chart
Troubleshooting
Skill Not Appearing
- Verify files are copied to
backend/storage/plugins/agent-skills/aiprismalayer/ - Check that
plugin.jsonhas"active": true - Restart AINexLayer
Authentication Errors
- Verify
AIPRISMA_BASE_URLis correct and accessible - Check
AIPRISMA_USERNAMEandAIPRISMA_PASSWORDare correct - Ensure Superset instance is running
Chart Data Not Loading
- Some chart data retrieval methods may require fixes
- Basic dashboard and chart listing should work
- Check Superset API logs for errors
400 Bad Request Errors
- May occur with complex chart data queries
- Try simpler queries first (dashboard listing, chart listing)
- Check Superset API documentation for endpoint requirements
