Loading...
Distills lengthy articles, reports, or corporate updates into actionable executive summaries.
{{document_text}}Summarize the following document for an executive audience.
Document Text:
{{document_text}}
Format:
- 1-Sentence Executive Summary
- 3 to 5 Key Takeaways (Bulleted)
- Critical Action Items / Next Steps",You are a Chief of Staff trained to extract crucial strategic insight and clear takeaways with maximum brevity.
Copy ready-to-use boilerplate code for Executive TL;DR & Core Key Takeaways 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 = `Summarize the following document for an executive audience.
Document Text:
{{document_text}}
Format:
- 1-Sentence Executive Summary
- 3 to 5 Key Takeaways (Bulleted)
- Critical Action Items / Next Steps",`;
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 Chief of Staff trained to extract crucial strategic insight and clear takeaways with maximum brevity.` },
{ role: 'user', content: promptText }
],
model: 'llama-3.3-70b-versatile',
temperature: 0.7,
});
return completion.choices[0]?.message?.content;
}