Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(signals): show product analytics anomaly source in agent roster (#71732)

Radu Raicea61fd187f7f0d
diff --git a/frontend/src/scenes/inbox/components/config/AgentsRoster.tsx b/frontend/src/scenes/inbox/components/config/AgentsRoster.tsx
index 2c32e48190cd..e03caa683283 100644
--- a/frontend/src/scenes/inbox/components/config/AgentsRoster.tsx
+++ b/frontend/src/scenes/inbox/components/config/AgentsRoster.tsx
@@ -152,6 +152,7 @@ export function AgentsRoster(): JSX.Element {
sessionAnalysisConfig,
conversationsConfig,
evalReportsConfig,
+ anomalyInvestigationConfig,
githubIssuesConfig,
linearIssuesConfig,
zendeskTicketsConfig,
@@ -160,6 +161,7 @@ export function AgentsRoster(): JSX.Element {
isSessionAnalysisToggling,
isConversationsToggling,
isEvalReportsToggling,
+ isAnomalyInvestigationToggling,
isErrorTrackingToggling,
isGithubIssuesToggling,
isLinearIssuesToggling,
@@ -171,6 +173,7 @@ export function AgentsRoster(): JSX.Element {
toggleConversations,
toggleErrorTracking,
toggleEvalReports,
+ toggleAnomalyInvestigation,
initiateDataWarehouseSourceToggle,
} = useActions(signalSourcesLogic)
@@ -212,6 +215,13 @@ export function AgentsRoster(): JSX.Element {
requiresSetup: false,
syncStatus: null,
}
+ case 'analytics':
+ return {
+ armed: !!anomalyInvestigationConfig?.enabled,
+ loading: isAnomalyInvestigationToggling,
+ requiresSetup: false,
+ syncStatus: anomalyInvestigationConfig?.status,
+ }
case 'github':
return dwState(githubIssuesConfig, isGithubIssuesToggling)
case 'linear':
@@ -231,6 +241,8 @@ export function AgentsRoster(): JSX.Element {
isSessionAnalysisToggling,
evalReportsConfig,
isEvalReportsToggling,
+ anomalyInvestigationConfig,
+ isAnomalyInvestigationToggling,
githubIssuesConfig,
isGithubIssuesToggling,
linearIssuesConfig,
@@ -257,6 +269,9 @@ export function AgentsRoster(): JSX.Element {
case 'llm_analytics':
toggleEvalReports()
return
+ case 'analytics':
+ toggleAnomalyInvestigation()
+ return
case 'github':
initiateDataWarehouseSourceToggle('Github')
return
@@ -276,6 +291,7 @@ export function AgentsRoster(): JSX.Element {
toggleConversations,
toggleSessionAnalysis,
toggleEvalReports,
+ toggleAnomalyInvestigation,
initiateDataWarehouseSourceToggle,
]
)
diff --git a/frontend/src/scenes/inbox/components/config/agentRosterMeta.ts b/frontend/src/scenes/inbox/components/config/agentRosterMeta.ts
index c6c5eb6090e5..3df8f3c85441 100644
--- a/frontend/src/scenes/inbox/components/config/agentRosterMeta.ts
+++ b/frontend/src/scenes/inbox/components/config/agentRosterMeta.ts
@@ -11,6 +11,7 @@ export type AgentRosterSource =
| 'conversations'
| 'session_replay'
| 'llm_analytics'
+ | 'analytics'
| 'github'
| 'linear'
| 'zendesk'
@@ -75,6 +76,15 @@ export const AGENT_ROSTER_GROUPS: AgentRosterGroup[] = [
docsUrl: 'https://posthog.com/docs/ai-evals/evaluations',
docsLabel: 'AI observability',
},
+ {
+ source: 'analytics',
+ sourceProduct: SignalSourceProduct.Analytics,
+ label: 'Product analytics',
+ description: 'Anomalies and unexpected shifts detected in your product metrics.',
+ docsUrl: 'https://posthog.com/docs/product-analytics',
+ docsLabel: 'Product analytics',
+ alpha: true,
+ },
],
},
{