Build more advanced AI text generation features into your Tiptap editor. Stream responses with a few lines of code and allow your users to write with the help of AI.
If you’ve already integrated the Content AI extension you can simply adjust your current integration to support the new features!
Let AI format your content
Dump your thoughts into your editor and let AI handle rich text formatting with an editor command option.
The new format: 'rich-text’
option lets you create AI responses that are structured and formatted to include headings, lists, tables, bold text, links, and more. And all of this is streamed - no loading bars or the like - just as if someone else would be writing live.
See the docs for details
Stored responses
Unsatisfied with the initial response of AI? Go ahead and prompt AI to regenerate another variation.
With the extension storage accessible under editor.storage.ai
you can cycle through results, preview and compare them. Confirm your choice and insert it directly into the Editor.
Options
aiAccept
Accepts the AI answer and inserts it into your document. You can specify if you want to append or replace your selection.aiRegenerate
This command generates another response based on the previous prompt and adds it to the array: editor.storage.ai.pastResponses
.aiReject
This command rejects the AI response and deletes the expanded storag
See the docs for details
Contextual queries
Not getting the best AI responses for your prompts? Add more text
or url
context to your editor commands and make sure the AI knows what your users are talking about.
The option is called context
and can be added to all text editor commands.
See the docs for details
New prompt commands
In addition, new predefined text prompts have been added that can be used immediately.
aiBloggify(options: TextOptions)
Rewrite the text into a blog formataiRestructure(options: TextOptions)
Restructures the selected text to use rich text formattingaiKeypoints(options: TextOptions)
Summarizes your text to a list of key points
See the docs for details