The payment prompt is not the finish line: state discipline for Skavio Agent Tools

Agent workflows tend to collapse several different facts into one status line: the account needs credits, the job is running, the result exists, and a person approved the output. Those are not the same fact. Skavio Agent Tools is a live company-scoped, authenticated document, invoice, audio and data processing API with a shared prepaid credit wallet, self-service keys and asynchronous jobs. That makes state separation an integration requirement, not a UI preference. A payment prompt should open a commercial or credit check. It must not mark a job finished, unlock a result download, or imply accounting approval.

Stop collapsing three statuses into one

A practical Agent Tools integration should keep at least three separate records: commercial state, asynchronous job state and human review state. Commercial state answers whether the account can proceed under current terms. Job state answers what the processing system has actually reported. Review state answers whether a responsible person accepted the output for a downstream purpose. A payment prompt belongs to the first domain only. It may tell an operator to check credits or billing context, but it is not evidence that a document was accepted, queued, processed, completed or downloaded. The same applies to a transfer reference or wallet-related message: it is a commercial event, not a processing result.

Give every request a durable correlation trail

Retries and reconnects are normal in agent workflows. Ambiguity is not. Create a stable client-side correlation ID before the first submission, then persist it alongside the company identifier, the relevant commercial or credit reference, and any quote or job reference returned by the documented flow. When a network timeout occurs, the integration can use that trail to determine whether a submission already exists instead of creating a duplicate job or an orphaned payment expectation. Company-scoped API keys belong on the server side. Browser code, application logs and shared agent prompts should not contain API secrets or wallet material. Results should be retrieved through authenticated paths tied to the requesting company.

Treat asynchronous completion as evidence, not optimism

Agent Tools is asynchronous, so a submitted request, a payment prompt, a client timeout or an agent's confident summary is not a completion signal. Mark a job finished only when the documented asynchronous outcome says it is finished and an authenticated result is available to the requesting company. Use the live documentation for exact state labels, error codes, webhook formats and idempotency fields. This article deliberately uses generic labels such as accepted, processing, completed and failed; they are integration concepts, not endpoint names. If a job fails, record the failure in the job domain and follow the documented retry path. Do not rewrite the commercial record to make an unfinished job look successful.

Put human approval before downstream writes

An authenticated document, invoice or audio processing result is a technical output. It is not accounting approval, a tax determination or authorisation to post into an ERP. Add an explicit review gate before exporting financial records, writing to downstream systems or sending commitments based on the output. Record the reviewer, the decision, the timestamp and the source reference beside the output version. Do not imply that QuickBooks production posting is approved. Also keep this production processing API distinct from staging Invoice, Reporting or Research agents. The integration should make the boundary obvious: job completion means a result is available for review, not that a business process is approved.

Explore Skavio Agent Tools →