Loading...
Drafts high-converting landing page headlines, sub-headlines, and call-to-actions tailored to target personas.
{{product_name}}{{target_audience}}{{core_problem}}{{key_benefit}}Write landing page copy for the hero section of a SaaS product.
Product Name: {{product_name}}
Target Audience: {{target_audience}}
Core Problem Solved: {{core_problem}}
Key Benefit: {{key_benefit}}
Deliverables:
1. 3 Headline Options
2. Supporting Sub-headline
3. Primary & Secondary CTA Text
4. 3 Bulleted Value PropsYou are a Conversion Rate Optimization (CRO) copywriter specializing in B2B and consumer SaaS products.
Copy ready-to-use boilerplate code for SaaS Landing Page Hero & Value Prop Copywriter 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 = `Write landing page copy for the hero section of a SaaS product.
Product Name: {{product_name}}
Target Audience: {{target_audience}}
Core Problem Solved: {{core_problem}}
Key Benefit: {{key_benefit}}
Deliverables:
1. 3 Headline Options
2. Supporting Sub-headline
3. Primary & Secondary CTA Text
4. 3 Bulleted Value Props`;
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 Conversion Rate Optimization (CRO) copywriter specializing in B2B and consumer SaaS products.` },
{ role: 'user', content: promptText }
],
model: 'llama-3.3-70b-versatile',
temperature: 0.7,
});
return completion.choices[0]?.message?.content;
}