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

# Knowledge base connections

> Learn how to connect databases, documents, and cloud warehouses to IdeaBoxAI knowledge bases for AI-powered querying.

A knowledge base connection links IdeaBoxAI to your data. Whether that is a live relational database, a cloud data warehouse, or a library of documents, this guide covers all three types with step-by-step configuration.

## Knowledge base types

IdeaBoxAI supports three knowledge base types. Each type is optimised for a different data format and query pattern.

| KB type               | Best for                                                                                       | Supported sources                                                                                       |
| --------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| **Unstructured data** | Documents, PDFs, and text. Optimised for semantic search and AI reasoning.                     | Device upload, Google Drive, Confluence, Markdown and text.                                             |
| **Structured data**   | Relational databases and spreadsheets. Supports SQL queries, cubes, analytics, and dashboards. | MySQL, PostgreSQL, Snowflake, ClickHouse, SQL Server, Actian, Zen, Zoho Book Analytics, CSV, and Excel. |

## Set up an unstructured data knowledge base

Use this type for documents, playbooks, runbooks, and any content intended for semantic search.

<Steps>
  <Step title="Navigate to knowledge bases">
    In the IdeaBoxAI sidebar, click **Knowledge Bases**. The dashboard shows all existing knowledge bases with name, status, type, creator, and last modified date.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-dashboard.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=755fcce1d009a364a57ba19eb2e563c5" alt="Knowledge Bases dashboard showing a searchable table of knowledge bases with Name, Status, Type, Created By, and Last Modified columns." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1919" height="965" data-path="images/connectors/kb-dashboard.png" />
  </Step>

  <Step title="Create a new knowledge base">
    Click **+ Create Knowledge Base**. A type selection modal appears. Select **Unstructured Data** and click **Next**. The Name and Description modal appears. Fill in the following fields:

    * **Name** (required): Use a clear naming convention, for example "Sales Playbooks 2026" or "RFP Answer Library".
    * **Description**: Explain what data this knowledge base contains and which personas will use it.
    * **Tags**: Add domain or team tags, for example "sales", "onboarding", "CRE".

    Click **Create**.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-unstructured-metadata.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=c7aa0c7640af89fe874bb06257dcfbd3" alt="Name and Description modal for creating an Unstructured Knowledge Base with fields for Name, Description, and Tags." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1912" height="958" data-path="images/connectors/kb-unstructured-metadata.png" />
  </Step>

  <Step title="Add data sources">
    The empty Data Source panel appears. Click **+ Add Data** to reveal four options.

    <img src="https://mintcdn.com/ideabodxai/0pAPZ_aPFgZJqHZJ/images/connectors/kb-add-data-options.png?fit=max&auto=format&n=0pAPZ_aPFgZJqHZJ&q=85&s=52aebf2649fd21889b026dd07e31eea6" alt="Add Data dropdown showing four options: Upload From Device, Add Markdown/Text, Upload From Google Drive, and Upload From Confluence." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1918" height="983" data-path="images/connectors/kb-add-data-options.png" />

    * **Upload From Device**: Drop files or browse to select them. Supports PDF, PNG, JPG, DOCX, TXT, MP3, WAV, OGG, and MP4. Batch upload is supported.
    * **Add Markdown/Text**: Paste or type content directly into the editor. Useful for SOPs, playbooks, or knowledge articles without a file.
    * **Upload From Google Drive**: Authenticate with your Google account, browse your Drive folders, and select files or folders to import.
    * **Upload From Confluence**: Authenticate with your Confluence workspace, browse spaces and pages, and select content to import.

    The following screenshot shows the Upload From Device modal with its drag-and-drop area.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-upload-from-device.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=901c79231ece43c5210ac5389ae32331" alt="Upload From Device modal with a drag-and-drop area showing supported file formats: PDF, PNG, JPG, DOCX, TXT, MP3, WAV, OGG, and MP4." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1914" height="956" data-path="images/connectors/kb-upload-from-device.png" />
  </Step>

  <Step title="Monitor processing status">
    After upload, each file appears in the data source table with columns for file name, status, file type, and size. The status transitions from **Processing** to **Processed**.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-file-processing.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=422b9f9705c0845862ec2c0f475ef583" alt="Data source table showing an uploaded PDF file with Processing status, file type, and size columns." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1912" height="957" data-path="images/connectors/kb-file-processing.png" />

    Wait for all files to show **Processed** before connecting this knowledge base to an agent or automation. If a file shows a failure status, remove it and re-upload.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-dashboard-processed.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=3a178f31d15088e13413ba3f4f89046c" alt="Knowledge Bases dashboard showing a knowledge base with Processed status, confirming the data is ready." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1917" height="960" data-path="images/connectors/kb-dashboard-processed.png" />
  </Step>
</Steps>

<Tip>
  Ensure documents are machine-readable text PDFs (not scanned images) for best processing results. Re-index data after any bulk upload.
</Tip>

## Set up a structured data knowledge base

Use this type for relational databases, spreadsheets, or any structured data source.

<Steps>
  <Step title="Create a structured knowledge base">
    Click **+ Create Knowledge Base**. Select **Structured Data**. Enter a name, description, and tags in the Name and Description modal, then click **Create**.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-structured-metadata.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=ecb1a893153cdae74cef27020d97d768" alt="Name and Description modal for creating a Structured Knowledge Base with fields for Name, Description, and Tags." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1916" height="957" data-path="images/connectors/kb-structured-metadata.png" />
  </Step>

  <Step title="Select your data source">
    The Connect Your External Knowledge Base page appears. Choose from two categories:

    **Spreadsheet**: CSV, Excel, or Google Sheets *(coming soon)*.

    **Database Connection**: MySQL, Zen, ClickHouse, SQL Server, PostgreSQL, Actian, Zoho Book Analytics, or Snowflake.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-connect-external-source.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=e12bfb198c084b997714644b862760d5" alt="Connect Your External Knowledge Base page showing spreadsheet options (CSV, Excel, Google Sheets) and database connection options (MySQL, Zen, ClickHouse, SQL Server, PostgreSQL, Actian, Zoho Book Analytics, Snowflake)." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1917" height="955" data-path="images/connectors/kb-connect-external-source.png" />
  </Step>

  <Step title="Connect your database">
    If you selected a database connection, the Enter Database Credentials form appears. Fill in the following fields:

    * **Host** (required): Your database server address or IP.
    * **Port** (required): Database port (PostgreSQL: 5432, MySQL: 3306, Snowflake: 443).
    * **Username** (required): A database user with read access.
    * **Password** (required): The database password.

    Click **Test** to verify the connection.

    <img src="https://mintcdn.com/ideabodxai/cNlvJ38WQc9bYQcY/images/connectors/kb-database-credentials.png?fit=max&auto=format&n=cNlvJ38WQc9bYQcY&q=85&s=9d905f5931dec01fb2f527782212913e" alt="Enter Database Credentials form for MySQL showing required fields for Host, Port, Username, and Password with a Test button." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1917" height="955" data-path="images/connectors/kb-database-credentials.png" />

    If you selected CSV, the Upload CSV Files page appears. Click **+ Upload Files** to select CSV files from your device. Wait for all files to show **Processed**.

    <img src="https://mintcdn.com/ideabodxai/fMgB-ex3v7G5BWc4/images/connectors/kb-csv-processed.png?fit=max&auto=format&n=fMgB-ex3v7G5BWc4&q=85&s=db833fd626609b4a6a77851004a09786" alt="Upload CSV Files page showing a processed CSV file with file name, status, type, and size columns." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1904" height="986" data-path="images/connectors/kb-csv-processed.png" />
  </Step>

  <Step title="Explore the datasets view">
    After a successful connection, IdeaBoxAI imports your database schema. The Datasets view shows:

    * **Left sidebar**: All database tables (Data Sets).
    * **Centre panel**: Table relationships, joins, and column details.
    * **Options**: Enhance with AI, Add Semantics, and Define Relationships.

    Browse the tables and confirm the schema looks correct. Use **Define Relationships** to specify table joins.
  </Step>

  <Step title="Create cubes (analytical models)">
    Cubes sit on top of your raw tables and define metrics (measures) and groupings (dimensions) for AI queries. Navigate to the **Cubes** tab and click **+ Add Cube** to open the Add New Cube modal.

    **Option A, AI Generate** (recommended for most cases):

    Enter a cube name, cube description, natural language query describing the analytics you want, and business context. Click **Generate**. The AI writes the SQL, measures, and dimensions.

    <img src="https://mintcdn.com/ideabodxai/0pAPZ_aPFgZJqHZJ/images/connectors/kb-add-cube-ai.png?fit=max&auto=format&n=0pAPZ_aPFgZJqHZJ&q=85&s=aa630f5d2276068f23639291ff183b16" alt="Add New Cube modal with AI Generate selected, showing fields for Cube Name, Cube Description, Natural Language Query, and Business Context." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1918" height="983" data-path="images/connectors/kb-add-cube-ai.png" />

    **Option B, Manual Query** (for advanced users):

    Enter a cube name, write custom SQL in the SQL Query editor, then define measures and dimensions manually using **+ Add Measure** and **+ Add Dimension**.

    <img src="https://mintcdn.com/ideabodxai/0pAPZ_aPFgZJqHZJ/images/connectors/kb-add-cube-manual.png?fit=max&auto=format&n=0pAPZ_aPFgZJqHZJ&q=85&s=5f5154c8a2e69ff3ecbd1cea78a695a4" alt="Add New Cube modal with Manual Query selected, showing a SQL Query editor and sections for adding Measures and Dimensions." className="rounded-xl border border-gray-200 shadow-md hover:shadow-2xl transition-all duration-300" width="1918" height="983" data-path="images/connectors/kb-add-cube-manual.png" />

    Click **Save Cube**.
  </Step>

  <Step title="Execute and validate queries">
    In the cube configuration panel, select measures, dimensions, and filters, then click **Run Query**. Results appear in the Results tab. Also check the **Generated SQL** tab to inspect the query and the **REST API** tab for programmatic access. Validate results against your source data.
  </Step>

  <Step title="Connect to an agent or automation">
    Navigate to **Agents**, select your agent, open the **Configuration** tab, select this knowledge base from the **Knowledge Base** dropdown, and click **Save**. The agent can now query your structured data using natural language.
  </Step>
</Steps>

<Tip>
  Always test the generated SQL in the cube query panel before connecting the knowledge base to a live agent. Start with simple cubes and iterate.
</Tip>

## Next steps

<CardGroup cols={2}>
  <Card title="Connector directory" icon="grid-2" href="/connectors/connector-directory">
    Browse all available connectors by category.
  </Card>

  <Card title="Cubes" icon="cube" href="/knowledge-bases/cubes">
    Build analytical models with measures, dimensions, and queryable APIs.
  </Card>

  <Card title="Troubleshooting" icon="circle-exclamation" href="/connectors/troubleshooting">
    Resolve common connection issues for databases and imports.
  </Card>
</CardGroup>
