Skip to main content

Recipe: set up a workspace end to end

Go from an empty workspace to structured data and cited answers without opening the web app. For anyone starting with Talonic through an agent.

Before you start

Connect your agent (Connect). Have a few sample documents ready, for example ten invoices from two suppliers.

Tell your agent

"Set up Talonic for our invoices. We buy from Acme GmbH and Nordwind AG; keep their documents apart. I'll upload ten invoices. Pull vendor, invoice number, date, total and currency from each, show me a table, then tell me our total spend per supplier."

What the agent does

  1. Companies. talonic_list_accounts, then talonic_create_account for each supplier that is missing.
  2. Files. talonic_request_upload per file with account and add_to_workspace: true; you open each link and drop the file; it checks talonic_get_document until completed.
  3. Fields. talonic_save_schema with the five fields, so every invoice comes back the same way. (Not sure which fields exist? It can call talonic_extract with auto_schema: true on one invoice and show you what it found.)
  4. Extract. talonic_extract per document with the saved schema_id. If your team already has an invoice Spec, talonic_run_spec runs it over all ten at once and talonic_get_run_results returns one row each.
  5. First question. talonic_ask: "Total spend per supplier", answered with citations to each invoice.
  6. Check credits. talonic_get_balance and talonic_get_usage.
Save the fields
{
  "name": "Invoice basics",
  "definition": {
    "vendor_name": "string",
    "invoice_number": "string",
    "invoice_date": "string",
    "total": "number",
    "currency": "string"
  }
}

Make it run by itself

If your role can build processes, ask: "From now on, read every invoice that arrives at invoices@ourcompany.com the same way." The agent drafts it with talonic_process_create; see Process an inbox.

Limits and cost

  • Accounts, schemas, links and look-ups are free. Each document read and each question uses credits.
  • A Spec run takes up to 500 workspace documents, or 20 public URLs, per call.
  • Something failing? Troubleshooting.