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

# Connect Unstructured Repositories or Datasets

WisdomAI allows you to connect your domain to an unstructured repository or dataset from an **Amazon S3 bucket**, thereby enhancing your chatbot responses and ensuring the AI understands the underlying structure of your information.

## Connect an Amazon S3 dataset

Follow the steps below to connect your Amazon S3 bucket as a data source.

1. Access your domain and, in the **Overview** tab, click **Add Data Source**.
2. In the modal that opens, select **Connect another source** from the **Data Source** selector.
3. Click **Add Data Source** to continue.

   <Frame>
     <img src="https://mintcdn.com/wisdomai/FPeFp9c8fz1r_sxU/dark-img/add-data-source.png?fit=max&auto=format&n=FPeFp9c8fz1r_sxU&q=85&s=68ecf59775843a021e69db7cc732185a" alt="Domain Add Data Source" lightAlt="Domain Add Data Source" darkAlt="Domain Add Data Source" className="hidden dark:block" width="1835" height="892" data-path="dark-img/add-data-source.png" />

     <img src="https://mintcdn.com/wisdomai/YQpH6gDP_noPFETu/images/domain-add-data-source.png?fit=max&auto=format&n=YQpH6gDP_noPFETu&q=85&s=88a4a10c8ce789ae8e51a838a9c27ea0" alt="Domain Add Data Source" lightAlt="Domain Add Data Source" darkAlt="Domain Add Data Source" className="dark:hidden" width="1835" height="892" data-path="images/domain-add-data-source.png" />
   </Frame>
4. Select **Connect to Data store or MCP server**, then provide the following **Connection Details**:
   * **Connection name**
   * **Data source**: Select **Amazon S3**
5. Fill in the **Amazon S3 connection details**:
   * **Bucket Name**: The bucket where your files are stored.
   * **Authentication Method**: Choose one of the following:
     * **Access Key & Secret Key**: Provide the **Region**, **AWS Access Key ID**, and **AWS Secret Access Key**.
     * **Cross-Account Role**: Provide the **AWS Account ID** that has access to the bucket and the **AWS Role Name**.
6. Click **Select Data** to continue.
   <Frame>
     <img src="https://mintcdn.com/wisdomai/YQpH6gDP_noPFETu/images/domain-add-data-source-select-data.png?fit=max&auto=format&n=YQpH6gDP_noPFETu&q=85&s=4e9b07d205c72bcbd3d355300c874f76" alt="Domain Add Data Source Select Data" width="957" height="927" data-path="images/domain-add-data-source-select-data.png" />
   </Frame>
7. In the data selection screen, browse the contents of the S3 bucket and select the files or paths you want to include.
8. Confirm your selection to add the dataset as a data source.

## Next steps

<CardGroup cols={2}>
  <Card title="Manage Domains" icon="sliders" href="/setting-up-wisdom-ai/manage-domains/understand-domains">
    Manage and customize your data domains to refine context and improve query results.
  </Card>

  <Card title="Auditing" icon="clipboard-list" href="/using-wisdom-ai-everyday/auditing">
    Organize insights by tagging chats, navigating history, and sharing vetted answers with your team.
  </Card>

  <Card title="Basic Tutorial: Connect and Test" icon="rocket" href="/setting-up-wisdom-ai/basic-tutorial-connect-and-test">
    Walk through the initial setup to connect a data source and run your first query.
  </Card>

  <Card title="Advanced Data Modeling" icon="sitemap" href="/setting-up-wisdom-ai/advanced-data-modeling-creating-context">
    Define relationships and context in your data to enable more powerful analysis.
  </Card>
</CardGroup>
