v1

latestOpenAPI 3.1.02026-07-26359254.7 MB
AI SDR Knowledge Bases

Update a reply handler

<Info> **Beta.** This endpoint is in beta. Behavior, parameters, and response shapes may change without notice. </Info>

<small>Requires the ai-sdr:write scope (or a broader one that includes it).</small>

Partial update — send only the fields you want to change. At least one field must be present. Media is not patched here; use the /media sub-resource.

Requires the AI SDR feature on the caller's team.

patch/v3/ai-sdr/knowledge-bases/{knowledge_base_id}/reply-handlers/{reply_handler_id}

Path parameters

knowledge_base_idinteger required
reply_handler_idstring uuid required

Request body

typeOfQuestionstring
instructionsstring
sampleAnswerstring
toneOfVoice'confident' | 'persuasive' | 'witty' | 'straightforward' | 'empathetic'

Tone applied to generated replies and reengagement messages.

responseLength'superShort' | 'short' | 'medium' | 'long'

Target length of generated replies and reengagement messages.

linksstring[]
deliveryMode'draft' | 'auto' | 'stopAndNotify'

How generated replies for this handler are delivered

additionalNotificationEmailstring email nullable

Extra recipient notified when a reply is handled with stopAndNotify. Ignored for other delivery modes.

Example request

{
  "instructions": "Updated playbook — also link the v2 pricing page.",
  "links": [
    "https://example.com/pricing-v2"
  ]
}

Response

Reply handler updated successfully

idstring uuid

Unique identifier for the reply handler

typeOfQuestionstring

Short label describing the type of incoming reply this handler covers

instructionsstring

Instructions for how to handle replies of this type

sampleAnswerstring

Optional sample answer used as a few-shot example

toneOfVoice'confident' | 'persuasive' | 'witty' | 'straightforward' | 'empathetic'

Tone applied to generated replies

responseLength'superShort' | 'short' | 'medium' | 'long'

Target length for generated replies

linksstring[]

Reference URLs the AI SDR can quote when generating a reply

deliveryMode'draft' | 'auto' | 'stopAndNotify'

How generated replies for this handler are delivered

additionalNotificationEmailstring nullable

Extra recipient notified when a reply is handled with stopAndNotify. Ignored for other delivery modes.

createdAtstring date-time

Timestamp when the reply handler was created

Example response

{
  "id": "9c1f8a7e-0b3a-4d11-9b9c-2c4f8a7e0b3a",
  "typeOfQuestion": "Pricing inquiry",
  "instructions": "Quote our published tiered pricing; offer a discovery call for enterprise.",
  "sampleAnswer": "Thanks for asking! Our tiered pricing starts at $X...",
  "toneOfVoice": "confident",
  "responseLength": "medium",
  "links": [
    "https://example.com/pricing"
  ],
  "media": [
    {
      "id": 12345,
      "fileName": "pricing-tiers.png",
      "size": 248
    }
  ],
  "deliveryMode": "draft",
  "additionalNotificationEmail": null,
  "createdAt": "2026-05-10T14:32:11Z"
}