This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
AI

Notes to Actions Lab

Paste meeting notes - generateObject action items with owner/due/status; persist to Neon or an in-memory session list.

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/notes-to-actions-lab
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Use it as a starting point for your own projects.

Notes to Actions Lab extracts { title, owner?, due?, status } items via generateObject, then persists them to Neon (experiment_actions) when DATABASE_URL is set. Without Postgres it keeps an in-memory session list and shows a UI note. Toggle status with PATCH. Missing AI keys return 503.

Features

  • Meeting notes - actions – capped notes (~12k chars), up to 20 items.
  • Neon or memory – experiment_actions table when configured; honest in-memory fallback.
  • Status toggle – mark done / reopen without regenerating.
  • Sample standup notes – prefilled owners and dues.
  • Honest 503 when AI Gateway / OpenAI is not configured.

Server Reference

POST /api/actions

{ "notes": "..." }

Success (200)

{
  "actions": [
    { "id": "a-1", "title": "Ship docs", "owner": "Alex", "due": "Friday", "status": "open" }
  ],
  "storage": "neon",
  "provider": "ai-gateway"
}

GET /api/actions

Lists persisted actions (storage: neon | memory).

PATCH /api/actions

{ "id": "a-1", "status": "done" }
StatusCause
503No AI provider (POST)
400Empty notes / invalid patch
404Unknown action id

Implementation Details

Truncate + generateObject

truncateText then Zod schema for actions.

Persist

Neon upsert into experiment_actions, else module-level Map.

Use Cases

  • Learn composition patterns for this lab’s stack.
  • Prototype before wiring production auth and quotas.
  • Deploy the standalone app as a reference implementation.

Limitations

  • Demo-scale caps on input size and output counts.
  • No auth / rate limits on public deploys.
  • Model quality depends on input clarity.

Use in your project

Copy the Route Handler and logic.ts helpers from apps/experiments/notes-to-actions-lab/. Wire your own persistence and auth as needed.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/notes-to-actions-lab
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
AI_GATEWAY_API_KEYYes (or OPENAI_API_KEY)Preferred provider
OPENAI_API_KEYNoFallback
AI_MODELNoModel override
DATABASE_URLNoNeon persistence

Vercel / Next.js Features Used

  • AI SDK generateObject
  • Neon serverless Postgres
  • Route Handlers
  • Zod

Next Steps

On this page