chat
Chat with an AI agent to analyze data, generate visualizations, and explore insights using natural language queries. Supports both internal users with existing permissions and external users with custom security attributes.
Instructions
Chat with Cube AI agent for analytics and data exploration. Returns streaming response with AI insights, tool calls, and data visualizations. Supports both external users (with custom attributes) and internal Cube users (with existing permissions).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Your question or request for the Cube AI agent (e.g., 'Show me revenue trends for the last 6 months') | |
| externalId | No | Optional: External user ID for third-party users. Allows custom userAttributes and groups. Cannot be used with internalId. | |
| internalId | No | Optional: Internal user ID (email address) for existing Cube users. Uses their existing permissions. Cannot be used with externalId or userAttributes. | |
| userAttributes | No | Optional: Array of user attributes for row-level security (only valid with externalId). Each attribute has 'name' and 'value' properties. | |
| groups | No | Optional: Array of group names for authorization (only valid with externalId) |