WorkflowAgentWrite
- analysisType: string
_prompt requiredThe prompt that tells Resia how to read the run's outcome into the analysis result.
- analysisType: ResiaJsonObject
_schema requiredProperties: 1A JSON Schema (draft 2020-12) the run's analysis result is shaped by. Use a JSON Schema object, not the legacy fields format.
- callingType: stringFormat: time
_window _end _local _time requiredThe latest local clock time a run may place a call, as HH:MM:SS. It must be after calling_window_start_local_time.
- callingType: stringFormat: time
_window _start _local _time requiredThe earliest local clock time a run may place a call, as HH:MM:SS. The window has no time zone of its own; each run's inputs carry the time zone the window is read in. The start must be before the end.
- inputType: ResiaJsonObject
_schema requiredProperties: 1A JSON Schema (draft 2020-12) the inputs of each run must satisfy. Use a JSON Schema object, not the legacy fields format.
- instructionsType: stringrequired
The instructions for each run. Use
$nameor${name}to refer to a top-level run input property. Declare every placeholder ininput_schema.properties. Resia supplies validated run inputs to the agent as a separate JSON object. Resia does not replace the placeholder text. Nested property paths are not supported. - maxType: integer
_calls min:0requiredThe most calls one run of this Workflow Agent may place. Zero means the run places no calls, and it then receives no calling ability at all. A run that reaches this limit is refused further calls.
- maxType: integer
_spend _in _cents min:0requiredThe most one run of this Workflow Agent may spend, in whole cents. A run that reaches this limit is refused further spend.
- nameType: stringmin length:1required
The Workflow Agent's name. It must be unique within your organization.
- descriptionType: stringmin length:1max length:280nullable
One line saying what this Workflow Agent is for. Optional; a name is the fallback.
- maxType: integer
_messages min:0The most text messages one run of this Workflow Agent may send. Zero (the default) means the run sends none, and it then receives no messaging ability.
- milestonesType: array of AgentMilestone 1…32nullableProperties: 2
The stages a run of this Workflow Agent may report, each a name and a description. During a run the agent calls set_milestone with a name from this list to record the stage it reached; GET the run to read the current stage. Names must be unique. Null (the default) means the agent reports no milestone.
- runType: string
_ended _webhook _url min length:1Format: urinullableHTTPS URL Resia POSTs a workflow_run.ended event to when a Workflow Run reaches succeeded, failed, or cancelled. The event contains the same WorkflowRunResponse that GET /v1/workflow-runs/{workflow_run_id} returns. Resia makes one immediate attempt when practical and retries a failed delivery on the call.ended schedule. Any 2xx response is success. The workflow_run_id stays unchanged across retries, so treat a repeated workflow_run_id as a duplicate. Treat the complete URL as a credential. Null clears the webhook and stops pending deliveries.
- triggerableType: array of string …64
_call _agent _ids min length:1max length:512The Call Agents runs of this Workflow Agent may dial, each named by its identifier. Every identifier must name a Call Agent your organization owns and has not archived. An empty list (the default) means the workflow places no calls.

