Skip to main content
FIXED · agent One live knowledge base belongs to an agent. Its attached numbers use that base on enabled channels. Only the active revision and eligible, unsuppressed pieces enter live retrieval. NOT OFFERED → do this instead · number Knowledge and its enabled channels belong to the agent. Retired per-number knowledge operations return 410 number_knowledge_removed. Use separate agents when a number needs different knowledge or none. YOU CAN CHANGE · source Use pasted text, PDF, DOCX or plain UTF-8 text, or discover a website and import selected pages. API submissions can request review. SCOPE · agent Review knowledge drafts and publish approved material. Limits per base: sources 50 · kbTokens 100,000 · topics 1,000. Read the compact AI rules Turn a prepared knowledge draft into live answers by reviewing its facts, choosing topics and confirming publication.
Input: Prepared draft ·
Concurrency: Current revisions ·
Finish: Confirmed live topics
The important part
  • A prepared source is not the same as published knowledge.
  • Use the latest base revision and draft edit revision for each save or acceptance.
  • Warnings and flagged topics need explicit human choices.

Find the draft from its job

An import returns HTTP 202. Example response, with illustrative IDs:
Poll GET job using the returned id. Use a bounded delay, for example one second increasing to five seconds, and stop when the user leaves the screen. This is a client choice, not a required server interval. Honour next_retry_at and HTTP retry guidance. Resume later from the same job ID rather than submitting another import. Read the draft. Legacy normalization is projected without being saved, using stable draft-scoped piece IDs. An explicit save or accept persists the repair. Retain the returned data.edit_revision, not an earlier cached value. Show each topic’s facts, title and review reasons. Edit with expected_revision, expected_draft_revision, topic_id and topic; save before accepting.

Choose and publish reviewed facts

POST to accept draft with a new operation key. Use the current base revision, current draft edit revision and the explicit IDs the reviewer selected:
Those values are examples, not defaults to hard-code. If warnings exist, collect acknowledgement and send acknowledge_warnings:true. Individually approved flagged pieces go in approved_flagged_topic_ids; never populate that array automatically. An unticked replacement retains the existing live topic. Acceptance returns another job. Poll until its publication is confirmed, then reread the base and live topics. Lists use items,next_cursor, with limit 1–100. A stale topic cursor requires restarting the list.

Handle a stale review

On stale_revision, reload both the current base and draft. Show the reviewer what changed before submitting again. Do not simply copy a newer revision number into an old approval: the facts or selected replacements may have changed. Keep the idempotency key for an uncertain save. Use a new key only for a genuinely new edit or acceptance decision. idempotency_conflict means the same key was sent with different input; preserve the original operation record.

Confirm what callers can use

After the publication job completes, read the base revision and live topics. Check the selected facts, their channels and any suppression state. Editing a live topic suppresses its old answer during that edit; a source import alone does not replace previously accepted facts.

Check the answer