For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Q&A documents

Adds question-and-answer pairs to an AI agent's knowledge. Pairs that already exist with the same question and answer, and items missing a question or answer, are skipped. New pairs are processed for the AI agent to use.

post
Authorizations
api_keystringRequired

Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.

Body
ai_agent_idstring · uuidRequired
Responses
200

Nothing new to add; every pair already exists.

application/json
successbooleanOptional
messagestringOptionalExample: No new QnA to add
post/api/documents
POST /api/documents HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "ai_agent_id": "4d3c2b1a-0f9e-4d8c-b7a6-5f4e3d2c1b0a",
  "qna": [
    {
      "question": "Jam berapa toko buka?",
      "answer": "Toko buka setiap hari pukul 09.00 sampai 21.00 WIB."
    },
    {
      "question": "Apakah bisa COD?",
      "answer": "Bisa, COD tersedia untuk wilayah Jabodetabek."
    }
  ]
}
{
  "success": true,
  "message": "No new QnA to add",
  "data": {
    "ids": [
      {}
    ]
  }
}

Last updated