readyDocs Open the appOpen the app

AI reply sorting

With reply sorting on, Ready reads each reply a contact sends and labels it, such as interested, not interested or question. The label is reply_category on the reply in List messages and Get a message. Each sorted reply costs 0.2 × your per-segment rate.

Without your own labels, Ready uses these: interested, not interested, question, callback requested, wrong number, opt-out, contact info, complaint, auto-reply and other. To use your own, list them after a colon in default_prompt, for example Sort each reply into: hot, warm, cold. A reply that fits none of your labels is uncategorized.

The guide and corrections further down teach the reply check automations use when they start or branch on a reply (positive, negative or neither). They don’t change reply_category, and default_prompt doesn’t change that check.

Automations that start or branch on a reply check it whether reply sorting is on or off, so you don’t need to turn it on for them. While it’s off, those checks are free. While it’s on, each one costs the same as a sorted reply.

#Get the reply sorting setting

Whether reply sorting is on, and the instruction it follows.

Returns
data.enabledboolean
true when every reply on the account is sorted.
data.default_promptstring
Your instruction to the sorter for reply_category only, "" when you haven’t set one. Automations read the guide below instead.
Legacy fields (1)
data.apply_allboolean
Kept for older clients. It changes nothing.
Errors
HTTPCodeWhen
500INTENT_SETTING_LOAD_FAILEDWe couldn’t read the setting. Retry.

#Turn reply sorting on or off

Turning it on starts the per-reply charge, for every reply in your inbox and for each reply an automation checks. Sending the same body again changes nothing. Needs the manage_campaigns permission.

Parameters

enabledbooleanRequired
true or false. Left out, the request is refused with a 400 so sorting is not turned off by accident.
default_promptstring
Your instruction to the sorter. Up to 2000 characters; longer text is cut. Left out, the saved one stays. "" or null clears it.
Returns

The setting as saved, the same object as Get the reply sorting setting.

Errors
HTTPCodeWhen
400noneenabled isn’t true or false.
500INTENT_SETTING_NOT_SAVEDNothing changed. Retry.
503INTENT_SETTING_OUTCOME_UNKNOWNWe couldn’t confirm the save. Read the setting before you send it again.

#Get the sorting guide

The description of your business that automations read before they decide if a reply is positive or negative (the Last reply intent branch and the reply intent trigger). It does not change reply_category. Needs the manage_campaigns permission.

Returns
data.guidestring
The guide, "" when none is saved.
Errors
HTTPCodeWhen
500INTENT_TRAINING_LOAD_FAILEDWe couldn’t read the guide. Retry.

#Save the sorting guide

Replaces the guide. Sending it again changes nothing. Needs the manage_campaigns permission.

Parameters

guidestring
Up to 600 characters. "" or left out clears it.
Returns
data.guidestring
The guide as saved.
Errors
HTTPCodeWhen
400invalid_fieldguide is over 600 characters or isn’t text.
500INTENT_GUIDE_SAVE_FAILEDNothing changed. Retry.

#Correct a sorted reply

Tells automations how they should have read one reply. Later replies are sorted for automations with your corrections as examples. reply_category on the reply is not changed. Sending it again for the same reply replaces the first correction. Needs the manage_campaigns permission.

Parameters

message_idintegerRequired
Ready’s numeric id of the reply: message_id in the inbound_reply webhook.
labelenumRequired
positive, negative or other.
Returns
data.sorted_asenum
How the sorter had read it: positive, negative or other.
Errors
HTTPCodeWhen
400invalid_fieldmessage_id isn’t a whole number, or label isn’t one of the three.
404REPLY_NOT_FOUNDNo reply with this id on your account, or the reply has no text.
500INTENT_CORRECTION_FAILEDNothing saved. Retry.