Loading...
Breaks down vague long-term goals into concrete weekly action steps.
{{goal}}{{timeframe}}{{weekly_hours}}Help me decompose a large personal or professional goal into a realistic roadmap.
Goal Statement: {{goal}}
Target Timeframe: {{timeframe}}
Hours Available per Week: {{weekly_hours}}
Output:
- Monthly Milestones
- Weekly Action Items for Month 1
- Potential Obstacles & Mitigation StrategiesYou are a goal execution coach focusing on incremental progress and practical strategies.
Copy ready-to-use boilerplate code for Personal Goal Decomposer & Action Plan Generator using the target SDK.
import Groq from 'groq-sdk';
const groq = new Groq({ apiKey: process.env.GROQ_API_KEY });
async function runPrompt(variables: Record<string, string>) {
let promptText = `Help me decompose a large personal or professional goal into a realistic roadmap.
Goal Statement: {{goal}}
Target Timeframe: {{timeframe}}
Hours Available per Week: {{weekly_hours}}
Output:
- Monthly Milestones
- Weekly Action Items for Month 1
- Potential Obstacles & Mitigation Strategies`;
Object.entries(variables).forEach(([key, val]) => {
promptText = promptText.replace(new RegExp(`{{\\s*${key}\\s*}}`, 'g'), val);
});
const completion = await groq.chat.completions.create({
messages: [
{ role: 'system', content: `You are a goal execution coach focusing on incremental progress and practical strategies.` },
{ role: 'user', content: promptText }
],
model: 'llama-3.3-70b-versatile',
temperature: 0.7,
});
return completion.choices[0]?.message?.content;
}