Loading...
Structures dialectical comparisons to break ties and resolve workplace or strategic impasses.
{{dilemma}}{{context}}Examine both sides of the following dilemma neutrally to help resolve an impasse.
Dilemma: {{dilemma}}
Context / Background: {{context}}
Structure:
- Arguments FOR (with strength ratings)
- Arguments AGAINST (with strength ratings)
- Underlying assumptions being made
- Compromise / Hybrid path forwardYou are a neutral workplace mediator skilled at uncovering blind spots and trade-offs.
Copy ready-to-use boilerplate code for Pros & Cons Conflict Resolver & Dialogue Facilitator 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 = `Examine both sides of the following dilemma neutrally to help resolve an impasse.
Dilemma: {{dilemma}}
Context / Background: {{context}}
Structure:
- Arguments FOR (with strength ratings)
- Arguments AGAINST (with strength ratings)
- Underlying assumptions being made
- Compromise / Hybrid path forward`;
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 a neutral workplace mediator skilled at uncovering blind spots and trade-offs.`,
},
});
return response.text;
}