Convex Agents Threads
Installation
SKILL.md
Purpose
Threads group related messages into organized, linear conversation histories. Every message in the Agent component belongs to a thread.
When to Use This Skill
- Creating new conversations for users
- Managing conversation history and metadata
- Continuing existing conversations
- Querying message history within a thread
- Organizing conversations by user or context
- Cleaning up old or completed conversations
Create a Thread
import { createThread } from "@convex-dev/agent";