Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/ai360/llms.txt

Use this file to discover all available pages before exploring further.

The Cold Email endpoint generates a short, persuasive outreach email tailored to any product, campaign, or pitch context you supply. Google’s Gemini 2.5 Flash model acts as a marketing specialist, crafting compelling copy designed to grab attention and drive action.

Request

POST /api/utilities/cold-email
Content-Type: application/json
userPrompt
string
required
The campaign or product context the cold email should be written around. This can include the product name, target audience, key benefits, call-to-action, or any other relevant details. Richer context produces higher-quality output.

Response

A successful request returns HTTP 200 with the following body:
coldEmail
string
The AI-generated cold email as a plain-text (or lightly formatted) string, ready to be copied, edited, or sent.
{
  "coldEmail": "Subject: Boost your team's productivity by 40%\n\nHi [Name],\n\nI wanted to reach out because..."
}

Error Responses

StatusBodyCause
400{ "error": "Missing cold email context." }userPrompt was absent or empty.
500{ "error": "Failed to generate cold email." }Gemini API call failed or an unexpected server error occurred.
The model is prompted with a marketing specialist persona. Providing specific context — such as the product name, target pain points, and desired call-to-action — significantly improves the relevance and quality of the generated email.
Do not omit userPrompt. An empty or missing field returns 400 before the AI model is ever invoked.

Example

Request
curl -X POST https://your-domain.com/api/utilities/cold-email \
  -H "Content-Type: application/json" \
  -d '{
    "userPrompt": "We are launching TaskFlow, a project management SaaS for remote engineering teams. It reduces meeting overhead by auto-generating standups and progress reports. Target audience: CTOs and engineering managers at 50-200 person startups."
  }'
Response
{
  "coldEmail": "Subject: Cut your standups in half — introducing TaskFlow\n\nHi [First Name],\n\nRunning a distributed engineering team means too many meetings and not enough building. TaskFlow changes that.\n\nOur platform auto-generates daily standups and progress reports directly from your existing workflow tools — no manual updates, no context-switching.\n\nTeams using TaskFlow report a 40% reduction in sync meetings in their first month.\n\nWould you be open to a 15-minute demo this week? I'd love to show you how it works.\n\nBest,\n[Your Name]"
}

Build docs developers (and LLMs) love