Plus plan

AI column

Add a new column to a table, worked out row by row
POST
/v1/ai/documents/column

About this tool

You add a table, and AI reads each row and fills a new column. It can write a category, a mood such as positive or negative, a cleaned value or a number. You give the instructions and the name of the new column, and can limit the allowed categories. The text is written by AI, so read it before you use it.
For example, you add a list of reviews and get a new column saying if each one is positive or negative.

How to use it

  1. Choose this tool.
  2. Add your table file (up to 5), such as a spreadsheet or CSV.
  3. Type what to work out for each row and the name of the new column.
  4. Choose the kind of value, and the categories if you want a fixed list.
  5. Press Generate, then download the result.

What you get back

You get the values for the new column that you can copy or download.
TEST IT LIVE

Try AI column in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/documents/column
Tool ID
ai.documents.column
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/documents/column" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'on_unsupported=error' \
  -F 'instructions=example' \
  -F 'quality=standard'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.documents.column({
    "on_unsupported": "error",
    "instructions": "example",
    "quality": "standard"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->documents()->column([
    'on_unsupported' => 'error',
    'instructions' => 'example',
    'quality' => 'standard',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Add a column to a table: the instructions say what to work out for each row (a category, a sentiment, a cleaned value, a number); code checks the rows, the type and the categories. Readiness: unbenchmarked (see GET /v1/ai/capabilities/documents.column).

Classification: hybrid. Deterministic stages: file type detection from content, native PDF text extraction / OCR for documents, image normalisation (Sharp).

AI column works from text and settings, so no file is needed. The required inputs are instructions.

Not on the Free plan: AI column is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/documents/column with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.