Follow-up settings
Read and change how the avatar follows up with customers who stopped answering.
When a customer stops answering, the avatar can write again after a while to resume the conversation. Follow-up settings control when that happens, how many times, and what the avatar should say at each attempt. They are the same settings you see in Follow Up in the platform.
You can also send follow-ups to your own system instead of WhatsApp: turn on the follow-up webhook and Tolky calls your URL with the message the avatar wrote, so your system delivers it.
Read the settings
ReferenceTechnical details
GET /api/externalAPIs/public/followup/getFollowupConfig
Authentication: host token. No body.
curl "https://api.tolky.to/api/externalAPIs/public/followup/getFollowupConfig" \
-H "Authorization: Bearer $TOLKY_TOKEN"{
"code": 200,
"message": "OK",
"data": {
"followup": true,
"followup_config": {
"triggers": {
"idle": {
"active": true,
"minutes": 15,
"max_notifications": 3,
"hits": [
{
"hit": 0,
"minutes": 15,
"generalInstructions": "Resume the conversation with the customer",
"smartDecisionInstructions": "Never send a repeated message.",
"dialogueInserts": "",
"agentCalling": []
}
]
},
"schedule": { "active": false, "max_notifications": 3, "hits": [] },
"conditionalAgents": { "active": false, "preCheck": [], "decisions": [] }
},
"webhookData": {
"active": false,
"url": null,
"method": "POST",
"headers": {},
"includeReasoningResponse": true,
"includeMessage": true,
"includeConversationData": true,
"timeout": 30000,
"retries": 1
}
}
}
}| Field | Description |
|---|---|
followup | true when follow-up is on for the account. |
followup_config.triggers.idle | Follow-up after the customer goes quiet: active, minutes (wait before each attempt), max_notifications (maximum attempts) and hits (one entry per attempt, with its own minutes and instructions). |
followup_config.triggers.schedule | Scheduled follow-ups. |
followup_config.triggers.conditionalAgents | Conditions checked before deciding to follow up. |
followup_config.webhookData | Follow-up webhook. See below. |
followup_config.smartDecision | Model that decides whether to send each follow-up, when set. |
404 means the account has no follow-up settings yet.
Change the settings
Send only what you want to change. Each trigger you send (idle, schedule, conditionalAgents) replaces the current one as a whole; webhook fields are changed one by one.
ReferenceTechnical details
POST /api/externalAPIs/public/followup/updateFollowupConfig
Authentication: host token.
| Parameter | Type | Required | Description |
|---|---|---|---|
followup_active | boolean | No | Turns follow-up on or off. |
triggers | object | No | Triggers to replace: idle, schedule, conditionalAgents. |
webhookData | object | No | Webhook fields to change. |
smartDecision | object or null | No | { "model": "...", "provider": "..." } for the send decision. The model must exist in List models. null goes back to the default. |
At least one field is required. Limits checked by the server:
| Field | Rule |
|---|---|
idle.minutes, hits[].minutes | 1 to 10080 (7 days). |
idle.max_notifications | 1 to 50. |
webhookData.url | Required when the webhook is active. Must be a valid URL. |
webhookData.method | GET, POST, PUT, PATCH or DELETE. |
webhookData.timeout | 1000 to 300000 milliseconds. |
webhookData.retries | 0 to 5. |
curl -X POST "https://api.tolky.to/api/externalAPIs/public/followup/updateFollowupConfig" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"followup_active": true,
"webhookData": {
"active": true,
"url": "https://example.com/tolky/followup",
"headers": { "X-Api-Key": "your-secret" }
}
}'{
"code": 200,
"message": "OK",
"data": {
"message": "Configuração de followup atualizada com sucesso",
"updated_at": "2026-11-16T14:00:00.000Z",
"config": { "triggers": { }, "webhookData": { } }
}
}config is the full saved configuration, returned when you changed triggers, webhook or send decision. 400 describes the rule that failed; 404 means the account has no settings record.
Reset to defaults
ReferenceTechnical details
POST /api/externalAPIs/public/followup/resetFollowupConfig
Authentication: host token. Restores the default settings: idle follow-up active, 15 minutes, 3 attempts, webhook off.
| Parameter | Type | Required | Description |
|---|---|---|---|
keep_active | boolean | No | Default false. With true, also turns follow-up on. With false, the on/off state is not changed. |
custom_minutes | number | No | Wait in minutes for the idle trigger and its attempts, 1 to 10080. |
custom_max_notifications | number | No | Maximum attempts, 1 to 50. |
reset_webhook | boolean | No | Default true. With false, keeps the current webhook settings. |
curl -X POST "https://api.tolky.to/api/externalAPIs/public/followup/resetFollowupConfig" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "custom_minutes": 30, "reset_webhook": false }'The response carries message, config (the new settings), followup_active, webhook_reset and updated_at.
The follow-up webhook
With the webhook active, the follow-up message is not sent on WhatsApp. Tolky calls your URL instead, and your system delivers the message.
Webhook callTechnical details
Tolky sends the request with the method, headers and timeout you configured, plus Content-Type: application/json and User-Agent: Tolky-FollowupV1/1.0. Use a secret header to check the call comes from Tolky.
| Body field | Description |
|---|---|
message | The follow-up text. Sent when includeMessage is true. |
conversation | Conversation data (id, hostId, avatarId, leadId, userName, wppId, platform, mainTopic, sentiment and more). Sent when includeConversationData is true. |
reasoningResponse | The full avatar response for this follow-up. Sent when includeReasoningResponse is true. |
assistantResponse, tokensControl, tickets, askHumanHelp, jsonArray | Same fields as in Send a message. |
followupData | The follow-up record: id, hit (attempt number), trigger, notifyAt, leadId, wppId and more. |
conversationId, hostId, leadId, sessionId, userId | IDs. |
followupTrigger | idle or the trigger that fired. |
timestamp | When the call was made. |
Any 2xx or 3xx answer counts as delivered. Other answers and timeouts are retried with a growing wait (1, 2, 4 seconds, up to 10 seconds). The number of retries is retries, with a minimum of 1.