Typed workflow APIs
Every workflow and environment has its own typed API. Your application can keep using the same contract while you improve the prompts behind it.
Turn your prompts into typed inference APIs. Test changes against real examples, catch regressions and decide what goes into production. Run Infervane on your own infrastructure or let us manage a dedicated instance for you.
A $1,200 invoice shows a $300 payment and a $900 balance.
“I was charged twice for the same order.”
A customer requests a refund after the policy deadline.
Every workflow and environment has its own typed API. Your application can keep using the same contract while you improve the prompts behind it.
Test prompt revisions against reviewed examples. Define what counts as correct, from exact matches to numerical tolerances and task-specific metrics.
Production is protected by default. Only people with release permission can publish a new revision.
Extract structured data from documents. For example, return an invoice’s total and outstanding balance as separate numbers.
total = 1200balance = 900Route support tickets by what the customer needs. Duplicate charges go to billing, sign-in issues go to technical support.
I was charged twice.Billing
I can’t sign in.Technical support
Draft a customer reply based on your return policy, without promising a refund when the refund window has closed.
Your purchase was 42 days ago, so the refund window has closed. I can help you check repair options.
Identify support tickets that need to be reopened, even when a customer doesn’t explicitly ask you to reopen one.
The error came back this morning.
Say you have a $1,200 invoice with a $300 payment. Your AI should return $1,200 as the total and $900 as the balance, but it returns $900 for both. Here’s how you’d find and fix that issue.
Infervane can sample production requests automatically. Your application can also report incorrect results through the workflow’s feedback endpoint.
Review the invoice, enter the correct amounts and add the case to your evaluation set.
Update the prompt to tell the model to read the total before payments. Save the change as a candidate revision.
Compare the candidate with the production revision using the same test cases. In this example, the change fixes the total but gets the balance wrong.
| Field | Reviewed | Production | Candidate |
|---|---|---|---|
| Total | $1,200 | $900 | $1,200Fixed |
| Due | $900 | $900 | $1,200Regressed |
Clarify the prompt and run the evaluations again. Once the team is happy with the results, someone with release permission can publish the tested revision.
A customer ID must match character for character. If the reviewed ID is C-0042, C-042 fails.
Not every answer has to match exactly. Allow a numerical difference within a tolerance you set, or normalize text before comparing it. Fuzzy matches count as correct, but you can still distinguish them from exact matches.
Use precision to see how often a predicted label is right, recall to see how many expected cases it catches, and F1 to summarize both.
Infervane generates an OpenAPI contract for each workflow and environment, so your application knows exactly what to send and what to expect back.
In this example, you send an invoice using a production API key and read the extracted amounts from the response’s output field.
Each workflow has separate inference and feedback endpoints for each environment. An API key can only call the workflow and environment it was issued for. It can’t override the configured prompt or model.
components:
schemas:
WorkflowOutput:
type: object
required: [invoiceTotal, amountDue]
properties:
invoiceTotal: { type: number }
amountDue: { type: number } POST /v1/gateway/invoice-extraction/production/infer {
"status": "succeeded",
"output": {
"invoiceTotal": 1200,
"amountDue": 900
}
}Bring a real example of what you’re trying to build. We’ll work through the API, how you’d test it and what you’d need to see before releasing changes to production.