# L4 Tutorials

Task-oriented guides to help you accomplish specific goals with L4. Each tutorial is self-contained and focused on a particular use case or audience.

## Getting Started

New to L4? Start here:

- **[Your First L4 File](/l4/tutorials/getting-started/first-l4-file.md)** - Create and run a simple L4 program
- **[Encoding Legislation](/l4/tutorials/getting-started/encoding-legislation.md)** - Turn legal text into L4
- **[Wedding Vows](/l4/tutorials/getting-started/wedding-vows.md)** - Fun intro to regulative rules
- **[Common Patterns](/l4/tutorials/getting-started/common-patterns.md)** - Quick reference patterns

## Natural Language Functions

Write functions that read like legal prose:

- **[Infix, Postfix, and Mixfix Functions](/l4/tutorials/natural-language-functions/natural-language-functions.md)**

**Audience:** All L4 users  
**Prerequisites:** Basic function syntax

## Deployment and Legalese Cloud

Export your L4 functions as live REST API endpoints:

- **[Exporting Functions for Deployment](/l4/tutorials/deploying-functions/exporting-functions-for-deployment.md)** - Mark functions with `@export`, deploy from VS Code, and call them via REST or WebMCP

**Audience:** L4 authors ready to share their rules
**Prerequisites:** Basic L4 knowledge

## LLM Integration

Working with AI and language models in L4:

- **[LLM Getting Started](/l4/tutorials/llm-integration/llm-getting-started.md)** - Basics of LLM integration
- **[Legislative Ingestion](/l4/tutorials/llm-integration/legislative-ingestion.md)** - LLM-assisted encoding
- **[Composing L4 with AI](/l4/tutorials/llm-integration/composing-l4-with-ai.md)** - Draft L4 from prose using Claude Code

**Audience:** Developers, AI/ML practitioners  
**Prerequisites:** Basic L4 knowledge

---

## Tutorial Ideas

See [Tutorial Suggestions](/l4/tutorials/tutorial-suggestions.md) for a list of planned tutorials and ideas for new content. Contributions welcome!
