letter-generation-pipeline

Convert intake form submissions into structured legal letters via a three-stage AI pipeline.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jamilahmedansari/www.talk-to-my-lawyer.com- --skill letter-generation-pipeline
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: letter-generation-pipeline
Source: https://github.com/jamilahmedansari/www.talk-to-my-lawyer.com-/tree/main/docs/skills/letter-generation-pipeline
Command: npx skills add https://github.com/jamilahmedansari/www.talk-to-my-lawyer.com- --skill letter-generation-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Converts raw subscriber intake forms into polished, attorney-ready legal letters by orchestrating research, drafting, and final assembly so teams can automate letter generation at scale and reduce manual attorney time.

Core Features & Use Cases

  • Three-stage AI Orchestrator: Runs web-grounded legal research, structured drafting, and final assembly with provider fallback and timeout controls.
  • Robust Status & Retry Handling: Enforces status transitions, workflow job tracking, admin retry paths, and silent failure handling with database audit records.
  • Integrations & Outputs: Persists research and drafts as versioned records, sends notification emails, supports an n8n webhook fallback, and outputs printable letter content for PDF generation.
  • Use Case: Automate demand letters, cease-and-desist notices, and other jurisdiction-sensitive correspondence for subscribers while enabling attorney review and edits.

Quick Start

Submit an intake JSON to the letters.submit endpoint to trigger the three-stage pipeline and receive a letterId for subsequent monitoring.

Frequently Asked Questions about letter-generation-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate legal letter drafting from client intake forms?▼

The pipeline enforces robust status transitions and retry handling by tracking workflow jobs, providing admin retry paths, and recording silent failures as database audit records. This prevents data loss during automated legal letter generation and ensures every submission reaches a terminal state.

Can I generate demand letters and cease-and-desist notices with web-grounded research?▼

Yes, n8n webhook integration is supported as a fallback for the legal letter generation pipeline. The system persists research and drafts as versioned records, sends notification emails, and outputs printable letter content suitable for PDF generation downstream.

How do I track letter generation status and handle failures in an automated legal drafting workflow?▼

The pipeline enforces robust status transitions and retry handling by tracking workflow jobs, providing admin retry paths, and recording silent failures as database audit records. This prevents data loss during automated legal letter generation and ensures every submission reaches a terminal state.

Does the legal letter assembly pipeline support n8n webhooks and PDF output?▼

Yes, n8n webhook integration is supported as a fallback for the legal letter generation pipeline. The system persists research and drafts as versioned records, sends notification emails, and outputs printable letter content suitable for PDF generation downstream.