Suggest analytics events to track

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns short prompts that suggest analytics events worth tracking in the app.

An AI model writes the prompts from the app's name, categories, description, and recent AI chat messages, so each call can return different ones.

The prompts are always in English, and you usually get four. If the model fails to produce them, you get a fixed set of general prompts instead, with a successful response. The call doesn't use the workspace's credits.

To have the AI add event tracking to the app, put prefix in front of a prompt and send it with Send chat message. Once the app is tracking events, read them with List analytics event names.

get/api/apps/{app_id}/analytics/suggestions

Request

  • Base URL
    https://app.base44.com
  • URL
    https://app.base44.com/api/apps/{app_id}/analytics/suggestions
  • Auth
    HTTP bearer

Path parameters

app_idstring required

ID of the app whose analytics to read.

Response

Suggested prompts for the app.

suggestionsstring[] required

Short prompts, each describing events worth tracking in this app. They don't include prefix.

prefixstring required

Text to put in front of each prompt before you send it to the app's AI chat.

Example response

{
  "suggestions": [
    "Track recipe saves and shares",
    "Log meal plan creation",
    "Record grocery list exports",
    "Monitor search queries and result clicks"
  ],
  "prefix": "Using Event Tracking, "
}

Changes