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: add link to bk from ai settings (#66250)

Alex V605ad656faad
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 4536b8ef151e..04c6c4b52056 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -5577,17 +5577,17 @@ snapshots:
scenes-app-inbox-detail--run-ready--light:
hash: v1.k794b7964.2fbb263dadddfb78130f7ce6666d5ef10151ebec9143e7f00ab0285bd3b9a21f.wRvvBPNYIVLvm3HJy8POg4TxUHmaOjEp_67VyRIArWM
scenes-app-inbox-scene--empty--dark:
- hash: v1.k794b7964.07bbc30ba986f803bfcfebf60c66bced035a3cc92027cc4e68a61a054b5f1a79.AIhrVbfGy3V_Qf0ztzWk0Nnn1xRRcQOVAm-UKvsxRu4
+ hash: v1.k794b7964.0730c341122d1d593f4e6acf7a176e05bdd79e9ca6bf5f785a909fd57ad274f1.V4Hgc6xF9-5hiq75aqzZWcbiemdqMe3fdbcMqVHbg7U
scenes-app-inbox-scene--empty--light:
- hash: v1.k794b7964.81373ae7fc298f00118487ead6d1428029a544201629904c20f9a99480ece69e.vzR527beBDJ4lfpCtunMDoJPtDCUF0GrVe-qhybPoBw
+ hash: v1.k794b7964.90d34c77f6dfa354d95f502f7760a2f663a7a9c30de1da3a731653b59f904cb0.9pu-wR68QOchxE47ApZFjYMJWmmrkN7VZFAnnGxeCW4
scenes-app-inbox-scene--inbox--dark:
hash: v1.k794b7964.eae93d2c506e66eb23f36e19f05bf6f07286d9a895dbad8f970c009fd98f1d53.AqLzv_So4UaxCTEYyb-ZB24M8Z4KF2Zq8PyO-8FDfos
scenes-app-inbox-scene--inbox--light:
hash: v1.k794b7964.f9b5a6f1ecd482963d9850ced2d07c1ea729d2d63be8679db907709e5a6fde89.kWZ_EUm4zZwm068_9nLGo5dWzvu78oVbcMTHqOHOEcY
scenes-app-inbox-scene--self-driving-onboarding--dark:
- hash: v1.k794b7964.07bbc30ba986f803bfcfebf60c66bced035a3cc92027cc4e68a61a054b5f1a79.eytb8nwcGuLgvygTe-3DnU6crJjt5ETtILVPFApVZv4
+ hash: v1.k794b7964.0730c341122d1d593f4e6acf7a176e05bdd79e9ca6bf5f785a909fd57ad274f1.qRvNaIt3BFQkYn9JRfSKCXUScoTY331T7aAtb5jHXsk
scenes-app-inbox-scene--self-driving-onboarding--light:
- hash: v1.k794b7964.81373ae7fc298f00118487ead6d1428029a544201629904c20f9a99480ece69e.SZPaHh2iZfhjafspeG-7DlvjUq9PQdf5esp2MCjMd2w
+ hash: v1.k794b7964.90d34c77f6dfa354d95f502f7760a2f663a7a9c30de1da3a731653b59f904cb0.Cxe2TZ9k11cuJdK6Z16NsJT2jJrHWTwC_8jh7MMztE4
scenes-app-inbox-scene--self-driving-paused--dark:
hash: v1.k794b7964.eae93d2c506e66eb23f36e19f05bf6f07286d9a895dbad8f970c009fd98f1d53.7hksyy3ldoFdJY9rpLYMe7FNYuMAi-U1Vlh3OGhv3wY
scenes-app-inbox-scene--self-driving-paused--light:
diff --git a/products/conversations/frontend/scenes/settings/AISection.tsx b/products/conversations/frontend/scenes/settings/AISection.tsx
index 879c0e95843d..e85c96f05740 100644
--- a/products/conversations/frontend/scenes/settings/AISection.tsx
+++ b/products/conversations/frontend/scenes/settings/AISection.tsx
@@ -1,8 +1,12 @@
import { useActions, useValues } from 'kea'
-import { LemonCard, LemonCheckbox, LemonSelect, LemonSwitch } from '@posthog/lemon-ui'
+import { LemonBanner, LemonCard, LemonCheckbox, LemonSelect, LemonSwitch, Link } from '@posthog/lemon-ui'
+
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { urls } from 'scenes/urls'
import { SceneSection } from '~/layout/scenes/components/SceneSection'
+import { FEATURE_FLAGS } from '~/lib/constants'
import { aiTriageTicketTypeLabel } from '../../types'
import { supportSettingsLogic } from './supportSettingsLogic'
@@ -38,6 +42,8 @@ export function AISection(): JSX.Element {
} = useValues(supportSettingsLogic)
const { setAiSuggestionsEnabled, setAiDiagnosticsEnabled, setAiResolutionChannels, setAiReplyMode } =
useActions(supportSettingsLogic)
+ const { featureFlags } = useValues(featureFlagLogic)
+ const businessKnowledgeEnabled = !!featureFlags[FEATURE_FLAGS.PRODUCT_BUSINESS_KNOWLEDGE]
return (
<SceneSection
@@ -57,6 +63,15 @@ export function AISection(): JSX.Element {
knowledge source.
</p>
</LemonCard>
+ {aiSuggestionsEnabled && businessKnowledgeEnabled && (
+ <LemonBanner type="info" className="max-w-[800px]">
+ Add your documents, links, and general context to{' '}
+ <Link to={urls.businessKnowledge()} target="_blank">
+ Business knowledge
+ </Link>{' '}
+ so the AI can ground its replies in your company's information.
+ </LemonBanner>
+ )}
{aiSuggestionsEnabled && (
<LemonCard hoverEffect={false} className="flex flex-col gap-y-3 max-w-[800px] px-4 py-3">
<LemonSwitch
diff --git a/products/conversations/frontend/scenes/tickets/supportTicketsSceneLogic.ts b/products/conversations/frontend/scenes/tickets/supportTicketsSceneLogic.ts
index 32e9145d16fb..5d3e8eb7aa09 100644
--- a/products/conversations/frontend/scenes/tickets/supportTicketsSceneLogic.ts
+++ b/products/conversations/frontend/scenes/tickets/supportTicketsSceneLogic.ts
@@ -93,6 +93,7 @@ export const supportTicketsSceneLogic = kea<supportTicketsSceneLogicType>([
],
channelFilter: [
'all' as TicketChannel | 'all',
+ { persist: true },
{
setChannelFilter: (_, { channel }) => channel,
applyViewFilters: (state, { filters }) => filters.channel ?? state,
@@ -100,6 +101,7 @@ export const supportTicketsSceneLogic = kea<supportTicketsSceneLogicType>([
],
slaFilter: [
'all' as TicketSlaState | 'all',
+ { persist: true },
{
setSlaFilter: (_, { sla }) => sla,
applyViewFilters: (state, { filters }) => filters.sla ?? state,
@@ -147,6 +149,7 @@ export const supportTicketsSceneLogic = kea<supportTicketsSceneLogicType>([
],
searchQuery: [
'' as string,
+ { persist: true },
{
setSearchQuery: (_, { query }) => query,
applyViewFilters: (state, { filters }) => filters.search ?? state,