DatabaseChat

Ship a production-ready database chat in minutes.

Add natural language database queries to your app with streaming responses, tool calling, and a set of React hooks built for Convex.

  • Typed tools that map Convex queries to model-friendly function calls.
  • Streaming UI built on delta updates for smooth, efficient chat.
  • Drop-in hooks for conversations, messages, and abort control.

From tools to streaming UI

1

Define tools

Register Convex queries and mutations as typed tools with clear descriptions.

2

Start a thread

Create a conversation, load history, and hand off to the chat hooks.

3

Stream replies

Stream deltas into the UI, show progress, and support user aborts.

Delta-based streaming

Efficient O(n) streaming with client-side accumulation and clean stream lifecycle.

Tool calling

Define the queries your LLM can run, from explicit tools to schema-driven helpers.

React hooks

Drop-in hooks for messages, streaming content, smooth text, and conversations.