Get Started: Running AI Task Builder Batches via Prolific’s API
What you’ll accomplish
- Upload raw datapoints (e.g., text, image URLs) into an AI Task Builder Dataset
- Create an AI Task Builder Batch and attach Instructions
- Convert your dataset into tasks and wait until the batch is READY
- Create and publish a Prolific study that references the batch
- Pull annotated responses from the batch
For detailed reference documentation, see:
Prerequisites
- Your workspace_id
- Your API token (
Authorization: Token ...) - Decide how many tasks per participant you want to show (via
tasks_per_group) - Decide your study settings (reward, sample size, timing, targeting)
Step-by-step guide
Create a Dataset
Create a container that will hold the datapoints participants will annotate.
Response will include id (your dataset_id) and status (one of UNINITIALISED|PROCESSING|READY|ERROR).
Request An Upload URL For Your Data
Upload one or more files (CSV format) that contain the datapoints.
The response body will be structured as follows
Upload Your Data (files → dataset)
Upload the file containing your datapoints.
Poll status until the dataset is processed:
For advanced dataset options including metadata columns and custom task grouping, see Working with Datasets.
Create a Batch
Batches bind datasets + instructions into something you can attach to a Prolific study.
You can also include task details here with introductions and steps.
task_introduction and task_steps fields support basic HTML.
(Note: dataset_id is optional at creation time and can be added later via update, but must be provided before setup.)
Save the returned id as BATCH_ID.
Update a Batch (optional)
You can update a batch’s name, task details, or associated dataset after creation.
All fields are optional - include only what you want to update.
Duplicate a Batch (optional)
You can create a copy of an existing batch, either with or without its dataset.
Duplicate with the same dataset (dataset is shared, not copied)
Duplicate without a dataset (requires new upload)
If name is omitted, the duplicate will be named [Original Batch Name] (Copy).
Note: When duplicating with a dataset, both batches will reference the same dataset - it is not duplicated.
Add Instructions to the Batch
You can create multiple instructions. Types supported:
multiple_choice— selection from options (useanswer_limitfor single or multi-select)free_text— open-ended text inputmultiple_choice_with_free_text— selection with associated free text fieldsfile_upload— file submission
For full schema details, see Instructions.
(You can later PUT the same endpoint to update instructions - please include the complete payload as it will replace all instructions on the batch, or GET it to read them back.)
Set Up the Batch (build tasks, set tasks per participant)
Configure how datapoints become tasks and how many tasks each participant gets.
Note: The dataset must be in READY status before running the setup endpoint.
Now poll batch status until it’s READY:
Create a Prolific Study that References the Batch
When the batch is READY, create a standard study but include these two fields:
"data_collection_method": "AI_TASK_BUILDER_BATCH""data_collection_id": "BATCH_ID"
Retrieve Annotated Responses
There are two ways to retrieve responses once participants have completed their tasks.
Option 1: JSON responses
Get individual responses as JSON, useful for processing programmatically or streaming results as they come in.
Option 2: CSV report
Download a CSV report containing your original data with response columns appended.
This returns a presigned URL to download the CSV:
Use the url to download your annotated dataset.
Operational Notes & Tips
- Statuses: Datasets and Batches both progress through
UNINITIALISED → PROCESSING → READY(orERROR). Don’t attach a batch to a study until it’sREADY. - Instructions: You can mix multiple instruction types within the same batch
(e.g., two
multiple_choiceplus onefree_text). tasks_per_group: Controls how many tasks a single participant receives in one “sitting” (this is what will be classed as a single Submission on Prolific). Increase to reduce study overhead and per-task price dispersion; decrease if tasks are long.- Targeting & Reward: As with any Prolific study, all participants share the same targeting and reward.
- Once a batch has been set up (step 6) you can no longer edit its instructions.
- Dataset Requirements: Datasets do not need to be in READY status when creating, updating, or duplicating batches. However, the dataset must be in READY status before running the setup endpoint.
- Batch Duplication: When duplicating a batch with a dataset, the dataset is shared between both batches, not duplicated.
If you need separate datasets, use
upload_new_dataset: true.