Install
Subscribe to the Business plan and schedule your onboarding call from the Cloud dashboard.
Once granted access, configure your package manager by following the private registry guide.
Then, install the package:
npm install @tiptap-pro/ai-toolkitAdd the extension to your editor and access its methods:
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import { AiToolkit, getAiToolkit } from '@tiptap-pro/ai-toolkit'
const editor = new Editor({
extensions: [StarterKit, AiToolkit],
})
// Get the AI Toolkit instance
const toolkit = getAiToolkit(editor)
// Call the AI Toolkit methods
toolkit.insertText('AI-generated content')