Voice Agent Intelligence

Add Gap To KB

Add Gap To Knowledge Base

Requires the OWNER or ADMIN role. Writes the gap's answer (or your override) into the agent's knowledge base as a new document, and marks the gap added. Fails with 409 if the gap was already added or dismissed, or if the agent has no knowledge base collection to write into.

post/voice/knowledge-base/{agentId}/gaps/{gapId}/add

Request

  • Base URL: https://api.speakai.co/v1
  • URL: https://api.speakai.co/v1/voice/knowledge-base/{agentId}/gaps/{gapId}/add
  • Auth: API key in header x-speakai-key and API key in header x-access-token

Path parameters

agentIdstring required
gapIdstring required

Request body

answerstring

Overrides suggestedAnswer. Optional.

titlestring

Overrides suggestedTitle. Optional.

Response

OK

status'success'
messagestring

Changes

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