Create Knowledge Entry

Changed on

Create a knowledge entry the assistant may answer callers from.

Pass resolved_gap_ids to close the gaps this entry answers in the same call.

post/api/v0/inbound_calls/knowledge_entries

Request

  • Base URL
    https://healthharbor.co (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Password
      Token URLtoken
    • or HTTP basic

Request body

questionstring required

The question text that may trigger this answer. Does not require exact matching, semantically similar questions will also match.

answerstring required

The answer content that the AI will use as source material. The AI will convey this information naturally in conversation.

practice_idstring nullable

Practice this entry applies to. Omit it to make the entry available to every practice in your organization.

resolved_gap_idsstring[] nullable

Knowledge gaps this entry answers. Each is marked ANSWERED and linked to the new entry, so the gaps close in the same call that writes the answer.

Example request

{
  "question": "What are your office hours?",
  "answer": "We are open Monday-Friday 9am-5pm EST",
  "practice_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "resolved_gap_ids": [
    "7c9e6679-7425-40de-944b-e07fc1f90ae7"
  ]
}

Response

Successful Response

idstring required

Unique identifier for the knowledge entry

practice_idstring nullable required

Practice this entry applies to, or null if it applies across the organization

questionstring required

The question text that may trigger this answer. Does not require exact matching, semantically similar questions will also match.

answerstring required

The answer content that the AI will use as source material. The AI will convey this information naturally in conversation.

creation_tsstring date-time required

ISO 8601 timestamp of when this entry was created

last_updated_tsstring date-time required

ISO 8601 timestamp of when this entry was last updated

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "practice_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "question": "What are your office hours?",
  "answer": "We are open Monday-Friday 9am-5pm EST",
  "creation_ts": "2024-01-01T00:00:00Z",
  "last_updated_ts": "2024-03-01T12:00:00Z"
}

Changes