AI & Validation
Wire Flow AI and validation tasks — Bedrock AI for intelligent data processing and Schema Validator for enforcing data structure.
Last updated
Wire Flow AI and validation tasks — Bedrock AI for intelligent data processing and Schema Validator for enforcing data structure.
Invokes an AI model to classify, extract, or summarise data within a workflow.


Model ID
The AI model to use (e.g., anthropic.claude-3-haiku-20240307-v1:0)
Prompt
Supports {$.body.field} placeholders or a JSONPath to a prompt string
System Prompt
Optional system instructions
Max Tokens
Maximum response length (default: 1024)
The next task receives the model's response in this format:
Extract the response text in a downstream JSONata task: $states.input.body.content[0].text
Use cases: classification, data extraction from unstructured text, summarisation, decision support.
Validates the step input against a JSON Schema. If validation fails, the step errors — catchable with an Error Boundary.

JSON Schema
Standard JSON Schema definition
Edit
Opens an editor with live validation preview
If validation passes, the input is passed through unchanged to the next step.
Last updated
{
"statusCode": 200,
"body": {
"content": [{ "type": "text", "text": "The model's response..." }]
}
}