PostHog / PostHog/posthog

Feature request: Use AI to set the insight name & description

Open
#47,481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/insights team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Feature request

Is your feature request related to a problem?

Currently, we generate the insight name based on the selected events, following the <event> <math> format.
Use the insight query to create more meaningful names powered by AI.

Describe the solution you'd like

Autoname insights using AI.

Additional context

Start with the basic implementation and improve.

  1. Allow naming insights with AI
  2. Prompt tuning
  3. Fallback mechanism
  4. Caching
  5. AI-generated description
  6. Limits & pricing (automatically set the name/description on series change?)
Debug info
- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current insight naming behavior described in the issue and the linked prerequisite issue #47483, Allow naming insights with AI. The requested work spans basic naming, prompt tuning, fallback, caching, descriptions, and limits; done would need a defined first implementation and decisions for those follow-up areas.

Written by the indexing model from the issue text.

Assessment

Domain
ai, analytics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.