Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: add chat onboarding entry (#7109)

regischen004390f40ccb
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx
index 2c4d3c9e47..7f951fb0d7 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx
@@ -8,6 +8,7 @@ import { assertExists } from '@blocksuite/global/utils';
import { AIProvider } from '@blocksuite/presets';
import { getCurrentStore } from '@toeverything/infra';
+import { toggleGeneralAIOnboarding } from '../../../affine/ai-onboarding/apis';
import type { PromptKey } from './prompt';
import {
createChatSession,
@@ -390,6 +391,8 @@ Could you make a new website based on these notes and send back just the html fi
},
});
+ AIProvider.provide('onboarding', toggleGeneralAIOnboarding);
+
AIProvider.slots.requestUpgradePlan.on(() => {
getCurrentStore().set(openSettingModalAtom, {
activeTab: 'billing',