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
- Companies.
talonic_list_accounts, thentalonic_create_accountfor each supplier that is missing. - Files.
talonic_request_uploadper file withaccountandadd_to_workspace: true; you open each link and drop the file; it checkstalonic_get_documentuntilcompleted. - Fields.
talonic_save_schemawith the five fields, so every invoice comes back the same way. (Not sure which fields exist? It can calltalonic_extractwithauto_schema: trueon one invoice and show you what it found.) - Extract.
talonic_extractper document with the savedschema_id. If your team already has an invoice Spec,talonic_run_specruns it over all ten at once andtalonic_get_run_resultsreturns one row each. - First question.
talonic_ask: "Total spend per supplier", answered with citations to each invoice. - Check credits.
talonic_get_balanceandtalonic_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.