Generate a structured object for a specific workflow
The API key to use for authentication
The input text to generate a response for
1"Tell me about renewable energy"
"event"The slug of the Workflow to use for generation
"my_great_workflow"
A valid JSON Schema object defining the structure of the expected response. Must have a 'type' property set to 'object', 'array', or 'string' (with enum). See https://json-schema.org/ for full specification.
{
"type": "object",
"title": "User Profile",
"description": "A user profile object",
"properties": {
"name": {
"type": "string",
"description": "The user's full name"
},
"age": {
"type": "number",
"description": "The user's age"
},
"interests": {
"type": "array",
"items": { "type": "string" },
"description": "List of user interests"
}
},
"required": ["name", "age"]
}Optional attachments to include in the generation
[
{
"file": "file_data",
"mimeType": "application/pdf"
},
{
"file": "image_data",
"mimeType": "image/png"
},
{ "file": "https://example.com/image.jpg" }
]Optional context slugs to add contexts to the run
["special-docs", "admin-files"]