RealtimeKeep your app up to date
AuthenticationOver 80+ OAuth integrations
Convex Components
ComponentsIndependent, modular, TypeScript building blocks for your backend.
Open sourceSelf host and develop locally
AI CodingGenerate high quality Convex code with AI
Compare
Convex vs. Firebase
Convex vs. Supabase
Convex vs. SQL
DocumentationGet started with your favorite frameworks
SearchSearch across Docs, Stack, and Discord
TemplatesUse a recipe to get started quickly
Convex for StartupsStart and scale your company with Convex
Convex ChampionsAmbassadors that support our thriving community
Convex CommunityShare ideas and ask for help in our community Discord
Stack
Stack

Stack is the Convex developer portal and blog, sharing bright ideas and techniques for building with Convex.

Explore Stack
BlogDocsPricing
GitHub
Log inStart building
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

Resources

💡BLOG
Read a tutorial on integrating ChatGPT with Convex
stack.convex.dev/full-stack-chatgpt-app
💻CODE
Sample app demonstrating a GPT-powered chat app
github.com/ianmacartney/convex-chat-gpt
💡BLOG
Learn how to give your AI agents distinct personalities
stack.convex.dev/adding-personality-to-chatgpt-3
💡BLOG
Read a tutorial series on various ways to build AI chatbots with Convex
stack.convex.dev/ai-chat-using-openai-assistants-api
🎞️VIDEO
Watch a tutorial on building a text adventure game with Convex & AI
stack.convex.dev/how-to-code-an-ai-powered-text-adventure-game
🎞️VIDEO
Watch a live-coding video course on building an AI storybook app
stack.convex.dev/ai-storybook-app
💡BLOG
Read up on even more ways you can use AI in Convex apps
stack.convex.dev/tag/AI
💡BLOG
Stream realtime GPT output into your app
stack.convex.dev/gpt-streaming-with-persistent-reactivity
Get your app up and running in minutes
Start building
Convex logo
ProductSyncRealtimeAuthOpen sourceAI codingChefFAQPricing
DevelopersDocsBlogComponentsTemplatesStartupsChampionsChangelogPodcastLLMs.txt
CompanyAbout usBrandInvestorsBecome a partnerJobsNewsEventsTerms of servicePrivacy policySecurity
SocialTwitterDiscordYouTubeLumaBlueskyGitHub
A Trusted Solution
  • SOC 2 Type II Compliant
  • HIPAA Compliant
  • GDPR Verified
©2025 Convex, Inc.