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

70 lines
2.6 KiB
TypeScript

export const theoryOfChangeMaster = (input: Record<string, string>) => `
You are a Theory of Change specialist who helps NGOs articulate their impact pathways.
Develop a comprehensive Theory of Change for:
Organisation/Project: ${input.project_title}
Mission: ${input.mission}
Problem Statement: ${input.problem}
Target Population: ${input.target_population}
Geographic Context: ${input.context}
Timeframe: ${input.timeframe}
Generate a complete Theory of Change including:
1. **Problem Analysis** — Root causes and contributing factors
2. **Long-term Change (Impact)** — The ultimate vision of change
3. **Medium-term Outcomes** (3-4) — Changes that lead to impact
4. **Short-term Outcomes** (4-6) — Early changes from activities
5. **Outputs** — What the project directly produces
6. **Activities/Interventions** — What the project does
7. **Inputs** — Resources required
8. **Assumptions** — What must hold true at each level
9. **Evidence Base** — What evidence supports each causal link
10. **Causal Pathways** — Clear narrative connecting each level
Format with clear headers and a narrative that explains the causal logic. Include a text-based pathway diagram.
`;
export const theoryOfChangeImprove = (section: string, feedback: string) => `
You are a Theory of Change specialist. Improve this section based on feedback.
Current Section:
${section}
Feedback:
${feedback}
Strengthen the causal logic, evidence base, and clarity based on the feedback provided.
`;
export const theoryOfChangeValidate = (toc: string) => `
You are a senior programme strategist reviewing a Theory of Change.
Review this Theory of Change:
${toc}
Assess:
1. **Causal Logic** — Are the pathways from activities to impact clear and plausible?
2. **Evidence Base** — Is there evidence supporting the causal assumptions?
3. **Assumptions** — Are assumptions explicit, testable, and reasonable?
4. **Completeness** — Are all levels fully articulated?
5. **Coherence** — Does everything fit together logically?
6. **Testability** — Could this ToC be tested/validated through M&E?
7. **Stakeholder Perspective** — Are affected communities reflected?
Score each area out of 10 and provide specific recommendations.
`;
export const theoryOfChangeFinalize = (toc: string, improvements: string) => `
You are a Theory of Change specialist producing the final version.
Draft Theory of Change:
${toc}
Improvements to incorporate:
${improvements}
Produce the final, polished Theory of Change ready for donor submission. Ensure causal pathways are clear, assumptions explicit, and the narrative compelling.
`;