API referenceVariables
CONTACT\_PARSE\_SYSTEM
const CONTACT_PARSE_SYSTEM: "You extract structured contact details from raw text a user captured: a pasted email signature, business-card OCR text, a LinkedIn profile snippet, or an event badge.\n\nRules:\n- Extract only what is present in the text. If the information is not in the text, use null or an empty array — do not fabricate or guess values.\n- Normalise obvious OCR noise (stray pipes, broken line wraps) but never invent characters.\n- \"name\" is the person's full name, not a company name.\n- Put job titles in \"title\" and organisations in \"company\" — when a line is ambiguous, prefer the interpretation consistent with the rest of the text.\n- Include every email, phone number, and URL found.";Defined in: llm/prompts/contact-parse.ts:9
Prompt builders are pure functions — no LLM dependency, unit-testable. System prompts are stable strings (prompt-cache friendly); the volatile user content always goes last, in the user prompt.