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: business knowledge in the tree (#61799)

Alex V50aeed8e2bc6
diff --git a/frontend/src/products.json b/frontend/src/products.json
index 83cf179622d9..ad3b0d8e7821 100644
--- a/frontend/src/products.json
+++ b/frontend/src/products.json
@@ -56,6 +56,13 @@
"type": "llm_skills",
"intents": ["llm_prompts"]
},
+ {
+ "path": "Business knowledge",
+ "category": "AI engineering",
+ "iconType": "conversations",
+ "type": null,
+ "intents": ["conversations"]
+ },
{
"path": "Web scripts",
"category": "Tools",
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index cee71e39e8db..a7de508a5060 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -533,7 +533,7 @@ export const productConfiguration: Record<string, any> = {
projectBased: true,
activityScope: 'KnowledgeSource',
description:
- 'Upload text, public URLs, or files your AI support agent can cite when answering customer tickets.',
+ 'Upload text, public URLs, or files so PostHog AI can understand your business context, vision, and policies.',
},
Transformations: {
projectBased: true,
@@ -1495,6 +1495,18 @@ export const getTreeItemsNew = (): FileSystemImport[] => [
/** This const is auto-generated, as is the whole file */
export const getTreeItemsProducts = (): FileSystemImport[] => [
+ {
+ path: 'Business knowledge',
+ intents: [ProductKey.CONVERSATIONS],
+ category: ProductItemCategory.AI_ENGINEERING,
+ href: urls.businessKnowledge(),
+ tags: ['alpha'],
+ iconType: 'conversations',
+ iconColor: ['var(--color-product-support-light)'] as FileSystemIconColor,
+ flag: FEATURE_FLAGS.PRODUCT_BUSINESS_KNOWLEDGE,
+ sceneKey: 'BusinessKnowledge',
+ sceneKeys: ['BusinessKnowledge'],
+ },
{
path: 'Clusters',
intents: [ProductKey.LLM_CLUSTERS],
diff --git a/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene.tsx b/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene.tsx
index ed2545bd8abd..0f5d741853a6 100644
--- a/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene.tsx
+++ b/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene.tsx
@@ -166,7 +166,7 @@ export function BusinessKnowledgeScene(): JSX.Element {
<SceneContent>
<SceneTitleSection
name="Business knowledge"
- description="Upload text, public URLs, or files your AI support agent can cite when answering customer tickets."
+ description="Upload text, public URLs, or files so PostHog AI can understand your business context, vision, and policies."
resourceType={{ type: 'default_icon_type', forceIcon: <IconBook /> }}
actions={
<LemonButton type="primary" icon={<IconPlusSmall />} onClick={openCreateModal}>
diff --git a/products/business_knowledge/manifest.tsx b/products/business_knowledge/manifest.tsx
index 1ff06ad014e4..03dbeecc5680 100644
--- a/products/business_knowledge/manifest.tsx
+++ b/products/business_knowledge/manifest.tsx
@@ -3,7 +3,12 @@
*
* Defines scenes, routes, URLs, and navigation for this product.
*/
-import { ProductManifest } from '../../frontend/src/types'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { urls } from 'scenes/urls'
+
+import { ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'
+
+import { FileSystemIconColor, ProductManifest } from '../../frontend/src/types'
export const manifest: ProductManifest = {
name: 'BusinessKnowledge',
@@ -14,7 +19,7 @@ export const manifest: ProductManifest = {
projectBased: true,
activityScope: 'KnowledgeSource',
description:
- 'Upload text, public URLs, or files your AI support agent can cite when answering customer tickets.',
+ 'Upload text, public URLs, or files so PostHog AI can understand your business context, vision, and policies.',
},
},
routes: {
@@ -26,5 +31,17 @@ export const manifest: ProductManifest = {
},
fileSystemTypes: {},
treeItemsNew: [],
- treeItemsProducts: [],
+ treeItemsProducts: [
+ {
+ path: 'Business knowledge',
+ intents: [ProductKey.CONVERSATIONS],
+ category: ProductItemCategory.AI_ENGINEERING,
+ href: urls.businessKnowledge(),
+ tags: ['alpha'],
+ iconType: 'conversations',
+ iconColor: ['var(--color-product-support-light)'] as FileSystemIconColor,
+ flag: FEATURE_FLAGS.PRODUCT_BUSINESS_KNOWLEDGE,
+ sceneKey: 'BusinessKnowledge',
+ },
+ ],
}