Voice Agent Intelligence

Apply Instruction Gap

Apply Instruction Gap

Requires the OWNER or ADMIN role. Inserts suggestedPatch into the agent's instructions (after insertAfterSection if given, otherwise appended) and persists the result.

post/voice/agents/{agentId}/generation/gaps/apply

Request

  • Base URL: https://api.speakai.co/v1
  • URL: https://api.speakai.co/v1/voice/agents/{agentId}/generation/gaps/apply
  • Auth: API key in header x-speakai-key and API key in header x-access-token

Path parameters

agentIdstring required

Request body

suggestedPatchstring required

Required. Typically taken directly from Analyze Instruction Gaps.

insertAfterSectionstring nullable

Insert after this named section heading; omit or null to append at the end.

Response

OK

status'success'

Changes

No recorded changes to this operation across all 2 revisions of this API.