🤖
ZyndraAI help center
  • 😀Welcome to ZyndraAI, a part of Talkie AB
    • ZyndraAI Basic
  • 🏁Getting started
    • Building a Chatbot
    • Chatbot Appearance
      • Custom CSS
    • Testing a Chatbot
    • Publishing your bot
      • Installation using HTML
      • Installation on Facebook
    • Deploying a Chatbot
    • Utility Tools
    • Variables
  • ✨AI-studio
    • Overview
    • Knowledge base
    • Prompts
    • Setting up retrain
    • Function call
    • Custom Answers
  • 💬Live chat
    • Overview
    • Creating views
    • Adding labels
    • Saved replies
    • Settings
  • 🏗️Action blocks
    • Overview
    • Trigger
    • Send Message
    • Collect Input
    • Buttons
    • Carousel
    • Calendar
    • Send an Email
    • Condition
    • Image Carousel
    • Human Handover
    • Slider
    • File Upload
    • Delay
    • Form
    • Flow
    • Jump
    • Codeblock
    • Answer AI
    • Set AI
  • 🏆Integrations
    • Overview
    • HTTP request
    • Hubspot
    • Salesforce
    • Slack
      • Live Chat for Slack
      • Notification for Slack
    • Public APIs
  • 💵Payment and plans
    • Purchasing a plan
    • Payment Methods
    • Initial cost, notice period, commitment period
    • Spent conversations
    • What currency do you charge in?
Powered by GitBook
On this page
  • Adding a data source to a knowledge base
  • Get training status of a data source
  1. Integrations

Public APIs

All of ZyndraIAs APIs use a Bearer token based authentictation. Your account token can be found at Settings > Account Settings.

PreviousNotification for SlackNextPurchasing a plan

Last updated 5 months ago

Adding a data source to a knowledge base

POST /api/v1/ai/knowledge-base/<knowledge_base_id>/upload/sources

Using this API, you can add a data source to an existing knowledge base.

Headers

Name
Value

Content-Type

multipart/form-data

Authorization

Bearer <token>

Body

The API accepts files and text as multipart form data for upload. Each form field should be a unique key and contain either a file or text content.

Response

200400Copy

{
  "q1": [
    {
      "id": 330783,
      "type": "text",
      "name": "sample.txt",
      "status": "in-progress",
      "errors": null
    },
    {
      "id": 330784,
      "type": "text",
      "name": "sample2.txt",
      "status": "in-progress",
      "errors": null
    },
    {
      "id": 330785,
      "type": "file",
      "name": "File.pdf",
      "status": "in-progress",
      "errors": null
    }
  ],
  "d2": [
    {
      "id": 330786,
      "type": "file",
      "name": "File2.pdf",
      "status": "in-progress",
      "errors": null
    }
  ],
  "knowledge_base_id": 876,
  "ok": true
}

Get training status of a data source

GET /api/v1/ai/status/sources

Using this API, you can fetch the status of one or more data sources in a knowledge base to know it its training is - in progress / completed / failed.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

source_ids

query params

Comma-separated list of data source IDs to be passed as query params.

Response

200 400

{
    "sources": [
        {
            "id": 330778,
            "name": "sample.txt",
            "status": "in-progress",
            "knowledge_base_id": 876
        }
    ],
    "ok": true
}
🏆