> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okchat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Knowledge

> Query Knowledge



## OpenAPI

````yaml api-reference/openapi-spec.json post /api/external/chatbot/{chatbotId}/query-knowledge
openapi: 3.0.3
info:
  title: OKCHAT2.0
  version: 1.0.0
  contact: {}
servers:
  - url: https://v2.okchat.ai
  - url: http://localhost
security: []
tags: []
paths:
  /api/external/chatbot/{chatbotId}/query-knowledge:
    parameters:
      - name: chatbotId
        in: path
        required: true
        schema:
          type: string
          example: c95f17d4-e0bc-4a69-9aaa-9b7b5e6964bd
    post:
      summary: Query Knowledge
      description: Query Knowledge
      operationId: queryKnowledge
      parameters:
        - name: x-api-key
          in: header
          schema:
            type: string
            example: ba1608691d44787a7a6e951024187a82e25e3c3956ebe0b4
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  example: What's okchat ai?
            examples:
              Query Knowledge:
                value:
                  query: What's okchat ai?
      responses:
        '200':
          description: Example
          headers:
            Access-Control-Allow-Credentials:
              schema:
                type: string
                example: 'true'
            Access-Control-Allow-Methods:
              schema:
                type: string
                example: GET,OPTIONS,PATCH,DELETE,POST,PUT
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Connection:
              schema:
                type: string
                example: keep-alive
            Date:
              schema:
                type: string
                example: Thu, 29 May 2025 07:16:44 GMT
            Keep-Alive:
              schema:
                type: string
                example: timeout=5
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            access-control-allow-headers:
              schema:
                type: string
                example: Content-Type, x-api-key
            x-telemetry:
              schema:
                type: string
                example: >-
                  {"metadata":{"chatbot_id":"c95f17d4-e0bc-4a69-9aaa-9b7b5e6964bd","organization_id":"123042b2-86e2-4184-a86e-95423d728815","query_length":17,"results_count":7,"reranker":"google"},"isEnabled":true}
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        content:
                          type: string
                          example: >-
                            Title: What is OkChat.ai?

                            Chunk: 1


                            Question: What is OkChat.ai?


                            Answer: OkChat.ai is an AI chatbot platform designed
                            to help businesses improve operational efficiency
                            and productivity. It allows you to create and deploy
                            your own AI chatbot based on Large Language Models
                            (LLMs).
                        similarity:
                          type: number
                          example: 0.718238916187158
                    example:
                      - content: >-
                          Title: What is OkChat.ai?

                          Chunk: 1


                          Question: What is OkChat.ai?


                          Answer: OkChat.ai is an AI chatbot platform designed
                          to help businesses improve operational efficiency and
                          productivity. It allows you to create and deploy your
                          own AI chatbot based on Large Language Models (LLMs).
                        similarity: 0.718238916187158
                      - content: >-
                          Title: Quickstart - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Quickstart


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          ##
                          [​](https://docs.okchat.ai/quickstart\#introduction) 
                          Introduction


                          Welcome to OKCHAT.AI, an advanced platform designed to
                          help you create and manage intelligent chatbots. With
                          a wide range of features, including a robust knowledge
                          base, seamless integrations, and comprehensive
                          settings, OKCHAT.AI is your go-to solution for
                          enhancing customer interactions.


                          ##
                          [​](https://docs.okchat.ai/quickstart\#getting-started) 
                          Getting Started


                          1. **Access Your Dashboard**: Log in to your OKCHAT.AI
                          account and navigate to the dashboard to get an
                          overview of your chatbot’s performance.


                          2. **Create a New Chatbot**: If you haven’t already,
                          start by creating a new chatbot. This can be done by
                          selecting the “Create New” option on your dashboard.



                          ##
                          [​](https://docs.okchat.ai/quickstart\#configuring-the-knowledge-base) 
                          Configuring the Knowledge Base


                          1. **Add Essential Knowledge**:
                             - Navigate to the “Knowledge Base” section.
                             - Upload or input key information that your chatbot should know.
                             - Organize content into categories for easier management.
                          2. **Training Data**:
                             - Use the “Training Data” section to teach your chatbot how to respond to specific queries.
                             - Input sample questions and desired answers to improve accuracy.

                          ##
                          [​](https://docs.okchat.ai/quickstart\#setting-up-integrations) 
                          Setting Up Integrations


                          Summary:

                          This section, titled "Quickstart" from the OKCHAT AI
                          V2 Docs, provides an introduction to the platform and
                          guides users through the initial steps of creating and
                          configuring a chatbot, including accessing the
                          dashboard, creating a new chatbot, and setting up the
                          knowledge base and integrations.
                        similarity: 0.999831
                      - content: >-
                          Title: Introduction - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Introduction


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          #
                          [​](https://docs.okchat.ai/introduction\#welcome-to-okchat-ai-documentation) 
                          Welcome to OKCHAT AI Documentation


                          Welcome to the OKCHAT AI documentation, your
                          comprehensive guide to mastering the OKCHAT AI
                          platform. Whether you’re a developer, marketer, or
                          support team member, this documentation is designed to
                          help you unlock the full potential of OKCHAT AI, an
                          advanced chatbot platform tailored to meet your needs.


                          ##
                          [​](https://docs.okchat.ai/introduction\#about-okchat-ai) 
                          About OKCHAT AI


                          OKCHAT AI is a powerful platform that enables you to
                          create, customize, and deploy intelligent chatbots
                          across various channels. With features like seamless
                          social media integration, a wide range of plugins, and
                          robust API access, OKCHAT AI offers a flexible
                          solution for enhancing customer interactions and
                          automating support processes.


                          ##
                          [​](https://docs.okchat.ai/introduction\#documentation-structure) 
                          Documentation Structure


                          This documentation is organized into key sections to
                          guide you through the journey of using OKCHAT AI:


                          - **Get Started**: Begin here if you’re new to OKCHAT
                          AI. Explore introductions, quickstart guides, and
                          essential tutorials on knowledge bases, social media
                          integration, chatbot widgets, and AI voice agents.


                          - **Social Media**: Dive into detailed guides on
                          integrating your chatbot with popular platforms like
                          Facebook Messenger, Instagram, WhatsApp, Kakao, Line,
                          and Naver Talk.


                          - **Plugins**: Discover how to enhance your chatbot’s
                          functionality with plugins for reservations, Discord,
                          and Slack integrations.


                          Summary:

                          This is the introduction section of the OKCHAT AI V2
                          Docs, providing an overview of the documentation
                          structure and the OKCHAT AI platform. It introduces
                          the platform's capabilities and guides users through
                          key sections like 'Get Started', 'Social Media', and
                          'Plugins'.
                        similarity: 1
                      - content: >-
                          Title: Introduction - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Introduction


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          #
                          [​](https://docs.okchat.ai/introduction\#welcome-to-okchat-ai-documentation) 
                          Welcome to OKCHAT AI Documentation


                          Welcome to the OKCHAT AI documentation, your
                          comprehensive guide to mastering the OKCHAT AI
                          platform. Whether you’re a developer, marketer, or
                          support team member, this documentation is designed to
                          help you unlock the full potential of OKCHAT AI, an
                          advanced chatbot platform tailored to meet your needs.


                          ##
                          [​](https://docs.okchat.ai/introduction\#about-okchat-ai) 
                          About OKCHAT AI


                          OKCHAT AI is a powerful platform that enables you to
                          create, customize, and deploy intelligent chatbots
                          across various channels. With features like seamless
                          social media integration, a wide range of plugins, and
                          robust API access, OKCHAT AI offers a flexible
                          solution for enhancing customer interactions and
                          automating support processes.


                          ##
                          [​](https://docs.okchat.ai/introduction\#documentation-structure) 
                          Documentation Structure


                          This documentation is organized into key sections to
                          guide you through the journey of using OKCHAT AI:


                          - **Get Started**: Begin here if you’re new to OKCHAT
                          AI. Explore introductions, quickstart guides, and
                          essential tutorials on knowledge bases, social media
                          integration, chatbot widgets, and AI voice agents.


                          - **Social Media**: Dive into detailed guides on
                          integrating your chatbot with popular platforms like
                          Facebook Messenger, Instagram, WhatsApp, Kakao, Line,
                          and Naver Talk.


                          - **Plugins**: Discover how to enhance your chatbot’s
                          functionality with plugins for reservations, Discord,
                          and Slack integrations.


                          Summary:

                          This is the introduction section of the OKCHAT AI V2
                          Docs, providing an overview of the documentation
                          structure and the OKCHAT AI platform. It introduces
                          the platform's capabilities and guides users through
                          key sections like 'Get Started', 'Social Media', and
                          'Plugins'.
                        similarity: 1
                      - content: >-
                          Title: What can OkChat.ai do?

                          Chunk: 1


                          Question: What can OkChat.ai do?


                          Answer: OkChat.ai can automate tasks, provide customer
                          support, streamline processes, and assist employees
                          with information retrieval. It understands natural
                          language and can take actions within integrated
                          systems.
                        similarity: 0.641080556012444
                      - content: >-
                          Title: Who is OkChat.ai for?

                          Chunk: 1


                          Question: Who is OkChat.ai for?


                          Answer: OkChat.ai primarily targets small and
                          medium-sized enterprises (SMEs) and the public sector
                          that are interested in utilizing AI.
                        similarity: 0.663983384368328
                      - content: >-
                          Title: What are the key features of OkChat.ai?

                          Chunk: 1


                          Question: What are the key features of OkChat.ai?


                          Answer: Key features include the ability to train
                          chatbots with text input, file uploads, and web
                          crawling. It also offers multilingual customer
                          support.
                        similarity: 0.642547290249264
                  similarity_threshold_setting:
                    type: number
                    example: 0.45
                  status:
                    type: string
                    example: OK
                  total_docs:
                    type: number
                    example: 7
              examples:
                Example:
                  value:
                    results:
                      - content: >-
                          Title: What is OkChat.ai?

                          Chunk: 1


                          Question: What is OkChat.ai?


                          Answer: OkChat.ai is an AI chatbot platform designed
                          to help businesses improve operational efficiency and
                          productivity. It allows you to create and deploy your
                          own AI chatbot based on Large Language Models (LLMs).
                        similarity: 0.718238916187158
                      - content: >-
                          Title: Quickstart - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Quickstart


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          ##
                          [​](https://docs.okchat.ai/quickstart\#introduction) 
                          Introduction


                          Welcome to OKCHAT.AI, an advanced platform designed to
                          help you create and manage intelligent chatbots. With
                          a wide range of features, including a robust knowledge
                          base, seamless integrations, and comprehensive
                          settings, OKCHAT.AI is your go-to solution for
                          enhancing customer interactions.


                          ##
                          [​](https://docs.okchat.ai/quickstart\#getting-started) 
                          Getting Started


                          1. **Access Your Dashboard**: Log in to your OKCHAT.AI
                          account and navigate to the dashboard to get an
                          overview of your chatbot’s performance.


                          2. **Create a New Chatbot**: If you haven’t already,
                          start by creating a new chatbot. This can be done by
                          selecting the “Create New” option on your dashboard.



                          ##
                          [​](https://docs.okchat.ai/quickstart\#configuring-the-knowledge-base) 
                          Configuring the Knowledge Base


                          1. **Add Essential Knowledge**:
                             - Navigate to the “Knowledge Base” section.
                             - Upload or input key information that your chatbot should know.
                             - Organize content into categories for easier management.
                          2. **Training Data**:
                             - Use the “Training Data” section to teach your chatbot how to respond to specific queries.
                             - Input sample questions and desired answers to improve accuracy.

                          ##
                          [​](https://docs.okchat.ai/quickstart\#setting-up-integrations) 
                          Setting Up Integrations


                          Summary:

                          This section, titled "Quickstart" from the OKCHAT AI
                          V2 Docs, provides an introduction to the platform and
                          guides users through the initial steps of creating and
                          configuring a chatbot, including accessing the
                          dashboard, creating a new chatbot, and setting up the
                          knowledge base and integrations.
                        similarity: 0.999831
                      - content: >-
                          Title: Introduction - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Introduction


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          #
                          [​](https://docs.okchat.ai/introduction\#welcome-to-okchat-ai-documentation) 
                          Welcome to OKCHAT AI Documentation


                          Welcome to the OKCHAT AI documentation, your
                          comprehensive guide to mastering the OKCHAT AI
                          platform. Whether you’re a developer, marketer, or
                          support team member, this documentation is designed to
                          help you unlock the full potential of OKCHAT AI, an
                          advanced chatbot platform tailored to meet your needs.


                          ##
                          [​](https://docs.okchat.ai/introduction\#about-okchat-ai) 
                          About OKCHAT AI


                          OKCHAT AI is a powerful platform that enables you to
                          create, customize, and deploy intelligent chatbots
                          across various channels. With features like seamless
                          social media integration, a wide range of plugins, and
                          robust API access, OKCHAT AI offers a flexible
                          solution for enhancing customer interactions and
                          automating support processes.


                          ##
                          [​](https://docs.okchat.ai/introduction\#documentation-structure) 
                          Documentation Structure


                          This documentation is organized into key sections to
                          guide you through the journey of using OKCHAT AI:


                          - **Get Started**: Begin here if you’re new to OKCHAT
                          AI. Explore introductions, quickstart guides, and
                          essential tutorials on knowledge bases, social media
                          integration, chatbot widgets, and AI voice agents.


                          - **Social Media**: Dive into detailed guides on
                          integrating your chatbot with popular platforms like
                          Facebook Messenger, Instagram, WhatsApp, Kakao, Line,
                          and Naver Talk.


                          - **Plugins**: Discover how to enhance your chatbot’s
                          functionality with plugins for reservations, Discord,
                          and Slack integrations.


                          Summary:

                          This is the introduction section of the OKCHAT AI V2
                          Docs, providing an overview of the documentation
                          structure and the OKCHAT AI platform. It introduces
                          the platform's capabilities and guides users through
                          key sections like 'Get Started', 'Social Media', and
                          'Plugins'.
                        similarity: 1
                      - content: >-
                          Title: Introduction - OKCHAT AI V2 Docs

                          Chunk: 1


                          Content:

                          [OKCHAT AI V2 Docs home page![light
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/black-bg.svg)![dark
                          logo](https://mintlify.s3.us-west-1.amazonaws.com/dasomx/images/logo/primary.svg)](https://docs.okchat.ai/)


                          Search...


                          Ctrl K


                          Search...


                          Navigation


                          Get Started


                          Introduction


                          [Documentation](https://docs.okchat.ai/introduction)
                          [API
                          Reference](https://docs.okchat.ai/api-reference/introduction)


                          #
                          [​](https://docs.okchat.ai/introduction\#welcome-to-okchat-ai-documentation) 
                          Welcome to OKCHAT AI Documentation


                          Welcome to the OKCHAT AI documentation, your
                          comprehensive guide to mastering the OKCHAT AI
                          platform. Whether you’re a developer, marketer, or
                          support team member, this documentation is designed to
                          help you unlock the full potential of OKCHAT AI, an
                          advanced chatbot platform tailored to meet your needs.


                          ##
                          [​](https://docs.okchat.ai/introduction\#about-okchat-ai) 
                          About OKCHAT AI


                          OKCHAT AI is a powerful platform that enables you to
                          create, customize, and deploy intelligent chatbots
                          across various channels. With features like seamless
                          social media integration, a wide range of plugins, and
                          robust API access, OKCHAT AI offers a flexible
                          solution for enhancing customer interactions and
                          automating support processes.


                          ##
                          [​](https://docs.okchat.ai/introduction\#documentation-structure) 
                          Documentation Structure


                          This documentation is organized into key sections to
                          guide you through the journey of using OKCHAT AI:


                          - **Get Started**: Begin here if you’re new to OKCHAT
                          AI. Explore introductions, quickstart guides, and
                          essential tutorials on knowledge bases, social media
                          integration, chatbot widgets, and AI voice agents.


                          - **Social Media**: Dive into detailed guides on
                          integrating your chatbot with popular platforms like
                          Facebook Messenger, Instagram, WhatsApp, Kakao, Line,
                          and Naver Talk.


                          - **Plugins**: Discover how to enhance your chatbot’s
                          functionality with plugins for reservations, Discord,
                          and Slack integrations.


                          Summary:

                          This is the introduction section of the OKCHAT AI V2
                          Docs, providing an overview of the documentation
                          structure and the OKCHAT AI platform. It introduces
                          the platform's capabilities and guides users through
                          key sections like 'Get Started', 'Social Media', and
                          'Plugins'.
                        similarity: 1
                      - content: >-
                          Title: What can OkChat.ai do?

                          Chunk: 1


                          Question: What can OkChat.ai do?


                          Answer: OkChat.ai can automate tasks, provide customer
                          support, streamline processes, and assist employees
                          with information retrieval. It understands natural
                          language and can take actions within integrated
                          systems.
                        similarity: 0.641080556012444
                      - content: >-
                          Title: Who is OkChat.ai for?

                          Chunk: 1


                          Question: Who is OkChat.ai for?


                          Answer: OkChat.ai primarily targets small and
                          medium-sized enterprises (SMEs) and the public sector
                          that are interested in utilizing AI.
                        similarity: 0.663983384368328
                      - content: >-
                          Title: What are the key features of OkChat.ai?

                          Chunk: 1


                          Question: What are the key features of OkChat.ai?


                          Answer: Key features include the ability to train
                          chatbots with text input, file uploads, and web
                          crawling. It also offers multilingual customer
                          support.
                        similarity: 0.642547290249264
                    similarity_threshold_setting: 0.45
                    status: OK
                    total_docs: 7

````