A scheduled automation can submit an AI request successfully and still lose ownership of the work. The scenario may time out, restart, overlap with its next schedule, or complete the model call and fail while delivering the result. Without a durable job record, the next run cannot tell whether to resume, reconcile, or create another request.
CometAPI’s Make integration guide demonstrates a straightforward synchronous path: configure an API call, use Run once to inspect its output, then enable scheduling. It also separates authorization errors, malformed request bodies, and scenario timeouts, and notes that the standard API-call path does not process raw streaming. The guide does not define an asynchronous job lifecycle. That gap matters when a selected route returns a job handle rather than the final asset.
Create the ownership record before submission
Use a durable store that survives an individual Make execution. For each source event, create one record containing:
- a stable business key derived from the source event;
- the exact route, model ID, and request revision;
- submission state and provider job ID when returned;
- the latest poll state and next eligible poll time;
- result location and acceptance state;
- downstream delivery state and safe error summary.
The business key prevents a scheduled rerun from treating the same input as new work. The provider job ID lets a later execution resume polling instead of submitting another generation because memory was lost.
Separate submit, observe, and deliver
The submit scenario should validate input, claim the business key, create the request, and persist the returned job ID. A second scenario can poll due jobs with bounded concurrency. A third step should validate the completed output and deliver it exactly once to the destination.
These stages may live in one carefully designed scenario, but their states should remain separate. “Request accepted,” “provider completed,” “output accepted,” and “delivered” are not interchangeable successes.
When a 401 or malformed-body response occurs, stop and repair configuration. A timeout is different: do not immediately switch models or submit again. First check the ownership record and, where the provider contract permits, look up the original job. If the outcome cannot be established, mark it for reconciliation rather than guessing.
Fence scheduled overlap
Long-running reasoning or media jobs can outlive the schedule interval. Claim each job with a short lease and make the lease renewable so two executions do not poll or deliver the same result concurrently. Limit both per-job attempts and total scenario work. A retry should update the existing record; a deliberate replacement render should receive a new revision linked to the original.
Finally, retain the minimal operational facts needed to explain a result: timestamps, state transitions, request revision, job ID, safe error class, and delivery identifier. Keep credentials and sensitive prompt content out of that record.
Add a terminal state for work that requires manual attention. Exhausted retries, an unknown submission outcome, or a result that fails acceptance should not remain indefinitely “in progress.” A visible stopped state lets an operator inspect one record without allowing the normal schedule to clear or replace it automatically.
No-code orchestration removes boilerplate, not state-machine responsibility. Once an AI action is asynchronous, durable ownership is what turns a chain of modules into a recoverable job system.