---
title: Templates
description: Ready-to-use workflow templates for common automation patterns -- web scraping, data enrichment, email sending, lead scoring, PDF generation, text classification, and recurring jobs
---

Templates are pre-built workflow definitions covering the most common SDK automation patterns. Each template includes a complete `WorkflowDefinition` with Zod schemas, step handlers, and real platform tool usage. Scaffold any template through Claude Code (`/work` then describe the template) or adapt the code manually.

Templates follow the same `WorkflowDefinition` structure as any custom resource -- they are reference implementations, not a special feature. The patterns demonstrated (multi-step chains, LLM structured output, Supabase CRUD, scheduler setup) apply directly to custom workflows you build.

All templates are available for any organization. Credentials specific to each template (Supabase, Resend, Apify, etc.) must be created in the command center before running the workflow.

## Documentation

### Data Collection & Processing

- [Web Scraper](web-scraper.mdx) - Apify actor runs web scrape, stores structured results in Supabase table
- [Data Enrichment](data-enrichment.mdx) - Reads Supabase records, enriches each with LLM, writes results back; supports batching

### Communication & CRM

- [Email Sender](email-sender.mdx) - Transactional email via Resend with plain text and HTML support, single or multiple recipients
- [Lead Scorer](lead-scorer.mdx) - Multi-criteria LLM lead scoring with configurable rubric and Supabase result storage

### Documents & AI

- [PDF Generator](pdf-generator.mdx) - Renders structured data to PDF, uploads to platform storage, returns signed download URL
- [Text Classifier](text-classifier.mdx) - Multi-label text classification via LLM structured output, configurable categories and confidence scoring

### Scheduling

- [Recurring Job](recurring-job.mdx) - Two-workflow setup pattern: a setup workflow creates the schedule, the job workflow runs on each trigger; uses idempotency keys for safe re-registration

## Platform Tools Used

| Template        | Platform Tools      | Credentials Needed              |
| --------------- | ------------------- | ------------------------------- |
| Web Scraper     | `apify`, `supabase` | `apify`, `my-database`          |
| Data Enrichment | `llm`, `supabase`   | `my-database` (LLM server-side) |
| Email Sender    | `resend`            | `my-resend`                     |
| Lead Scorer     | `llm`, `supabase`   | `my-database` (LLM server-side) |
| PDF Generator   | `pdf`, `storage`    | None (platform services)        |
| Text Classifier | `llm`               | None (LLM server-side)          |
| Recurring Job   | `scheduler`         | None (platform service)         |

---

**Last Updated:** 2026-03-19
