# Process inputs in batches

In most cases, you need to scale your task execution.

It can be done either by using batch processing or using integrations/automations.

Let’s process input in batches.

## 1. Get back to the input tab

Choose the <mark style="background-color:blue;">**"Upload Dataset"**</mark> input option:

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2Fsz2u9CB1yFuyoQpevctx%2FUntitled%2039.png?alt=media&#x26;token=9dfd2343-fa47-4663-8ee3-cdee8f89d29b" alt=""><figcaption><p>Starting batch input processing</p></figcaption></figure>

## 2. Prepare a CSV with the required input data.

Let's generate Google Ads for multiple products at once.

In our case, it’s a list of 5 products from Producthunt:

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2FdqdG8rEOZHscOn1ot87l%2FUntitled%2040.png?alt=media&#x26;token=0e8bf318-a21a-435c-a3ed-e7b0819c11ca" alt=""><figcaption><p>Formatting products data from Producthunt</p></figcaption></figure>

We’ll use the **full description field** as input.

This AI model delivers the best results when the name of the product is mentioned in the description.

## 3. Upload the CSV

Drag-n-drop the file into the upload field:

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2FDsKRayjvTZ6U76AW7VWr%2FUntitled%2041.png?alt=media&#x26;token=5f215cde-4305-4119-a3e1-4fc5887e1cc8" alt=""><figcaption><p>Uploading a set of inputs</p></figcaption></figure>

{% hint style="warning" %}
There is a limit to the number of entries in the dataset to be processed at once.

Currently, it’s **200 maximum**.
{% endhint %}

Click the <mark style="background-color:blue;">**“Upload Dataset”**</mark> button to start matching fields.

## 4. Match data fields

Select the fields from your CSV that match the mandatory input fields of this workflow.

In this case, it’s **Product Description:**

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2FmikCUmXfmRv0S7TePiAP%2FUntitled%2042.png?alt=media&#x26;token=0707de88-5955-4ca9-a344-b70de44d4916" alt=""><figcaption><p>Matching data fields</p></figcaption></figure>

## 5. Launch it

{% hint style="warning" %}
This workflow should be **checked and published** for batch processing.
{% endhint %}

Wait a bit for all the entries to be processed.

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2FC68AyNC1UzHK8qMky6VA%2FUntitled%2043.png?alt=media&#x26;token=7a5cf29c-81c7-47d4-afee-8b58d99e9eb3" alt=""><figcaption><p>Processing in batch</p></figcaption></figure>

{% hint style="info" %}
Usually, it takes almost the same time as a single entry, because of the parallel processing.
{% endhint %}

## 6. Check the results

You get 9 variations for every input entry in this case (3 variations of Google Ads Headlines \* 3 variations of Google Ads Body):

<figure><img src="https://3372553292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwSmFzVcnCrIF1wbU8Chb%2Fuploads%2FXJS2b9Xtxhj2XRj4i2Ey%2FUntitled%2044.png?alt=media&#x26;token=b2270b0d-e63b-40f6-b6f9-081757ff084c" alt=""><figcaption><p>Results of batch processing</p></figcaption></figure>

Find out, how many of them are successful or failed.

After that, you can make changes to your workflow, and input to improve your success rate.

Or just keep it as is if you’re happy.

{% hint style="info" %}
**There is rarely a 100% success rate** when it comes to AI.&#x20;

To find the best combination of the credits spent and the quality of the output.
{% endhint %}

The next way to scale your AI ops - integrate AI workflows with the tools you use every day.
