Generate AI Draft
curl --request POST \
--url https://app.replyify.ai/api/follow-ups/{id}/generate \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.replyify.ai/api/follow-ups/{id}/generate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.replyify.ai/api/follow-ups/{id}/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.replyify.ai/api/follow-ups/{id}/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.replyify.ai/api/follow-ups/{id}/generate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.replyify.ai/api/follow-ups/{id}/generate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.replyify.ai/api/follow-ups/{id}/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"ai_generated_message": "<string>",
"to_emails": [
{}
],
"next_follow_up_time": "<string>"
}Follow-ups
Generate AI Draft
Use AI to generate a follow-up email draft
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>'import requests
url = "https://app.replyify.ai/api/follow-ups/{id}/generate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.replyify.ai/api/follow-ups/{id}/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.replyify.ai/api/follow-ups/{id}/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.replyify.ai/api/follow-ups/{id}/generate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.replyify.ai/api/follow-ups/{id}/generate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.replyify.ai/api/follow-ups/{id}/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
string
required
The follow-up ID to generate a draft for
Response
boolean
Whether the generation was successful
string
The generated email draft
array
Recipient email addresses
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"
const response = await fetch(
"https://app.replyify.ai/api/follow-ups/fu_abc123/generate",
{
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
}
);
const { ai_generated_message } = await response.json();
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.
⌘I