Batch Jobs
A batch job asks an agent the same kind of question many times: once for each row of a spreadsheet, or once for each file. Use it to classify tickets, enrich a customer list, or pull the same fields out of a hundred invoices. You get the answers back as a table.
Find it in Workspace › Batch jobs.
Starting a batch job
- Click New batch job.
- Under What to run, choose:
- Rows of a spreadsheet: a CSV or Excel file (
.csvor.xlsx). Studio shows its columns and first rows. - Files: PDF, Word, text and other documents. Wait until each shows Ready: Studio reads their text first.
- Rows of a spreadsheet: a CSV or Excel file (
- Choose the Agent or model that answers.
- Write the question:
- for rows, a Prompt with the row's values in double braces, such as "What is the capital of
{{country}}?". The chips under the box insert a column; - for files, one Instruction, such as "Extract the invoice number, date and total." Each file's text is given with it.
- for rows, a Prompt with the row's values in double braces, such as "What is the capital of
- Optionally, list Answer fields, separated by commas, such as
invoice_number, date, total. The agent is then asked to answer with exactly those fields, and each becomes a column of the results. - Click Start.
The job runs in the background: you can leave the page. Answers are written as Studio's servers have room, a few at a time.
Following and finishing a job
Open a job to see how far it has got ("120 of 300 answered"), how many failed, and the tokens used. The table lists each row or file with its answer; Show all opens a long answer and its fields. Tick Only failed to see what went wrong.
- Stop ends the job. Answers already being written finish; the rest are cancelled.
- Retry failed answers the failed rows or files again, for example after you fixed the agent.
- CSV, Excel and JSON Lines download the results: the row's columns (or the file name), the answer, each answer field, the status and any error.
- Delete removes the job and its answers.
An answer fails when the agent couldn't answer, or when it didn't give the answer fields you asked for.
What applies
- Each answer is given in your name, with your permissions, as in a chat: the agent's instructions, knowledge, tools, guardrails and the fallback provider apply.
- Answers count in your usage, your usage limits and the AI usage reports. Batch job questions don't appear in your chats.
- Starting, stopping and deleting a job are recorded in Admin › Trust › Audit log.
- Download files mark cells that would read as formulas in a spreadsheet program, so an answer can't run anything when opened.
Settings (admins)
In Admin › Settings › Models › Batch jobs:
- Batch jobs turns the feature on or off for everyone. It is on by default.
- Answers at a time per server (4 by default) and per job (2 by default) set how much of your models' capacity batch jobs use. Chats aren't held back by them.
- Rows or files per job, at most (1,000 by default, up to 10,000).
The Admin Assistant can list running and recent batch jobs and agents' test runs.
Limits
- Excel's older
.xlsformat isn't read: save the sheet as.xlsxor.csv. Only the first sheet of a workbook is used. - A job takes up to 200 files. Up to 40,000 characters of each file's text go with the instruction.
- An answer may take up to 5 minutes. If a server stops while answering, another server answers again later, up to 3 tries.