Skip to main content
POST
/
api
/
follow-ups
/
{id}
/
generate
Generate AI Draft
curl --request POST \
  --url https://app.replyify.ai/api/follow-ups/{id}/generate \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "ai_generated_message": "<string>",
  "to_emails": [
    {}
  ],
  "next_follow_up_time": "<string>"
}
Uses AI to generate a draft follow-up email based on the conversation history, contact context, client service description, and calendar availability. Consumes 1 AI credit per generation (including regeneration).

Path Parameters

id
string
required
The follow-up ID to generate a draft for

Response

success
boolean
Whether the generation was successful
ai_generated_message
string
The generated email draft
to_emails
array
Recipient email addresses
next_follow_up_time
string
AI-suggested next follow-up time
curl -X POST "https://app.replyify.ai/api/follow-ups/fu_abc123/generate" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "success": true,
  "ai_generated_message": "Hi John, wanted to circle back on our conversation about project management tools...",
  "to_emails": [
    { "name": "John Smith", "email_address": "john@example.com" }
  ],
  "cc_emails": [],
  "next_follow_up_time": "2025-02-05T09:30:00-05:00"
}
Regenerating a draft for the same follow-up consumes another AI credit. The new draft replaces the previous one.