top | item 44177964

Show HN: Tiptap AI Agent – Add AI workflows to your text editor in minutes

45 points| philipisik | 9 months ago

We built the Tiptap AI Agent to make it easy to integrate AI into a rich text editor, without rebuilding your entire frontend.

If you’ve ever tried wiring up AI inside a document editor, you’ve probably dealt with:

  - Extracting context from complex document structures
  - Handling prompt input + streamed output
  - Supporting undo/redo for AI changes
  - Designing UI for accepting/rejecting changes
  - Multiplayer session state and conflicts
It’s a lot of work, and almost none of it is model-specific.

This new Tiptap toolkit gives you a clean way to define AI Agents that can read and edit rich text based on user-defined tasks. You can trigger agents manually, automatically, or in response to structured input.

Works with OpenAI or your own backend + LLM stack. Built on top of the same multiplayer engine behind Tiptap’s collaboration features.

We also include an AI Changes extension so users can review and accept/reject generated edits, like a built-in code review for content.

There’s a live demo here: https://ai-agent.tiptap.dev/

Developer Docs: https://tiptap.dev/docs/content-ai/capabilities/agent/overvi...

Happy to answer questions or just hear what you’re building :-)

18 comments

order

jamsterion|9 months ago

Looks very good! Are these new components exclusively available through the Pro package, requiring at least the paid Starter plan? Are any of the new features open source, or is all of the new functionality restricted to the paid tiers?

6stringmerc|9 months ago

If used in a legally binding setting to does your firm accept liability for erroneous output resulting in litigation proceedings or financial loss? Serious question because I’m a human working in a similar niche.

If not, how do you phrase that in your ToS and what is your Errors and Omissions policy language like?

philipisik|9 months ago

We don't know the use case and content... We're providing the tools to build the editor-AI-UX, which you can then connect to the LLM of your choice.

In our AI extensions, we provide callbacks like onSuccess that you can hook into, to send analytics events and track the AI's responses.

andrewingram|9 months ago

I don't work for Tiptap, but I'm curious as to what your expectations are here.

They're providing tools for integrating Tiptap with AI, including ones for reviewing suggested changes that come from LLMs. I don't really see something that Tiptap should be accepting liability for. As the developer working with Tiptap, I'd argue it's your responsibility to make sure (a) the prompts are giving generally good and useful output, and (b) that you incorporate any necessary UI to put a human in the loop of accepting the AI output. On the latter point, their AI Changes extension is one such example, but there are any number of ways of achieving this.

dedicate|9 months ago

I gotta say, the focus on all that non-model-specific heavy lifting for AI in editors? That's the real MVP move here. So much of the AI hype is just about the model, but integrating it smoothly is where most projects probably hit a wall.

philipisik|9 months ago

Agreed, adding Cursor-like AI features to a rich text editor is way harder than it should be... You have to handle prompts, context management, streaming, error states, UI, undo/redo, multiplayer sync, AI UX, it all adds up fast.

andrewingram|9 months ago

If using tiptap as a collaborative editor, are the pending AI Changes (the red/green diff applied to the editor contents) visible to all users, or just the current one?

Ideally it's the latter, but it's non-obvious to me.

ainau-tiptap|9 months ago

In this first version of the AI Agent, the changes are visible to all users as soon as the AI Agent inserts them into the document. However, we are going to implement the other option if there is demand for it. It is in our backlog.

yutingduan|9 months ago

Huh I really like the inline accept / reject button upon clicking

would be nice to customize the diff view colors and button styles

will play with the integration. Very cool stuff!

philipisik|9 months ago

Thanks for your feedback! It's highly customizable. Feel free to let us know if you need any additional options to meet your specific needs. We're happy to help!

gunniho|9 months ago

Awesome job Tiptap, looks really powerful.

Is it possible to allow the agent to work on multiple documents for the same user/group?

ainau-tiptap|9 months ago

Yes, absolutely. You can hook the AI Agent to your custom tools that let it browse and switch files. Just like you would do when building a coding AI Agent. It's exciting but also complex to do, that's why we haven't provided an example of how to do it yet. We're still figuring it out, and we'll work on improving multi-file support in the next releases.

mplatts|9 months ago

Is there a github repo to copy from?