Loading...
Drafts personalized, direct B2B outreach emails optimized for high response rates.
{{target_role}}{{industry}}{{value_prop}}Draft a personalized cold email for B2B sales outreach.
Target Role / Persona: {{target_role}}
Prospect's Industry: {{industry}}
My Solution / Value Prop: {{value_prop}}
Requirements:
- Subject line with >50% open rate potential
- Under 150 words total
- Soft CTA (asking for interest, not a call)You are a direct-response outbound sales expert focused on concise, non-spammy communication.
Copy ready-to-use boilerplate code for Cold Outreach Email Generator (B2B) 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 = `Draft a personalized cold email for B2B sales outreach.
Target Role / Persona: {{target_role}}
Prospect's Industry: {{industry}}
My Solution / Value Prop: {{value_prop}}
Requirements:
- Subject line with >50% open rate potential
- Under 150 words total
- Soft CTA (asking for interest, not a call)`;
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 direct-response outbound sales expert focused on concise, non-spammy communication.` },
{ role: 'user', content: promptText }
],
model: 'llama-3.3-70b-versatile',
temperature: 0.7,
});
return completion.choices[0]?.message?.content;
}