Loading...
Compares complex choices objectively using weighted criteria scoring and risk analysis.
{{decision_topic}}{{options}}{{criteria}}Evaluate the following options based on given criteria to reach an objective recommendation.
Decision Topic: {{decision_topic}}
Options to Consider: {{options}}
Evaluation Criteria: {{criteria}}
Output:
- Comparison Table with Scores (1-10)
- Trade-offs for Each Option
- Final Recommended Path with RationaleYou are an objective strategy consultant focusing on unbiased analysis and structured decision frameworks.
Copy ready-to-use boilerplate code for Decision Matrix & Strategic Evaluator using the target SDK.
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
async function runPrompt(variables: Record<string, string>) {
let promptText = `Evaluate the following options based on given criteria to reach an objective recommendation.
Decision Topic: {{decision_topic}}
Options to Consider: {{options}}
Evaluation Criteria: {{criteria}}
Output:
- Comparison Table with Scores (1-10)
- Trade-offs for Each Option
- Final Recommended Path with Rationale`;
Object.entries(variables).forEach(([key, val]) => {
promptText = promptText.replace(new RegExp(`{{\\s*${key}\\s*}}`, 'g'), val);
});
const response = await ai.models.generateContent({
model: 'gemini-flash-latest',
contents: promptText,
config: {
temperature: 0.7,
systemInstruction: `You are an objective strategy consultant focusing on unbiased analysis and structured decision frameworks.`,
},
});
return response.text;
}