Create a New Task
Create a new Task with specified prompts, model configuration, and output format.
Tasks are the core building blocks that define how the LLM processes inputs and generates structured outputs. Each Task includes:
- System and user prompts that guide the LLM’s behavior
- Input parameters that can be dynamically provided when running the Task
- Output format specification that ensures consistent, structured responses
- Output modality supporting multiple formats:
json: Structured JSON responses (default)image: AI-generated images (requires image-capable model)audio: Voice/audio responsespdf: Formatted PDF documentstext: Plain text outputcsv: Structured CSV data tables
- Optional fallback model for improved reliability when primary model fails
- Optional task run visibility controls for managing access to task execution history
- Optional image processing capabilities
- Optional RAG (Retrieval Augmented Generation) for domain-specific knowledge
Use integration_bindings to attach Integration tools and choose runtime
credentials. Clients can author project_default for the project’s shared
connection or invoker for the eligible invoking user’s connection. Migrated
fixed_connection bindings are read-only and can only be preserved on revision
updates through their source binding_id. integration_tool_ids is deprecated.
LLM Configuration (llm_config):
Model-specific configuration options. Common parameters include:
temperature(0.0-2.0): Controls randomness. Lower = more focused, higher = more creativetop_p(0.0-1.0): Nucleus sampling. Use either temperature OR top_p, not bothmax_tokens: Maximum tokens in the responsequality(for image models): “standard” or “hd”size(for image models): e.g., “1024x1024”, “1792x1024”
Output Format (output_format):
Define the structure of task outputs. Two syntaxes are supported:
Shorthand syntax (simple fields):
Object syntax (with descriptions and constraints):
Supported types: str/string, int/integer, number, bool/boolean, list, object
output_format is required when output_modality is json (the default), and must be omitted when output_modality is image, text, or csv.
Task Run Visibility:
owner_only(default): Only task owners can view all task runseditors_and_owners: Task editors and owners can view all task runsall_viewers: All users with view permission can see all task runs
File Input Mode (file_input_mode):
Specifies what file types are accepted for visual LLM processing:
none(default): No file input acceptedimage: Image file required (PNG, JPEG, WebP, GIF)pdf: PDF document required (requires PDF vision model)image_or_pdf: Either image or PDF acceptedany: Any visually processable file accepted
PDF Vision Model Compatibility:
- Gemini 1.5/2.x/3.x models: Up to 50MB, 1000 pages
- Claude 3.x/4.x models: Up to 30MB, 100 pages visual
- GPT-4o models: Up to 20MB
- GPT-3.5 / Groq: No PDF vision support
Common Use Cases:
Structured Data Extraction: Create tasks with JSON output to extract structured data from unstructured text (e.g., invoice parsing, contact extraction).
Image Generation:
Set output_modality: "image" with DALL-E or similar models to generate images from text prompts.
Document Analysis with Vision:
Set file_input_mode to accept images, PDFs, or both for visual analysis by the LLM. Use PDF-capable models (Gemini, Claude, GPT-4o) for direct PDF processing without text extraction.
Knowledge Base Q&A (RAG):
Configure rag with collection IDs to ground responses in your organization’s documents and knowledge.
Automated Reports:
Use output_modality: "pdf" to generate formatted reports that can be downloaded or emailed.
Template resource identifiers:
The request examples below are templates, not universally executable payloads.
Replace every llm_model_id and fallback_llm_model_id with an available model
ID returned by getAllModels for the target project. For the RAG example, also
replace rag.collection_id with a collection ID returned by listCollections
in that project. The fixed UUIDs only show where those project-scoped resource
IDs belong.
The Task will be created with an initial revision that becomes automatically active.
Authentication
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
Path parameters
Request
The description of the Task. It is not required to mention the outputs in the prompt, but it can help the model to understand the context better. Any input strings should be referenced with the dynamic {...} syntax, this informs the model to look for those values in the input data.
When true the Task is active and callable. false denotes the Task is not yet operational.
This gives control over the structure of how the Task responds. Supports shorthand notation or an object with type can be specified for each attribute. In most instances, the LLM will be able to generate the desired output into the relevant property, but an optional description can be passed to provide it with additional context.
Note: This is a Paid Tier feature. Provide additional domain specific input to the LLM so that it is able to reference user specific information when executing the Task. Examples of this could be a product catalogue, terms and conditions or a user manual.
Specifies what file types are accepted for visual LLM processing. Values: ‘none’ (default), ‘image’, ‘pdf’, ‘image_or_pdf’, ‘any’.
When true (default) images will be automatically optimised before processing. Set to false to disable lossy image optimisation.
True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration.
When true the Task is public and can be accessed by any User.
When true the Task is accessible to agents through the unauthenticated agent endpoint.
Controls who can view all task runs. ‘owner_only’ - only task owners see all runs (default), ‘editors_and_owners’ - task editors and owners see all runs, ‘all_viewers’ - all users with view permission see all runs.
Response
When true the Task is active and callable. false denotes the Task is not yet operational.
When true the Task is public and can be accessed by any User.
When true the Task is accessible to agents through the unauthenticated agent endpoint.
Controls who can view all task runs. ‘owner_only’ - only task owners see all runs (default), ‘editors_and_owners’ - task editors and owners see all runs, ‘all_viewers’ - all users with view permission see all runs.
Each update to a Task results in a new Revision being created. Task Revisions are a powerful concept that can be used to assist with A/B testing, comparing responses from different LLM’s, etc.