Voice Agent Intelligence

Analyze Instruction Gaps

Analyze Instruction Gaps

Requires the OWNER or ADMIN role. Advisory only -- compares the agent's current instructions against anchors/original intent/conversation summaries you supply and suggests up to 3 patches. Nothing is written; pass a suggestion's suggestedPatch to Apply Instruction Gap to actually apply it.

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

Request

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

Path parameters

agentIdstring required

Request body

anchorsstring[]

Specific requirements the instructions must cover. Defaults to empty.

originalPromptstring

The original generation prompt, for context.

conversationSummariesstring[]

Recent call summaries, to ground suggestions in what actually came up. Defaults to empty.

Response

OK

status'success'

Changes

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