# Deploying Chat Data Prep

## Overview

This documentation provides a step-by-step guide on deploying Chat Data Prep within the Akkio platform. The purpose of this feature is to automate data cleaning and transformation processes, significantly reducing the time and effort required to prepare data for analysis and reporting. The deployment can be set up as a Web App or API, allowing for efficient handling of new datasets with the same schema.

## Initial Setup

Load the initial dataset into a new project within Akkio. Apply the necessary data cleaning and transformation steps using Chat Data Prep. Refer to the [Chat Data Prep page](https://docs.akkio.com/akkio-docs/prepare-your-data/prepare/chat-data-prep) for more information.

<figure><img src="/files/N9xtGDcghkdDz1NTVNMG" alt=""><figcaption><p>Any prompts from Chat Data Prep or usage of the Clean function will be deployed.</p></figcaption></figure>

## Deployment

Once the data has been prepared and cleaned, you can deploy the transformations to automate the process for future datasets.<br>

{% hint style="info" %}
Note: This will lock out the Predict tab. If you wish to [Deploy a model](https://docs.akkio.com/akkio-docs/deploying-a-model/deploy), you must do so in a separate project.
{% endhint %}

Navigate to the "Deployments" tab within your project. This tab will now be enabled.

<figure><img src="/files/m3k0jEbIZo5YJVjSzns3" alt=""><figcaption></figcaption></figure>

Several endpoint options will be available. These endpoints include Web App, API, and several databases to deploy your dataset transformations to.

* If you are unsure on an endpoint, and are looking to upload files for automatic Data Preparation, select Web App.

### Databases

Connect your account if you haven’t. Connection instructions can be found under each database’s [Integration page](https://docs.akkio.com/akkio-docs/integrations/connecting-data). Next, select the dataset to apply transformations to.

<figure><img src="/files/oEf5TRKSdg45mSgG8Deq" alt="" width="403"><figcaption><p>Example with Snowflake Deployment</p></figcaption></figure>

### API

An example curl command is provided. On the left hand side, a list of the dataset’s columns will be shown. Column select is only relevant to [Model Deployment](https://docs.akkio.com/akkio-docs/deploying-a-model/deploy) and has no effect on deployed data preparation.

<figure><img src="/files/kPhZdSZG5RWMVw11d1O1" alt="" width="563"><figcaption><p>API Deployment example with project and API keys censored</p></figcaption></figure>

### Web App

Standalone Web App deployment for Chat Data Prep will create a unique url. You may return to this url at any time to upload files for automatic data preparation.

You’ll see that there are several options to tweak your Web App, including:

<figure><img src="/files/dW8jJtsKTfl7Ni1C0OHR" alt="" width="398"><figcaption></figcaption></figure>

* **Title** - User-facing title for your web app.
* **Description** - Optional user-facing description for your web app.
* **Select Fields** - Select which fields to include. This feature is only relevant to [Model Deployment](https://docs.akkio.com/akkio-docs/deploying-a-model/deploy) and has no effect on deployed data preparation.

<figure><img src="/files/cIaFwkxfhhjeUJjx9YHe" alt="" width="395"><figcaption></figcaption></figure>

* **Make Public** - Allow anyone to access this app without requiring authentication—Yes or No.
* **Allow Bulk Upload** - Allow users to make bulk predictions by uploading datasets in CSV format. This must remain enabled to upload files for automatic data preparation.

Select "Deploy" in the top right corner to initiate the deployment.

<figure><img src="/files/PgDMyjTssezkcdeOvl4Y" alt="" width="563"><figcaption></figcaption></figure>

A UI box will appear, noting that the deployment is live. Select, “Got to live app” in the top right corner to open the Web App.

#### Using the Web App

In the Web App, select "Upload Excel, CSV, Parquet, or JSON" to load a new raw data file. Ensure that the new file has the same schema as the original dataset used in the project.

<figure><img src="/files/56ShDQ1T7w9KDpANSpRo" alt="" width="563"><figcaption><p>Deployed Web App page</p></figcaption></figure>

Once the file is processed, you can download the cleaned data as a CSV file. This file can then be uploaded back into Akkio in a new project for further reporting and analysis.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akkio.com/akkio-docs/prepare-your-data/prepare/deploying-chat-data-prep.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
