Weavlet Logo

Weavlet

[WHY] AI products should be easy to build and trustworthy to operate. [HOW] That requires structuring how intelligence behaves, not just how it responds. [WHAT] So we build foundational systems for expressive and reliable AI.

Primitives

Open Source building blocks that make your development with AI so much easier.

  • Factsheet

FactSheet maintains a live, structured profile for each user by extracting facts from conversations and resolving conflicts deterministically. Instead of searching through chat history, your AI reads current truths from a single JSON object.

Implementation

1Install the package

npm install @weavlet/factsheet zod

2Define your schema and initialize FactSheet

import { FactSheet, MemoryAdapter } from '@weavlet/factsheet'
import { z } from 'zod'

const factSheet = new FactSheet({
storage: new MemoryAdapter(),
schema: z.object({
name: z.string().optional(),
role: z.enum(['founder', 'engineer', 'designer']).optional(),
intent: z.enum(['learn', 'buy', 'support']).optional(),
}),
extractor: {
model: 'gpt-4o-mini',
},
})

3Extract facts and use them in your app

// Extract facts from conversation
await factSheet.observe({
userId: 'user_123',
input: "I'm Alice, CTO at Acme. Looking to migrate from Heroku.",
})

// Get current profile
const profile = await factSheet.get('user_123')
// → { name: "Alice", role: "founder", intent: "migrate" }

Read FactSheet docs

Open sourcing soon
  • Turn Definition for Speech
  • Scoring with LLM
  • Context Scoping
  • Ads

Let's collaborate

We push the edges of AI; you benefit from the journey

Contact us at hello@weavlet.com