Plate Pro
Docs
Components
Editors
Templates
Toggle Menu
Search documentation...
Search...
⌘
K
GitHub
Discord
Toggle theme
Sign in
Get all-access ->
Components
AI Leaf
AI Leaf
A text highlighter for AI-generated content.
AI
Installation
Install the following dependencies:
Copy
npm
install
@udecode/plate-ai
Copy and paste the following code into your project.
Get the code ->
Update the import paths to match your project setup.
Examples
AI
Preview
Get the code ->
AI Menu
Generate and refine content with AI.
Access the AI menu in many ways:
Press "⌘ + J".
Select text and click "Ask AI" in the floating toolbar
Click ⋮⋮ or right-click a block and select "Ask AI"
Type "/ai"
Press space in an empty block. Try it out:
Once opened, you can:
Type a prompt or use preset commands
Use arrow keys to navigate, Enter to select
Generating commands:
Continue writing
Add a summary
Explain
Generating suggestions:
Accept
Discard
Try again
Editing commands:
Improve writing
Make it longer or shorter
Fix spelling & grammar
Simplify language
Translate
Editing suggestions:
Replace the selection
Insert below
Discard
Try again
💡
The AI chat keeps a history of the conversation until you accept or discard the changes. Clicking outside or pressing Escape resets the chat.
Edit link
100
%
Table of Contents
Blockquote Element