Files
ngo-toolkit/lib/ai/prompts/logframe.ts
T
2026-03-18 18:26:24 +08:00

73 lines
2.9 KiB
TypeScript

export const logframeMaster = (input: Record<string, string>) => `
You are an expert international development consultant specialising in logical frameworks (logframes) for NGO grant applications.
Create a complete, professional logframe matrix for the following project:
Project Title: ${input.project_title}
Organisation: ${input.organisation}
Sector: ${input.sector}
Target Beneficiaries: ${input.beneficiaries}
Geographic Location: ${input.location}
Project Duration: ${input.duration}
Budget Range: ${input.budget}
Project Summary: ${input.summary}
Generate a complete logframe with:
1. **Goal (Impact)** — The high-level development objective this project contributes to
2. **Purpose (Outcome)** — The specific change the project will achieve
3. **Outputs** — 3-5 concrete deliverables/results
4. **Activities** — 2-3 key activities per output
5. **Indicators** — SMART indicators for each level (goal, purpose, outputs)
6. **Means of Verification** — How each indicator will be measured
7. **Assumptions** — Key assumptions at each level
Format as a structured logframe matrix using markdown tables. Be specific, measurable, and realistic.
`;
export const logframeImprove = (section: string, feedback: string) => `
You are an expert logframe consultant. Improve the following section based on the feedback provided.
Current Section:
${section}
Feedback:
${feedback}
Provide an improved version that addresses the feedback while maintaining professional quality and logical consistency with a standard logframe matrix.
`;
export const logframeValidate = (logframe: string) => `
You are a senior M&E (Monitoring & Evaluation) specialist reviewing a logframe for quality assurance.
Review this logframe:
${logframe}
Provide a detailed quality assessment covering:
1. **Logical Consistency** — Does the causal chain (activities → outputs → purpose → goal) hold?
2. **SMART Indicators** — Are indicators Specific, Measurable, Achievable, Relevant, Time-bound?
3. **Means of Verification** — Are MOVs realistic and cost-effective?
4. **Assumptions** — Are assumptions clearly stated and reasonable?
5. **Completeness** — Are there gaps or missing elements?
6. **Donor Readiness** — Would this pass scrutiny from major donors (DFID, USAID, EU)?
Score each area out of 10 and provide specific recommendations for improvement.
`;
export const logframeFinalize = (logframe: string, improvements: string) => `
You are an expert logframe consultant producing the final version of a logframe.
Original logframe:
${logframe}
Improvements and feedback incorporated:
${improvements}
Produce the final, polished logframe matrix. Ensure:
- All indicators are fully SMART
- Means of verification are practical and specific
- Assumptions are clearly articulated
- The logical chain is coherent and compelling
- Language is professional and donor-ready
- Format is clean markdown with proper table structure
`;