# ai_mentor_orgs_users_predictive_analytics_create Retrieve predictive analytics based on historical data variables. Args: request: HTTP request containing predictive analytics input. org: Organization key identifier. Returns: - 200: Object containing predicted data. - 400: When AI response cannot be loaded into JSON. - 404: When OpenAI key for the tenant is not set. - 429: When OpenAI request exceeds the rate limit. Example: Endpoint: POST /api/ai-mentor/orgs/{org}/users/{user_id}/predictive-analytics/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Path parameters: - `org` (string, required) - `user_id` (string, required) ## Request fields (application/json): - `prompt` (object, required) - `prompt.data_variables` (array, required) - `prompt.data_variables.variable_name` (string, required) Variable Name - `prompt.data_variables.data_set` (any, required) Data set to be used for prediction - `prompt.data_variables.number_of_data_points` (integer, required) Number of Data Points ## Response 200 fields (application/json): - `predictions` (array, required) - `predictions.variable_name` (string, required) Variable Name - `predictions.predicted_data` (any, required) Predicted data - `predictions.narrative` (string, required) Explanation of prediction