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 to Templates

Chat GPT Clone Starter

GitHub logoView RepoView Live

Built with

OpenAI iconOpenAI

Tags

StarterAI
npm create convex@latest -- -t ianmacartney/convex-chat-gpt

This example app demonstrates how to use the OpenAI ChatGPT API with Convex to implement a chat. Convex stores the messages and runs server-side functions to interact with OpenAI.

Features:

  • You can chat and get responses from the Chat GPT api.
  • You can start new threads to reset your conversation with Chat GPT.
  • You can specify what the chat identity is, and change it mid-thread.
  • You can make new identities.
  • Inputs are checked for offensive input using the moderation api.

This uses Convex actions to make requests to OpenAI's API.

Chat GPT Clone Starter hero image
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.