Back

AI chat

Enhance your app with AI text generation

AI chat is an increasingly relevant feature for many web apps. By using Convex actions to access a third-party AI service such as OpenAI, you can generate text as needed in response to user input and/or live updates from your Convex database. Since Convex natively supports vector storage & search, you can easily implement retrieval-augmented generation via text embeddings. To make it feel like your AI chatters are typing live, you can even stream data in realtime from models like GPT into your Convex app, taking advantage of Convex's persistent reactivity and performant caching.
Screen grab of AI chat in action