Automation

Automation that returns JSON, not paragraphs.

Extract invoices, triage inbound email, fill forms — all of it ends up as JSON you can write straight into a database or spreadsheet. Runs on Laravel cron, n8n, or Make. Cost per task is measurable, not a flat subscription sitting half idle.

  • Endpointapi.datago.id/v1
  • Outputstructured JSON
  • Runs oncron · n8n · Make
run.log 5 steps
  1. 09:41:02 trigger inbox/new-invoice
  2. 09:41:03 extract invoice.pdf · 3 pages
  3. 09:41:04 validate 5/5 fields ok
  4. 09:41:04 write sheet → Invoice!A42
  5. 09:41:05 done Rp1,01 · 1.6s
output.json
{
  "vendor": "PT Sinar Jaya",
  "invoice_no": "INV/2026/0912",
  "total_idr": 4750000,
  "due_date": "2026-12-05"
}
cron → DataGo → sheet 0 retry
The problem

Manual work that never ends

Not hard work, just repeated work: moving numbers from email into a spreadsheet, retyping invoice numbers, entering customer data into forms. Every manual transfer is a fresh typo waiting to surface a month later.

  • The team spends the first hour of every day copy-pasting data
  • One wrong digit corrupts the ledger and the tax report with it
  • A flat-rate automation tool gets paid in full while running three flows
What you get

Three jobs, one endpoint

01

Structured output, not free text

Ask for JSON in a schema you define, validate it, then write it. No more parsing prose out of a model.

02

Queues and retries on your side

It is a plain HTTP call, so it fits a Laravel queue or n8n workflow with the same retry and dead-letter rules as any other job.

03

Cost per task, not per seat

One invoice extraction costs about one rupiah. No seat minimum, no monthly fee when the flow is idle.

Pipeline

One task, four steps

Everything runs in your systems; DataGo only turns text into data.

  1. 01

    Trigger from your side

    Inbound email, a new file in a folder, or a cron schedule. Extract the text (PDF/HTML/email) yourself.

  2. 02

    Ask for JSON in a schema

    Send the text plus the fields you need. The model fills values; missing fields become null instead of invented data.

  3. 03

    Validate, then persist

    Check types and ranges in your code before writing to the database. On failure, retry once with the validation error as context.

Models

Models for high-volume automation

Prices come straight from the catalog when the page loads. Estimates assume one short document.

Models for high-volume automation
Model Role Input / 1M Output / 1M Estimate / request
deepseek/deepseek-v4-flash Cheapest and most consistent for JSON extraction Rp1.350 Rp2.250 Rp1,01
glm/glm-5.3-flash Fast alternative for classification and email triage Rp1.575 Rp4.500 Rp1,46
minimax/minimax-m3.1-flash Longer documents with many line items Rp1.181 Rp9.450 Rp2,01

Estimates use the token counts shown in the header. Prices update automatically whenever the catalog changes.

Browse all automation models
Code

Turn an invoice into JSON

The trick: name the required fields, forbid invention, then validate the result in your own code.

extract.py
import json, os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.datago.id/v1",
    api_key=os.environ["DATAGO_API_KEY"],
)

SCHEMA = """Reply with JSON only, in this shape:
{"vendor": str, "invoice_no": str, "total_idr": int, "due_date": "YYYY-MM-DD", "items": [{"name": str, "qty": int, "price_idr": int}]}
If a field is missing in the document, set it to null. Never invent values."""

res = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[
        {"role": "system", "content": SCHEMA},
        {"role": "user", "content": invoice_text},
    ],
    response_format={"type": "json_object"},
    temperature=0,
    max_tokens=600,
)

data = json.loads(res.choices[0].message.content)

# validate before persisting
assert data["invoice_no"] and isinstance(data["total_idr"], int)

→ temperature 0 and a tight max_tokens keep cost per task predictable. Validation always lives in your code, never in the prompt.

Fit check

Good fit when

  • Many similar documents or emails
  • You already run a job queue or n8n/Make workflows
  • You want an audit trail: text in, JSON out, cost per task

Not for

  • You need OCR for bad scans — DataGo takes text, not raw images
  • Work that must finish under 100ms per item: an LLM is the wrong tool

Automation questions

01 What does 1,000 invoices per month cost?

A short document is roughly 500 input and 150 output tokens. On DeepSeek V4 Flash that is about Rp1,01 per document, so 1,000 documents is roughly Rp1,010. Table prices are pulled live from the catalog, not hardcoded.

02 Can I call it from n8n or Make?

Yes. Both support custom HTTP requests, so point them at https://api.datago.id/v1/chat/completions with an Authorization Bearer header.

03 What if the JSON comes back invalid?

Validate in your code, then retry once with the validation error as extra context. If it still fails, send it to a dead-letter queue for manual handling — never let it reach the database.

04 Are my documents stored?

No. Prompts and responses are not stored by DataGo; only token counts for billing.

Automate one flow first

Pick the single most time-consuming task — invoice extraction or email triage — and measure its weekly cost before expanding.