generate_documents
Create teacher verification documents like employment letters, teacher IDs, and teaching licenses. Provide teacher and school details to generate high-resolution PNGs for 13 countries.
Instructions
Generate teacher verification documents (employment letter, teacher ID, teaching license).
Args: country: Country code from list_countries (e.g. 'us', 'uk'). first_name / last_name: The teacher's name. school_name: Exact or partial school name (matched against that country's school list). position: Teaching position/title. date_of_birth: Display date of birth string (shown on the teacher ID). gender: 'Random', 'Male', or 'Female' — selects which photo pool is used. document_types: Which documents to render. Omit for all. e.g. ['employment_letter', 'teacher_id']. output_dir: Where to save PNGs (relative to project root). Defaults to 'output'.
Returns: Dict with 'files' (absolute paths), 'count', and 'output_dir'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | No | Random | |
| country | Yes | ||
| position | Yes | ||
| last_name | Yes | ||
| first_name | Yes | ||
| output_dir | No | ||
| school_name | Yes | ||
| date_of_birth | Yes | ||
| document_types | No |