Tasks
/
Rightbrain Internal
FAQ Entry Generator
Analyses customer queries, then intelligently researches company documentation to rephrase questions for broader applicability and generate accurate, comprehensive FAQ entries. This ensures consistent, clear answers derived solely from your authoritative resources.
moonshotai/kimi-k2-instruct-0905
222 views
December 17, 2025
Sign up for a free trial to Clone, Customise and Run
Task Logic
Defines the AI's core persona and operational constraints.
You are an expert technical writer who transforms raw documentation into helpful, customer-facing knowledge. Maintain accuracy, clarity, and a friendly tone while ensuring answers are easily findable and jargon-free.
User Prompt Template
CORE INSTRUCTION
Instructions sent to the model. Dynamic variables {brackets} are replaced at runtime.
Goal:
Transform a customer question into a comprehensive FAQ entry by researching company documentation to provide an accurate answer, rephrasing the question for clarity and broader applicability.
Input Parameters:
{customer_question} - The original question submitted by the customer that requires clarification and answering
{company_documentation} - The authoritative company documentation containing information needed to answer the question accurately
Processing Steps:
1. Analyse the customer question to identify the core issue, intent, and any ambiguities or unclear phrasing
2. Search the company documentation thoroughly to locate relevant information that addresses the customer's question
3. Extract the key facts, procedures, or explanations from the documentation that directly answer the question
4. Rephrase the original question to make it clearer, more concise, and applicable to a broader audience whilst preserving the original intent
5. Compose a clear and concise answer that directly addresses the rephrased question using information from the company documentation
6. Format all components into a complete FAQ entry
Critical Rules:
- The rephrased question must preserve the original customer's intent whilst improving clarity and relevance
- All factual information in the answer must be derived from the company documentation provided
- Do not invent or assume information not present in the company documentation
- The answer must directly address the question without unnecessary tangents or filler content
- Maintain a helpful, professional tone throughout the FAQ entry
Interface Definition
Prompt Variables
company_documentation
Document Scanner
filename:
company_docs
customer_question
Text Input
Output Schema
Input Context
Files
PDF
company_docs
727.21 KB
•
application/pdf
Variables
{customer_question}
How can I integrate Rightbrain into my app?
{company_documentation}
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
# Introduction
> Inject intelligence where it matters - Rightbrain lets you wire AI into your tech stack, making your existing platforms smarter.
Rightbrain isn't another agent or workflow automation platform, **just intelligence exactly where your team and customers need it**, making your existing platforms smarter.
This is achieved through Tasks, custom AI functions that can be triggered from anywhere in your stack - through an API, webhook, scheduled job, or user action.
Tasks are LLMs with set instructions to process incoming data and respond in a pre- defined output format, perfectly designed for surfacing in an app's user interface, storing in your database or initiating another step in a wider workflow.
#### Core components of Tasks:
| Property | Description | | -------------- | -------------------------------------------------------------------- | | **Stateless** | No long-term memory or dependencies between runs, and no drift | | **Triggered** | Activated by events - API calls, workflows, or user actions | | **Consistent** | Pre-defined instructions and output format for maximum compatibility | | **Composable** | Can be chained, reused, or embedded into any process |
<Callout type="info"> By wiring Tasks into existing systems, teams can safely add AI to any workflow **without having to build or maintain an AI platform**. </Callout>
### Example Tasks
**Content Moderator** – Review user-generated content for compliance * **Invoice Processor** – Extract line items, totals, and vendor details * **Data Classifier** – Categorise and route support tickets or feedback * **Image Generator** – Create branded visuals from text prompts * **Competitor Analyser** – Research and summarise a company’s top competitors ### Where It Fits
Rightbrain Tasks can be called through **REST API** or **MCP** - the flow is identical in each case.
They connect business rules with AI, making your existing tools smarter, faster, and more adaptive.
[Learn how Rightbrain works →](/docs/getting-started/how-it-works)
***
## How Teams Use Rightbrain
<Tabs> <Tab title="Product Teams"> * Build AI-powered features using natural language * Enrich existing products without extra infra * Test, tune, and launch Tasks fast in the dashboard * Deploy safely with version control and rollback * Monitor performance and costs as they happen </Tab>
<Tab title="Builders"> * Plug AI into any app with a single API call * Built-in OAuth 2.0 for secure access * Handle text, images, and files in one request * Get predictable JSON outputs every time * Monitor, debug, and ship with full observability </Tab>
<Tab title="Operations">
https://docs.rightbrain.ai/llms-full.txt
1/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Enterprise-grade control without the complexity * Role-based permissions for every team * Track usage, costs, and performance in real time * Roll out new AI features safely with A/B testing * Every Task call is logged and auditable by default </Tab> </Tabs> ## For AI Agents & Assistants
<Card href="/docs/integrations/ai-agent-documentation" title="LLM-Friendly Documentation" icon="fa-solid fa-robot"> Using Cursor, Claude, or other AI coding assistants? We provide **machine-readable documentation endpoints** optimised for AI agents. Drop our docs into any LLM to give it instant context on Rightbrain's capabilities and APIs. </Card>
## Build with Rightbrain
<CardGroup cols={2}> <Card title="5-Minute Quickstart" icon="fa-solid fa-play-circle" href="/docs/quickstart/your-first-task-5-min"> Build your first Task in our no-code dash </Card>
<Card title="API Docs" icon="fa-solid fa-book" href="/api-reference/api- reference/tasks/list-tasks"> Everything devs need to get started </Card> </CardGroup>
***
<Info> **Ready to ship AI that actually works?**
Start your 7-day free trial and join over 1,000 teams already building with Rightbrain.
[Start Free Trial →](https://app.rightbrain.ai) </Info>
# Why Rightbrain?
> Most AI projects fail before they reach production. Rightbrain changes that.
## The Problem: Most AI never makes it to production
95% of AI proof-of-concepts fail before deployment.\ Not because the models don’t work - but because everything around them does.
Teams spend months building scaffolding: APIs, infrastructure, observability, compliance, rollback logic.
By the time it’s ready, the opportunity has passed.
<Callout type="warning" intent="info"> **8 months** is the average time it takes for a team to move from prototype to production. Most never make it. </Callout>
***
## The Real Bottleneck: Infrastructure, Not Intelligence
Prototypes are easy. Production is hard.
<Steps>
https://docs.rightbrain.ai/llms-full.txt
2/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
### 1. The Infrastructure Trap
“Week 1: We built a ChatGPT wrapper!”\ “Week 4: We need error handling.”\ “Week 8: Where are the logs?”\ “Week 16: The compliance team has questions.”\ “Week 32: Let’s start again - properly this time.”
Teams build everything from scratch, only to realise they needed versioning, audit trails, and rollbacks from day one.
### 2. The Integration Maze
AI features end up scattered across different systems - Python scripts, Lambda functions, third-party tools - with no shared monitoring, no consistent schema, and no control.
### 3. The Scaling Wall
The proof-of-concept works on one input. In production, it breaks under real data, real users, and real expectations. </Steps>
***
## The Rightbrain Approach: From Prompt to Production
Rightbrain replaces custom infrastructure with a **Task-based architecture** - small, modular AI units that can be deployed anywhere, securely, and at scale.
| The Old Way (Monolithic AI) | The Rightbrain Way (Task-Based) | | ---------------------------------- | --------------------------------------------- | | Models buried in custom code | Modular **Tasks** you can call via API | | No version control or rollback | **Versioned and auditable** by default | | Inconsistent results | **Structured, predictable outputs** every run | | Hard to test and debug | **Observable and testable** units | | Works in demo, fails in production | **Built for reliability at scale** |
<Callout type="info"> Rightbrain turns AI from an experiment into an operational system. </Callout>
***
## Proof in Action: PAL.health
**Goal**\ Launch a production-ready AI health coach app - without any AI infrastructure.
**Solution** Rightbrain Tasks power every AI feature in their platform.
**Results**
15 production Tasks deployed in weeks * 200+ optimisations per Task * Feature ideas created by the founder and the underlying Task API's handed off to the mobile developers > I can switch models, fix issues, and ship updates daily without waiting on engineers. Without Rightbrain, this simply wouldn’t be possible.
Chris Davison, Founder & CEO, [PAL.](https://pal.health)
***
## Why It Matters
Companies that win with AI aren’t the ones with the biggest models.\
https://docs.rightbrain.ai/llms-full.txt
3/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
They’re the ones that **ship fast, iterate safely, and scale predictably**.
Rightbrain gives you the foundation to do exactly that -\ from **natural language idea → production-ready AI feature** in a fraction of the time.
***
## Is Rightbrain Right for You?
| Perfect Fit | Consider Alternatives | | ------------------------------------------------ | ------------------------------------ -------- | | You need production AI inside existing products | You’re only exploring basic prototypes | | You want fast iteration without building infra | You prefer full in-house platform teams | | You need governance and compliance from day one | You’re experimenting with single-use scripts | | You want predictable costs and model flexibility | You don’t plan to scale AI features |
***
<CardGroup cols={2}> <Card title="5-Minute Quickstart" href="/docs/quickstart/your-first-task-5-min" icon="fa-bolt"> Build your first Task in our no-code dashboard </Card>
<Card title="How It Works" href="/docs/getting-started/how-it-works" icon="fa-diagram- project"> Learn the architecture behind Rightbrain Tasks </Card> </CardGroup>
# How Rightbrain Works
Rightbrain provides composable AI capabilities that integrate directly into your applications. No complex infrastructure. No orchestration layers. Just production-grade AI that works.
## The Integration Pattern
Every Task follows the same four-step flow, whether you're calling it via REST API, MCP, or agent protocols:
<Steps> <Step title="Trigger" icon="fa-solid fa-bolt"> An event fires in your system - a user action, API call, or webhook that needs AI processing. </Step>
<Step title="Receive" icon="fa-solid fa-inbox"> Data from the trigger event is sent to the Rightbrain Task. This can be text, structured data, files, or images. </Step>
<Step title="Run" icon="fa-solid fa-gears" toc={false}> The Task executes its defined AI logic: your chosen model, prompt, and schema, with the right context provided at runtime. </Step>
<Step title="Respond" icon="fa-solid fa-check-circle"> Validated, structured output is returned to your application - ready to store, display, or feed into other Tasks. </Step> </Steps>
https://docs.rightbrain.ai/llms-full.txt
4/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Success> This pattern is consistent across all integration methods, making it simple to build once and deploy anywhere. </Success>
## Integration Methods
<Tabs> <Tab title="Direct API"> **Call Tasks like any REST API**
Send a request with your input data, get structured output back. OAuth 2.0 authenticated, production-ready.
**Perfect for:**
Server-side applications * Batch processing * Synchronous workflows </Tab>
<Tab title="MCP Protocol"> **Make Tasks available to AI assistants**
Tasks can be exposed via Model Context Protocol, making them discoverable and usable by any MCP-compatible AI client.
**Perfect for:**
AI agent workflows * Claude, Cursor and other MCP clients * Cross-platform AI tool distribution </Tab> <Tab title="Webhooks"> **Receive results asynchronously**
Configure Task Forwarders to send results to your endpoints when processing completes.
**Perfect for:**
Long-running tasks * Event-driven architectures * Queue-based processing </Tab> </Tabs> ## Governance Built In
🧭 **Observability** - Every execution logged with inputs, outputs, timing, and costs
🔐 **Access Control** - OAuth 2.0 authentication with role-based permissions
🌿 **Versioning** - Revisions enabling A/B testing and weighted traffic
🛡 **Compliance** - Audit trails, data residency, and enterprise-grade security
## TL;DR
<Note> Rightbrain removes all the complexity between your application and AI capabilities:
* No infrastructure to manage * No models to host * No prompt versioning to build * No monitoring to implement
https://docs.rightbrain.ai/llms-full.txt
5/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* No governance to figure out
**You focus on functionality. We handle everything else.** </Note>
***
<CardGroup cols={2}> <Card title="5-Minute Quickstart" icon="fa-solid fa-play-circle" href="/docs/quickstart/your-first-task-5-min"> Build your first Task in our no-code dash </Card>
<Card title="Templates" icon="fa-solid fa-book" href="/docs/templates/growth"> Example use cases to inspire your own </Card> </CardGroup>
# Create Your First Task
> Build and deploy a production-ready AI tool in 5 minutes
Let's build your first Rightbrain Task. In this quickstart, we'll draft a prompt, structure your outputs and choose an appropriate model for the job.
<Info> **What You'll Build**: A Task that analyses customer reviews, extracts sentiment, and validates product images - all in one API call. </Info>
## Understanding Task Components
Before we start, let’s understand the four core components of every Task:
💬 **Instructions** - Craft clear prompts that tell the model exactly what to do and how to behave.
**🧩 Dynamic Inputs** - Use placeholders, such as `{customer_review}`, to insert real input data at runtime
📊 **Structured Outputs** - Define your expected fields and schema to ensure consistent, predictable responses.
🧠 **Model Selection** - Choose the model that best balances speed, cost, and capability for your use case.
## Step 1: Set Your Prompts
First, we'll compose the Task instructions using the user prompt. For this demo, we're building a sentiment analysis Task that can also verify product images.
<Note> The user prompt tells the AI what to do with the input data. Use clear, specific instructions for best results. </Note>
### User Prompt
Navigate to the user prompt field and enter:
``` Please conduct a comprehensive sentiment analysis on the {customer_review} and describe the product image (if one is included). Verify that the image matches the product described in the review. ```
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain-
https://docs.rightbrain.ai/llms-full.txt
6/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
staging.docs.buildwithfern.com/2025-09-22T09:41:57.935Z/docs/quickstart/your-first-task- 5-min/prompt_writing.gif" alt="prompt_writing" title="prompt_writing" />
Notice the `{customer_review}` variable - this is a dynamic placeholder that gets replaced with actual data when the Task runs. The Task is also designed to handle optional image inputs.
### System Prompt (Optional)
You can add a system prompt to define the AI's role and behavior:
``` You are an expert product review analyst specializing in e-commerce sentiment analysis and visual verification. ```
## Step 2: Configure Inputs and Outputs
Now we'll define what data goes in and what structure comes out.
### Define Input Variables
Your Task can accept:
**Text strings** – simple text inputs like support tickets, reviews or any text data feed. * **Images** – visual inputs such as product photos, receipts, or screenshots for multimodal analysis and verification. * **Documents** – commonly Word, PDF, PPT or CSV files for data extraction, summarisation or classification. * **URLs** – web addresses that the Task can fetch and analyse for content, metadata or linked resources. * **Web Search **- a live search via Perplexity that returns up to the top 20 results for further analysis. For our Task, the `{customer_review}` variable is automatically detected from your prompt. You can add additional inputs if needed.
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-09-22T09:48:29.559Z/docs/quickstart/your-first-task- 5-min/input-config.gif" alt="input-config" title="input-config" />
### Specify Output Structure
Define exactly what data structure you want back. This ensures every Task execution returns consistent, parseable results.
Add these outputs to your Task manually or by pasting the JSON schema:
<Tabs> <Tab title="Visual Editor"> <ParamField path="sentiment" type="string" required={true}> Whether the review is positive, negative, or neutral </ParamField>
<ParamField path="image_description" type="string" required={false} default="N/A"> A description of the product image. Returns "N/A" if no image provided </ParamField>
<ParamField path="image_match" type="boolean" required={false}> Whether the image matches the product described in the review </ParamField> </Tab>
<Tab title="JSON Schema"> ```json { "sentiment": { "type": "str",
https://docs.rightbrain.ai/llms-full.txt
7/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"description": "Whether the review is positive, negative, or neutral" }, "image_description": { "type": "str", "description": "A description of the product image. Returns \"N/A\" if no image provided" }, "image_match": { "type": "str", "description": "Whether the image matches the product described in the review" } } ``` </Tab> </Tabs>
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-09-22T10:16:31.271Z/docs/quickstart/your-first-task- 5-min/output-formatting.gif" alt="output-formatting" title="output-formatting" />
<Tip> **Pro tip**: Always provide clear descriptions for your outputs. This helps the model understand exactly what you expect and improves accuracy. </Tip>
## Step 3: Choose Model and Configure Settings
### Select Your Model
Different models excel at different tasks. For our sentiment analysis with image verification, we need a vision-capable model:
<Tabs> <Tab title="Recommended"> **Claude Sonnet 4.5** 🖼
Excellent for combined text and image analysis * Cost-effective for production use * Fast response times </Tab>
<Tab title="Alternatives"> Other vision-capable models are available through the model selection interface, including: `Gemini 2.5 Pro`, `GPT 5`, `Gemini 2.5 Flash`, `GPT 5 Mini`, `Claude Haiku 4.5`, `Llama 4 Maverick` </Tab> </Tabs>
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-10-22T11:23:26.617Z/docs/quickstart/your-first-task- 5-min/model-selector.gif" alt="model-selector" title="model-selector" />
### Configure Task Settings
<Tabs> <Tab title="Temperature" icon="fa-solid fa-temperature-low"> Set to `0.3` for consistent, focused analysis.\ Lower values (0.1–0.3) produce more deterministic outputs, ideal for classification tasks. </Tab>
<Tab title="Fallback Model" icon="fa-solid fa-rotate"> You can specify a fallback model in the Task settings. If your primary model fails four consecutive times, the Task will automatically route subsequent runs to the designated fallback model. </Tab> </Tabs>
<Success>
https://docs.rightbrain.ai/llms-full.txt
8/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Congratulations!** You've created your first Task. It's now available via the API endpoint under the Integrate tab. </Success>
## What's Next?
<CardGroup cols={2}> <Card title="Deploy & Test" icon="fa-solid fa-play" href="/docs/quickstart/deploy- test"> Run and test your Task </Card>
<Card title="API Integration" icon="fa-solid fa-plug" href="/docs/deploying-tasks/api- integration"> Integrate via REST API </Card> </CardGroup>
# Running Your Task
> Test and execute your Tasks through the Rightbrain dashboard
Once you've created a Task, it's time to test and run it. This guide covers how to execute your Task through the Rightbrain dashboard.
## Accessing the Run Task View
Navigate to the **Run Task** view to test your Task execution. You can access this directly from your dash homepage or right after creating a task.
**Task run view**
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-10-22T11:27:38.389Z/docs/quickstart/deploy- test/Screenshot_2025-10-22_at_12.27.29.png" alt="Screenshot 2025-10-22 at 12.27.29" title="Screenshot 2025-10-22 at 12.27.29" noZoom={false} />
Let's run through what you can expect to see in this view:
<Tabs> <Tab title="Left Panel" icon="fa-solid fa-sliders"> **Configuration & Inputs**
LLM model selection - primary and fallback * Input fields for your variables * Image upload for vision tasks * User & system prompts * Output format schema </Tab> <Tab title="Right Panel" icon="fa-solid fa-chart-line"> **Results & History**
Run history logs * Usage & performance statistics * Output results display * Token and credit tracking </Tab> </Tabs> ## Understanding Input Variables
Tasks are designed to run on dynamic input variables (e.g., `{customer_review}`). The platform automatically detects these variables from your prompts and creates corresponding input fields.
<Tabs> <Tab title="Text Inputs">
https://docs.rightbrain.ai/llms-full.txt
9/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Plain Text Variables**
Direct text entry for string variables * Support for long-form content * Special characters and emojis supported * No size limit for testing
**Example variables**: `{customer_review}`, `{product_description}`, `{user_query}` </Tab>
<Tab title="File Inputs"> **Images**
JPEG, PNG formats * Enable with `image_required: true` * Automatic image optimisation available * Multiple images per task supported **Documents**
PDF, DOCX, TXT, CSV, XLSX * Content automatically extracted * Requires a corresponding filename </Tab> <Tab title="URL Inputs"> **Web Content**
Complete URLs with `https://` * Content fetched automatically * Must be publicly accessible * Handles HTML, JSON, and plain text * Optional fallback text if the url fetch fails
**Example variables**: `{webpage_url}`, `{api_endpoint}`, `{article_link}` </Tab>
<Tab title="Web Search"> **Search Results:**
Conducts a Perplexity web search for your variable * Can be configured to return the top to 5-20 results * Augmented with additional text such as 'Top competitors for `{variable}`' which runs a search for full search term as opposed to just the variable * Search results can be used for further analysis **Example searches and variables**: 'top competitors for `{company}`', latest news related to `{topic}`', 'weekly investments in `{industry}`' </Tab> </Tabs>
<Note> **Multiple Input Types**: Tasks can combine different input types. For example, a task might compare text to images, summarise documents with web content, or analyse URLs alongside uploaded files. </Note>
## Providing Test Data
### Text Input Example
For our sentiment analysis task let's provide a value for the input variable `{customer_review}`:
```plaintext My toaster exploded during breakfast, sending flaming bread across the kitchen! 😱 On the bright side, I've discovered a new way to heat up the whole house.But seriously folks, this isn't just a hot topic – it's a fire hazard!The warranty card didn't mention anything about impromptu fireworks displays. 🎆
https://docs.rightbrain.ai/llms-full.txt
10/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```
We simply hit **Run Task** and we'll get a response:
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-09-22T13:57:59.528Z/docs/quickstart/deploy-test/run- task.gif" alt="run-task" title="run-task" />
Now let's try adding an accompanying image:
<video src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-10-22T11:38:46.347Z/docs/quickstart/deploy-test/task- run-with-image.mp4" title="task-run-with-image" controls />
## Executing the Task
### Running Your Test
<Tip> **Quick Execute**: Press `⌘↩` on Mac or `Ctrl+Enter` on Windows to run your task instantly </Tip>
<Steps> <Step title="Provide Inputs"> Ensure all required inputs are provided </Step>
<Step title="Click Run"> Click **Run Task** button </Step>
<Step title="Processing"> Processing indicator appears on the right panel </Step>
<Step title="View Results"> Results will display when model completes the task </Step> </Steps>
### Understanding the Response
<Tabs> <Tab title="Rendered View"> **User-Friendly Display**
A formatted presentation of your outputs:
Each field labeled clearly * Values displayed with proper formatting * Nested objects expanded * Lists shown as bullet points * Booleans as checkmarks/crosses Best for quick validation and review. </Tab>
<Tab title="Raw JSON"> **Complete Response Data**
```json { "task_id": "0195d1ff-1f05-437a-95ac", "task_revision_id": "0195d1ff-1f42-f14e", "response": { // Your structured output }, "metadata": {
https://docs.rightbrain.ai/llms-full.txt
11/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"tokens": 2181, "credits": "9.00", "timing": 4.77 } } ```
Best for debugging and integration planning. </Tab>
<Tab title="Metadata"> **Execution Details**
Task IDs: Unique identifiers * Token Usage: Input/output/total * Processing Time: In seconds * Credits Charged: Cost of execution * Model Used: Which LLM processed * Revision: Version that ran </Tab> </Tabs> ## Iterating on Your Task
### Quick Iteration Workflow
<Steps> <Step title="1. Modify"> Edit prompts directly in the task editor. Each change creates a new revision automatically. </Step>
<Step title="2. Test"> Run tests immediately without deployment. Results appear in seconds. </Step>
<Step title="3. Compare"> Use Compare Mode to see results side-by-side across different revisions. </Step> </Steps>
## Next Steps
<CardGroup cols={2}> <Card title="Understanding Results" icon="fa-solid fa-chart-line" href="/docs/quickstart/observe-results"> Learn to interpret execution outputs in detail </Card>
<Card title="API Integration" icon="fa-solid fa-plug" href="/docs/deploying-tasks/api- integration"> Connect tasks to your applications </Card> </CardGroup>
# Understanding Task Results
> Learn how to interpret Task outputs, analyze execution data, and understand performance metrics from your AI tools
Learn how to interpret Task outputs, analyse execution data, and understand performance metrics.
## Response Structure
### Complete Response Format
After running a task, you receive a comprehensive response containing:
https://docs.rightbrain.ai/llms-full.txt
12/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```json { "task_id": "0195d1ff-1f05-437a-95ac-6de8969cb47b", "task_revision_id": "0195d1ff-1f42-f14e-8b65-641baf9dc32e", "response": { "sentiment": "negative", "image_match": true, "image_description": "The image shows a severely damaged toaster..." }, "run_data": { "submitted": { "customer_review": "My toaster exploded during breakfast..." }, "files": [ "be8d9e69-9f2a-4bfd-bbf4-559d6b4eb5d0.jpeg" ] }, "id": "0195d207-32bb-d03d-cfdc-f4516e9222c8", "created": "2025-03-26T10:37:15.687874Z", "input_tokens": 2051, "output_tokens": 130, "total_tokens": 2181, "input_processor_timing": 0.0001468900591135025, "llm_call_timing": 4.773190421052277, "charged_credits": "9.00" } ```
### Key Response Components
Your model output is contained in the `response` field, while the rest of the task response contains other useful information including performance metrics and metadata.
<Tabs> <Tab title="Core Identifiers"> <ParamField path="task_id" type="string"> Unique identifier of the Task definition </ParamField>
<ParamField path="task_revision_id" type="string"> Specific revision that processed this run </ParamField>
<ParamField path="id" type="string"> Unique identifier for this specific execution </ParamField> </Tab>
<Tab title="Response Section"> <ParamField path="response" type="object"> Contains the structured output matching your defined `output_format` </ParamField> </Tab>
<Tab title="Run Data"> <ParamField path="submitted" type="object"> The exact input parameters provided </ParamField>
<ParamField path="files" type="array"> Array of file IDs if images or documents were uploaded </ParamField> </Tab>
<Tab title="Performance Metrics"> <ParamField path="input_tokens" type="number"> Number of tokens in the prompt sent to the model </ParamField>
https://docs.rightbrain.ai/llms-full.txt
13/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<ParamField path="output_tokens" type="number"> Number of tokens in the model's response </ParamField>
<ParamField path="total_tokens" type="number"> Combined token count for billing </ParamField>
<ParamField path="input_processor_timing" type="number"> Time spent processing inputs (seconds) </ParamField>
<ParamField path="llm_call_timing" type="number"> Time spent on the actual LLM call (seconds) </ParamField>
<ParamField path="charged_credits" type="string"> Total credits consumed for this execution </ParamField> </Tab>
<Tab title="Metadata"> <ParamField path="created" type="datetime"> ISO timestamp of when the task was executed </ParamField>
<Info> Additional fields may include error details if execution failed </Info> </Tab> </Tabs>
## Performance Metrics
### Token Usage Analysis
Understanding token consumption in your results:
| **Input Token Components →** | **← Output Token Components** | | --------------------------------- | ----------------------------------- | | • User and system prompt length | • Complexity of output structure | | • Input variable content size | • Verbosity of model responses | | • Injected context (if using RAG) | • Number of fields in output format |
<Warning title="What to Look For" intent="warning"> * Consistent token usage across similar inputs. * Unexpected spikes in token consumption. * Patterns that indicate optimisation opportunities. </Warning>
### Timing Breakdown
Each execution provides timing metrics:
<Tabs> <Tab title="Input Processing"> **Input Processing Time** (`input_processor_timing`)
URL fetching duration
Document extraction time
Image preprocessing
RAG context retrieval </Tab>
<Tab title="LLM Processing">
https://docs.rightbrain.ai/llms-full.txt
14/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**LLM Call Time** (`llm_call_timing`)
* Model inference duration
Varies by model and input size
Primary component of total latency </Tab>
<Tab title="Total Response"> **Total Response Time**
Sum of all processing stages
Includes network latency
Helps identify performance bottlenecks </Tab> </Tabs>
## Cost Tracking
Each execution shows credits consumed (`charged_credits`):
**🧮 Cost Factors**
Model selection - higher-end models consume more credits per token * Token count - both input and output tokens contribute to cost
**⚙ Optimisation**
Compare model performance vs. credit consumption * Simplify prompts to minimise unnecessary tokens * Reduce output verbosity where possible
## Next Steps
<CardGroup cols={2}> <Card title="API Integration" icon="fa-solid fa-plug" href="/docs/deploying-tasks/api- integration"> Connect tasks to your applications via REST API </Card>
<Card title="SDK Integration" icon="fa-solid fa-cube" href="/docs/deploying-tasks/sdk- integration"> Use our TypeScript SDK for easy integration </Card> </CardGroup>
# Authentication
> Authenticate with API Keys or OAuth 2.0. Learn when to use each, and how to create credentials in the Rightbrain dashboard.
Rightbrain supports two authentication methods - **API Keys** and **OAuth 2.0 Clients**.
You can create and manage both under [**Settings → API Clients**] (https://app.rightbrain.ai/preferences?tab=api-clients)
## Which Method to Use
| Method | Best For | Authentication Type | Typical Usage | | ----------------------------------------- | ------------------------------------------- ------- | --------------------------------- | ------------------------------------- | | **API Keys** | Server-to-server automation, internal tools, CI/CD | Long-lived static key | Quick backend integrations or testing |
https://docs.rightbrain.ai/llms-full.txt
15/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
| **OAuth 2.0 (Client Credentials)** | Service-to-service or multi-tenant systems | Short-lived access tokens | Secure access between services | | **OAuth 2.0 (Authorization Code / PKCE)** | User-facing or client apps | User consent and delegated access | Frontend apps, SaaS integrations |
## Creating an API Key
Use **API Keys** for simple, persistent authentication in server environments.
<Steps toc={false}> ### 1. Open Settings → API Clients
Visit your [Rightbrain Dashboard](https://app.rightbrain.ai/preferences?tab=api- clients) and open the **API Clients** tab.
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11- 03T08:07:01.785Z/docs/authentication/authentication/f2b95d65-fd21-47df-ae11- ea1b8e2b5854.png" alt="f2b95d65-fd21-47df-ae11-ea1b8e2b5854" title="f2b95d65-fd21-47df- ae11-ea1b8e2b5854" />
### 2. Click “Create API Key”
Click **+ Create API Key** and enter a descriptive name.
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11- 03T08:08:25.424Z/docs/authentication/authentication/a3e90838-f38c-4444-a0a2- b1320714b7d2.png" alt="a3e90838-f38c-4444-a0a2-b1320714b7d2" title="a3e90838-f38c-4444- a0a2-b1320714b7d2" />
### 3. Copy your key
Once created, copy and store your key securely.
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11- 03T08:09:01.295Z/docs/authentication/authentication/0ad0e703-aafc-4992-8524- f328d82ac820.png" alt="0ad0e703-aafc-4992-8524-f328d82ac820" title="0ad0e703-aafc-4992- 8524-f328d82ac820" />
### 4. Use it in requests
```bash curl -X POST https://api.rightbrain.ai/v1/org/{org_id}/project/{project_id}/task/{task_id}/run \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"task_input": {"data": "Example input"}}' ``` </Steps>
<Callout type="warning"> Never expose API Keys in browser or client-side code.\ For user-facing apps, always use OAuth 2.0. </Callout>
## Creating an OAuth 2.0 Client
OAuth 2.0 is recommended when you need short-lived, revocable tokens, ideal for distributed systems or multi-user applications.
<Steps> ### 1. Open Settings → API Clients
In your [Dashboard](https://app.rightbrain.ai/preferences?tab=api-clients), click **+ Create OAuth Client**.
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain-
https://docs.rightbrain.ai/llms-full.txt
16/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
staging.docs.buildwithfern.com/2025-11- 03T08:09:38.443Z/docs/authentication/authentication/ff8cdeef-0a4a-4f28-bc46- da91e87ac526.png" alt="ff8cdeef-0a4a-4f28-bc46-da91e87ac526" title="ff8cdeef-0a4a-4f28- bc46-da91e87ac526" />
### 2. Choose a grant type
**Client Credentials** for server-to-server integrations * **Authorization Code or PKCE** for user login or delegated access
### 3. Save and copy credentials
After saving, copy your **Client ID** and **Client Secret** - they’ll only appear once.
### 4. Request an access token
```bash curl -X POST https://oauth.rightbrain.ai/oauth2/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=client_credentials" \ -d "client_id=YOUR_CLIENT_ID" \ -d "client_secret=YOUR_CLIENT_SECRET" \ -d "scope=offline_access" ```
Response:
```json { "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "scope": "offline_access" } ``` </Steps>
<Callout type="info"> OAuth tokens are short-lived by design. Refresh or regenerate them periodically depending on your integration. </Callout>
## Quick Reference
| Use Case | Recommended Authentication | | ------------------------------ | ------------------------------------- | | Internal automation or scripts | API Key | | Backend microservices | OAuth 2.0 (Client Credentials) | | User login or delegated access | OAuth 2.0 (Authorization Code / PKCE) | | Local testing and prototyping | API Key |
<CardGroup cols={2}> <Card title="API Integration" href="/docs/deploying-tasks/api-integration" icon="fa- code"> Deploy and call Tasks via REST API </Card>
<Card title="SDK Integration" href="/docs/deploying-tasks/sdk-integration" icon="fa- box"> Use the TypeScript SDK for type-safe access </Card> </CardGroup>
# Creating Tasks via Dashboard
> Build and deploy Tasks using Rightbrain's no-code interface
Learn how to create, configure, and deploy Tasks using the Rightbrain dashboard. This
https://docs.rightbrain.ai/llms-full.txt
17/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
guide walks you through the visual interface designed for non-technical users to build AI-powered tasks without writing code.
<Info> **No coding required. **The Rightbrain dashboard provides an intuitive interface for creating Tasks with AI assistance at every step. </Info>
## Overview of the Task Creation Process
Creating a task involves three quick steps:
<Steps> ### 1. Prompts
Define what your task should do using natural language instructions. Use clear, direct language so the AI understands the task’s goal and context.
### 2. Inputs / Outputs
Configure input variables and output formatting for your Task. This ensures your data flows in and out of the model consistently and predictably.
### 3. Config
Name your Task, add a short description, and set model parameters such as temperature and fallback models. </Steps>
## Step 1: Define Your Prompts
Navigate to **Create Task** and start in the **Prompts** tab.
### User Prompt
The user prompt is where you tell the AI what to do with the input data.
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T13:24:44.821Z/docs/creating-tasks/no-code- dashboard/Screenshot_2025-11-03_at_13.24.37.png" alt="Screenshot 2025-11-03 at 13.24.37" title="Screenshot 2025-11-03 at 13.24.37" />
Start with a simple, focused task description
Start with a basic instruction like: `"Please conduct sentiment analysis on the {customer_review}"` * Variables are automatically detected when you use `{brackets}`
The **Rightbrain Assistant** can enhance your prompt automatically:
Click when the assistant appears * Review the improved version * Choose to "Insert Prompt" or customise further
### System Prompt (Auto-generated)
The Rightbrain Assistant automatically creates an appropriate system prompt that:
Defines the AI's role and expertise * Sets additional context for the task * Ensures consistent behaviour
<Note> The system prompt is generated behind the scenes. You can view and edit it by expanding the "System Prompt" section if needed. </Note>
## Step 2: Configure Input/Output (I/O Tab)
https://docs.rightbrain.ai/llms-full.txt
18/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Next up is the **I/O** tab to define your task's data structure.
### Input Configuration
Your input variables are automatically detected from the prompt:
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T13:29:01.149Z/docs/creating-tasks/no-code- dashboard/Screenshot_2025-11-03_at_13.28.56.png" alt="Screenshot 2025-11-03 at 13.28.56" title="Screenshot 2025-11-03 at 13.28.56" noZoom={false} />
<ParamField path="Input Variables"> Variables from your prompt appear here automatically
For `{customer_review}`:
**Name**: customer\_review
**Type**: String (default)
Click the **pencil icon** to edit variable settings </ParamField>
#### Input Format Options
Click the pencil icon next to any input variable to configure its format:
**📝 String (default)**
Text provided directly when running the task * Use for: reviews, descriptions, questions
**🌐 Web Crawl**
Automatically fetches content from a web page URL * Use for: website analysis, content extraction
**📄 PDFs, PPT and CSVs**
Extracts content from uploaded file(s) * Use for: document analysis, invoice processing
**🔎 Perplexity Search**
Performs a live web search and retrieves a set number of top results * Use for: research tasks, knowledge retrieval, context expansion
<Note> To use URL, document or Perplexity search processing, edit your input variable and select the appropriate format option. The system will automatically handle content extraction when the task runs. </Note>
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T13:39:50.127Z/docs/creating-tasks/no-code- dashboard/Screenshot_2025-11-03_at_13.35.15.png" alt="Screenshot 2025-11-03 at 13.35.15" title="Screenshot 2025-11-03 at 13.35.15" noZoom={false} />
### Image Handling
Images work differently from other inputs - they don't require prompt variables:
**To accept images in your task:**
1. Don't add a variable like `{image}` to your prompt 2. Instead, navigate to the **Images** section in the Input tab 3. Toggle **"Required images"** if images are required for the Task 4. Optionally enable **"Auto convert images"** for optimisation
https://docs.rightbrain.ai/llms-full.txt
19/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T13:40:26.003Z/docs/creating-tasks/no-code- dashboard/Screenshot_2025-11-03_at_13.40.23.png" alt="Screenshot 2025-11-03 at 13.40.23" title="Screenshot 2025-11-03 at 13.40.23" noZoom={false} />
**Example prompt for image tasks:**
```plaintext Analyse this product image and provide quality assessment ```
Note: No `{image}` variable needed - the image is automatically included
### Output Configuration
Define what information the task should return:
<Warning> **Important**: Choose your output modality FIRST before adding any properties. This determines whether your task generates text, images, or audio. </Warning>
<img src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T14:10:46.688Z/docs/creating-tasks/no-code- dashboard/output-modal-720.gif" alt="output-modal-720" title="output-modal-720" />
📝 **Text Output** * Default structured data format * Returns formatted text with defined properties * Use for: analysis, classification, extraction, and summarisation * 🖼 **Image Output** * AI-generated visuals created from prompts * Produces image files directly in your results * Use for: visualisations, designs, artwork, product photos * 🎧 **Audio Output** * AI-generated audio or speech files * Converts model output into spoken responses or sounds * Use for: voice assistants, accessibility, sound generation When using Text output mode, you can define structured data:
<Tabs> <Tab title="Manual Setup"> Click **"Add Property"** to manually define outputs:
1. Enter a property name (e.g., "sentiment") 2. Add a description 3. Select the type (String, Number, Boolean, etc.) 4. Indicate whether the property is an Array 5. For options, add the allowed values using **"Add Enum"** **Schema vs Visual Views:**
Schema: Shows the technical structure * Visual: Displays a user-friendly preview </Tab>
<Tab title="AI Generation"> Click **"Generate Output"** to have the assistant create the structure:
1. The assistant analyses your prompt 2. Suggests relevant output fields 3. You can accept all or individual fields 4. Customise the suggested format as needed </Tab>
https://docs.rightbrain.ai/llms-full.txt
20/200
17/12/2025, 15:08 </Tabs>
docs.rightbrain.ai/llms-full.txt
<Note> **For Image and Audio outputs**: No additional properties are needed. The task will generate the appropriate file type based on your prompts and inputs. </Note>
### Output Types Guide
For **Text output mode**, choose the appropriate type for each field:
### Output Types Guide
For **Text output mode**, choose the appropriate type for each field:
| **Type** | **Description** | **Examples** | | --------------- | ------------------------------------------------- | ----------------- -------------------------------------------- | | **String/Text** | Text fields for freeform responses | Summaries; classifications; extracted text | | **Enum** | String with fixed choice options | positive/negative/neutral; low/medium/high; approved/rejected | | **Boolean** | True/False values for binary decisions | is\_valid; requires\_review; matches\_criteria | | **Number** | Decimal values for numeric data (supports floats) | Scores (0–100.0); percentages; prices | | **Integer** | Whole numbers only | counts; quantities; rank positions |
## Step 3: Configure Settings
Click the **Settings** tab to finalise your task configuration.
### Task Information
<ParamField path="Task Name" required={true}> A descriptive name for your task
Auto-generated example: "Sentiment Analyser"
Requirements: Letters, numbers, spaces, and hyphens only </ParamField>
<ParamField path="Description" required={false}> Explain what your task does and when to use it
Auto-generated example: "Analyses customer reviews to determine overall sentiment, providing classification and justification" </ParamField>
### Model Selection
<ParamField path="Primary Model" required={true}> Select from available models based on your needs:
Vision-capable models for image analysis tasks * Fast models for simple classification * Advanced models for complex reasoning </ParamField>
<ParamField path="Fallback Model" required={false}> Choose a fallback model in case your primary model fails. If a request to your primary model fails 4 times, tasks will be routed to your back up model. </ParamField>
### Temperature Setting
<ParamField path="Temperature" default="30%">
https://docs.rightbrain.ai/llms-full.txt
21/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Controls response consistency (0-100%):
* 0-30%: Highly consistent (classifications, extractions)
30-50%: Balanced (analysis, summaries)
50-100%: Creative (content generation, brainstorming) </ParamField>
<Info> **AI Pre-configuration**: The Rightbrain Assistant automatically generates a name and description, and sets optimal values for model and temperature based on your task type. You can always update these during task creation or later. </Info>
## Using the Rightbrain Assistant
The assistant appears at key moments to help optimise your task:
### Prompt Enhancement
When you write a basic prompt, the assistant can:
Add structured sections (Goal, Context, Input Parameters, Processing Steps) * Include best practices for prompt engineering * Clarify instructions and expected outputs
**Example Enhancement:**
From:
``` Please conduct sentiment analysis on the {customer_review} ```
To:
``` Goal: Conduct a sentiment analysis on a provided customer review to determine the overall sentiment expressed.
Context: Sentiment analysis involves evaluating written text to identify the emotional tone, such as positive, negative, or neutral.
Input Parameters: {customer_review} - The text of the customer review to be analyzed
Processing Steps: 1. Read and understand the customer review 2. Identify emotional indicators and tone 3. Classify the overall sentiment 4. Provide reasoning for the classification ```
### Output Generation
Click **"Generate Output"** and the assistant will:
1. Analyse your prompt to understand the task goal 2. Suggest appropriate output fields with types 3. Add helpful descriptions for each field
Once configured, click "Create Task" to start testing your task instantly.
## Next Steps
<CardGroup cols={2}>
https://docs.rightbrain.ai/llms-full.txt
22/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Card title="Run Your Task" icon="fa-solid fa-play" href="/docs/quickstart/deploy- test"> Test and deploy your task </Card>
<Card title="API Integration" icon="fa-solid fa-code" href="/docs/deploying-tasks/api- integration"> Connect via API when ready </Card> </CardGroup>
# Creating Tasks via API
> Create and manage Tasks directly through the Rightbrain API using our interactive API Reference.
You can create, configure, and deploy **Tasks** programmatically using the Rightbrain API - the same system that powers our no-code dashboard.
Rather than working with static examples, use our **interactive API Reference** to explore every available endpoint and call them live with your own credentials.\ This interface automatically reflects your organization, authentication method, and the latest API updates.
<CardGroup cols={2}> <Card title="Open API Reference" href="/api-reference/api-reference/tasks/list-tasks" icon="fa-terminal"> Try the interactive REST API explorer </Card>
<Card title="Authentication" href="/docs/authentication/authentication" icon="fa-lock"> Learn how to authenticate with API Keys or OAuth 2.0 </Card> </CardGroup>
<Callout type="info"> All Rightbrain Tasks can be created and managed through API - including prompt configuration, input processors, model selection, and structured outputs.
You can test each call instantly inside the API Reference without writing any code. </Callout>
<Steps> ### 1. Choose your authentication method
Use either an **API Key** or **OAuth 2.0 Client** to authenticate your requests.\ See the [Authentication guide](/docs/authentication/authentication) for setup details.
### 2. Open the API Reference
Visit the [interactive API Reference](/api-reference/api-reference/tasks/list-tasks) to view all available endpoints for creating, updating, and running Tasks.
### 3. Make a request
Paste your authentication token, select your organization and project IDs, and execute the request directly from your browser - no setup required. </Steps>
<CardGroup cols={2}> <Card title="API Integration" href="/docs/deploying-tasks/api-integration" icon="fa- code"> Learn how to run your Tasks via API </Card>
<Card title="SDK Integration" href="/docs/deploying-tasks/sdk-integration" icon="fa- box"> Use the TypeScript SDK for type-safe development
https://docs.rightbrain.ai/llms-full.txt
23/200
17/12/2025, 15:08 </Card> </CardGroup>
docs.rightbrain.ai/llms-full.txt
# API Integration
> Run your Rightbrain Tasks anywhere using the REST API.
All Tasks created in your Rightbrain dash are powered by an auto scaling API that can be easily integrated into any external system. They are *composable* by default.
You can run any Task within the dash through a no-code interface to iterate until you are happy with the quality of the output.
Once ready to integrate the Task into another platform or to test out the Task API, just click the **Integrate** button from the Task’s Run page to open the guide.
From there, you can:
<Steps> ### 1. Choose your authentication method
Choose **API Key** or **OAuth 2.0 Client** for the requests. See the [Authentication guide](/docs/authentication/authentication) for details.
### 2. Preview your API call
Rightbrain automatically generates a complete `curl` request for your selected Task, including:
The correct endpoint for your organisation and project * Pre-filled `task_input` parameters from your most recent run * Your chosen authentication token
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-03T08:28:42.289Z/docs/deploying-tasks/api- integration/Screenshot_2025-11-03_at_08.16.18.png" alt="Screenshot 2025-11-03 at 08.16.18" title="Screenshot 2025-11-03 at 08.16.18" />
### 3. Run your Task
Copy the generated request and run it in your terminal, IDE or drop it into any external platform that supports REST API integrations.
### 4. Interactive Docs
Another option is to paste your API Key into the [interactive API Reference](/api- reference/api-reference/tasks/run-task) to call endpoints directly in your browser. Every API endpoint is documented in this section and supports the build out of complex applications based on the Rightbrain stack. </Steps>
<CardGroup cols={2}> <Card title="Authentication" href="/docs/authentication/authentication" icon="fa-lock"> Learn how to use API Keys and OAuth 2.0 clients </Card>
<Card title="API Reference" href="/api-reference/api-reference/tasks/run-task" icon="fa-terminal"> Try the REST API interactively with your credentials </Card> </CardGroup>
# SDK Integration
> Integrate Rightbrain Tasks into your apps using the official SDK and CLI
The **Rightbrain SDK** lets you add production-ready AI capabilities into your TypeScript
https://docs.rightbrain.ai/llms-full.txt
24/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
or JavaScript apps direct from the Tasks you've created in Rightbrain.
No boilerplate, no manual schema handling. It pairs with the **Rightbrain CLI** to generate type-safe client code and simplify authentication.
<Callout type="info" intent="info" title="When to use the SDK"> Use the SDK when building apps or internal tools in TypeScript/Node/Next.js. Use the REST API directly when working from other languages or lightweight back-end scripts. </Callout>
## Quick Start
### 1. Prerequisites
Node.js 18+ * pnpm / npm / yarn * A Rightbrain account with API credentials
### 2. Install the SDK
```bash pnpm add @rightbrain/sdk # or npm install @rightbrain/sdk ```
### 3. Configure Environment
Copy `.env.example` → `.env.local` and add your Rightbrain credentials:
```bash RB_ORG_ID=your_org_id RB_PROJECT_ID=your_project_id RB_OAUTH2_URL=your_oauth_url RB_API_URL=your_api_url RB_CLIENT_ID=your_client_id RB_CLIENT_SECRET=your_client_secret RB_OAUTH2_TOKEN_PATH=/oauth/token ```
In the [Rightbrain Dashboard](https://app.rightbrain.ai/preferences?tab=api-clients), create an **OAuth 2.0 Client** and click **Client.env** to copy the credentials.
<Image src="https://github.com/user-attachments/assets/c3bea789-580c-41a8-90e2- a4bd335d4ebd" alt="Creating a new OAuth client in the Rightbrain dashboard" />
<Image src="https://github.com/user-attachments/assets/469d1714-6b35-4952-8f33- 19f8069699b3" alt="Copying client credentials to environment variables" />
## Setting Up the Demo App
Clone the [Rightbrain SDK Demo](https://github.com/RightbrainAI/rightbrain-sdk-demo):
```bash git clone https://github.com/RightbrainAI/rightbrain-sdk-demo cd rightbrain-sdk-demo pnpm install ```
### Populate Tasks in Your Project
Run the setup script to auto-create demo Tasks in your dashboard:
```bash pnpm run populate-tasks ```
You’ll now see three new Tasks under your project in the dashboard.
https://docs.rightbrain.ai/llms-full.txt
25/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
### Generate the Type-Safe SDK
```bash pnpm run generate-sdk ```
This uses your credentials from `rightbrain.config.ts` to output generated SDK code to `src/generated`.
### Run the App
```bash pnpm run dev ```
Visit [http://localhost:3000](http://localhost:3000) - each demo shows real Task executions, visible in your dashboard’s **Runs** view.
## How It Works
<Steps> ### 1. Authentication
Handled via `access-token.ts` using OAuth2 **Client Credentials Flow**.
```typescript const client = new ClientCredentials({ auth: { tokenHost: process.env.RB_OAUTH2_URL, tokenPath: process.env.RB_OAUTH2_TOKEN_PATH, }, client: { id: process.env.RB_CLIENT_ID, secret: process.env.RB_CLIENT_SECRET, }, }); const accessToken = await client.getToken({}); ```
In production, always:
Secure credentials via environment variables * Refresh and cache tokens * Add authentication to protect your endpoints
### 2. Next.js API Route Example
The SDK integrates cleanly with the Next.js App Router:
```typescript // app/tasks/product-listing/route.ts export async function POST(request: Request) { const token = await getAccessToken(); const body = await request.json();
const rightbrain = RightBrainClient.getInstance({ accessToken: token.token.access_token, baseUrl: process.env.RB_API_URL!, organizationId: process.env.RB_ORG_ID!, projectId: process.env.RB_PROJECT_ID!, });
const response = await rightbrain.runGenerateImageBasedProductListing({ inputs: { product_name: body.product_name }, });
return Response.json(response); }
https://docs.rightbrain.ai/llms-full.txt
26/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```
***
### 3. React Hook + Component Example
Define a reusable hook:
```typescript // hooks/useGenerateImageBasedProductListing.ts export function useGenerateImageBasedProductListing(taskId: string) { const [loading, setLoading] = useState(false); const [data, setData] = useState(null);
const execute = async (inputs) => { setLoading(true); const res = await fetch(`/api/tasks/${taskId}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(inputs), }); const json = await res.json(); setData(json.response); setLoading(false); };
return { execute, data, loading }; } ```
Use it in your UI:
```tsx function ProductListingForm() { const { execute, data, loading } = useGenerateImageBasedProductListing("task-id");
return ( <form onSubmit={(e) => { e.preventDefault(); execute({ product_name: "Headphones" }); }}> <button disabled={loading}>{loading ? "Generating..." : "Generate"}</button> {data && <p>{data.description}</p>} </form> ); } ``` </Steps>
## SDK vs REST API - Which Should You Use?
| Use Case | Recommended | | ----------------------------------------------- | ------------------------------------- ------------------- | | **TypeScript / Node / Next.js apps** | ✅ **SDK** - auto-typed, ergonomic, built-in auth helpers | | **Other languages / frameworks** | ✅ **REST API** - universal, low- level integration | | **No-code workflows or lightweight automation** | ✅ **API** | | **Enterprise apps or internal tools** | ✅ **SDK** for type safety and simplified deployment |
<CardGroup cols={2}> <Card title="API Integration" href="/docs/deploying-tasks/api-integration" icon="fa- code"> Explore the full REST API endpoints </Card>
https://docs.rightbrain.ai/llms-full.txt
27/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Card title="Dashboard" href="/docs/creating-tasks/no-code-dashboard" icon="fa-gauge"> Create and manage Tasks visually </Card> </CardGroup>
# MCP Integration
> Instantly distribute your Rightbrain Tasks into any AI ecosystem using Model Context Protocol.
## Build Once. Available Everywhere.
Rightbrain integrates natively with **Model Context Protocol (MCP)** - the open standard that connects AI systems to external tools and capabilities.
When you enable MCP on a Task, it becomes discoverable and usable by **any MCP-compatible AI app**, including **Claude.ai, Cursor, Windsurf, and others**.
<Image src="https://files.buildwithfern.com/visual-editor-images/rightbrain- staging.docs.buildwithfern.com/2025-11-04T16:55:23.987Z/docs/integrations/mcp-a-2-a- protocols/image.png" alt="Rightbrain Tasks rendered natively inside Claude.ai via MCP Connectors" />
<Callout type="info"> Rightbrain Tasks appear *natively* inside Claude.ai and other MCP-enabled platforms, instantly accessible to millions of users. No SDKs, no plugins, no additional setup. </Callout>
***
## Why It Matters
MCP turns your Task into a **universal AI tool**.
| Without MCP | With MCP | | ------------------------------- | ------------------------------------- | | Works only inside your app | Works across any MCP-enabled platform | | Requires manual API integration | Instantly discoverable by AI systems | | Tied to one ecosystem | Distributed across the AI landscape |
<Callout type="success"> **Build once - deploy everywhere.**\ Every Task you create in Rightbrain automatically becomes a portable, standards- compliant MCP tool. </Callout>
***
## How It Works
<Steps> ### 1. Enable MCP
Open your Task in the Rightbrain dashboard and click **Integrate → MCP**. Toggle **Enable MCP** to make it accessible to all MCP-compatible apps.
### 2. Connect Your Credentials
Select or create an API key for authentication. This key allows MCP clients to securely connect to your Task.
### 3. Use Your Task Anywhere
Your Task now appears directly in MCP-enabled platforms such as Claude.ai, Cursor, and Windsurf. Users can run it as if it were built into those systems - powered entirely by your Rightbrain backend. </Steps>
https://docs.rightbrain.ai/llms-full.txt
28/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
***
## Next Steps
<CardGroup cols={2}> <Card title="Create Your First Task" href="/docs/creating-tasks/no-code-dashboard" icon="fa-bolt"> Build a Task in the Rightbrain dashboard and enable MCP </Card>
<Card title="MCP Documentation" href="https://modelcontextprotocol.io/" icon="fa- globe"> Learn more about the Model Context Protocol </Card> </CardGroup>
# AI Agent Documentation
> LLM-friendly documentation endpoints optimised for AI agents, assistants, and automated systems
## Documentation for AI Agents
Rightbrain provides **specialised documentation endpoints** designed specifically for AI agents, LLMs, and automated systems. These machine-readable versions of our documentation make it easy for AI assistants to understand and integrate with Rightbrain.
<Info> **Perfect for AI Context**
Drop these URLs into Claude, ChatGPT, Cursor, or any AI coding assistant to instantly give them complete knowledge of Rightbrain's capabilities, API, and best practices. </Info>
## Available Endpoints
We maintain two versions of our documentation optimised for AI consumption:
| Endpoint | Description | Best For | | ------------------------------------------------------------------ | ------------------ --------------------------------------------------------- | ----------------------------- ---------------------------------------------------- | | [**Full Documentation**](https://docs.rightbrain.ai/llms-full.txt) | Complete reference with all guides, API references, examples, and use cases | Comprehensive context, building new integrations, understanding the full platform | | [**Concise Documentation**](https://docs.rightbrain.ai/llms.txt) | Streamlined version focused on core concepts and API essentials | Quick lookups, specific tasks, token-constrained scenarios |
## Why This Matters
Traditional documentation is designed for humans browsing web pages. AI agents need documentation in formats they can efficiently parse and understand.
**These endpoints unlock:**
<AccordionGroup> <Accordion title="Instant AI Integration" icon="fa-solid fa-bolt"> Instead of manually explaining Rightbrain to your AI assistant, share a single URL. The AI instantly understands:
How to create and manage Tasks * API endpoints and authentication * Input/output schemas and validation * Best practices and common patterns </Accordion>
https://docs.rightbrain.ai/llms-full.txt
29/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Accordion title="AI-Powered Development" icon="fa-solid fa-code"> Use these docs with AI coding assistants like:
**Cursor** - Add to your project context for intelligent code completion * **GitHub Copilot** - Reference in comments for accurate suggestions * **ChatGPT / Claude** - Paste the URL to enable Rightbrain integration help * **Custom AI Tools** - Build tools that understand Rightbrain automatically </Accordion> <Accordion title="Autonomous Agents" icon="fa-solid fa-robot"> AI agents can reference these endpoints to:
Discover available APIs and capabilities * Generate correct integration code * Troubleshoot implementation issues * Build and deploy Tasks programmatically </Accordion>
<Accordion title="Developer Productivity" icon="fa-solid fa-rocket"> Developers using AI assistants can:
Get accurate code suggestions without explaining the API * Generate working integration code faster * Receive context-aware debugging help * Build features with less manual reference checking </Accordion> </AccordionGroup> ## How to Use
### With AI Coding Assistants
<CodeGroup> ```text Cursor Add to .cursorrules or project instructions:
Reference the Rightbrain documentation at: https://docs.rightbrain.ai/llms-full.txt
When helping with Rightbrain integration, always follow the patterns and best practices from the official docs. ```
```text ChatGPT / Claude Start your conversation with:
Please reference the Rightbrain documentation: https://docs.rightbrain.ai/llms-full.txt
Help me build a Task that [describes your goal]. ```
```text GitHub Copilot Add a comment in your code:
// Reference: https://docs.rightbrain.ai/llms-full.txt // Create a Rightbrain client and run a task ``` </CodeGroup>
### With Autonomous Agents
AI agents can fetch these endpoints directly to understand Rightbrain's capabilities:
```python import requests
# Fetch complete Rightbrain documentation docs = requests.get("https://docs.rightbrain.ai/llms-full.txt").text
https://docs.rightbrain.ai/llms-full.txt
30/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
# Use docs as context for AI agent agent.add_context("rightbrain_docs", docs)
# Agent now understands how to use Rightbrain result = agent.execute("Create a content moderation task") ```
### With RAG Systems
Add to your knowledge base for retrieval-augmented generation:
```typescript import { BrainClient } from '@rightbrain/sdk';
// Fetch docs for embedding const response = await fetch('https://docs.rightbrain.ai/llms-full.txt'); const docs = await response.text();
// Add to vector database await vectorDB.addDocument({ id: 'rightbrain-docs', content: docs, metadata: { source: 'official', type: 'documentation' } }); ```
## What's Included
Both documentation endpoints include:
**Platform Overview** - Core concepts, architecture, and philosophy * **API Reference** - Complete endpoint documentation with examples * **Authentication** - OAuth 2.0 setup and API key management * **Task Management** - Creating, deploying, and managing Tasks * **Integration Guides** - REST API, TypeScript SDK, and MCP protocol * **Use Cases** - Real-world examples and patterns * **Best Practices** - Performance, security, and optimisation tips ## Auto-Generated
<Note> These documentation endpoints are **automatically generated** from our source documentation.
Every time we update our docs, these LLM-friendly versions are regenerated automatically - ensuring AI agents always have access to the latest information. </Note>
## For AI Crawlers
If you're an AI agent or crawler reading this page:
These endpoints are designed for you * Feel free to fetch and cache the documentation * Use it to help developers integrate with Rightbrain * Follow the authentication and API patterns described in the docs * Respect rate limits and best practices <Success> **Documentation that works for both humans and machines.**
We believe AI agents should have first-class access to great documentation. These endpoints make Rightbrain easier to integrate, whether you're a human developer or an AI assistant helping one. </Success>
## Questions?
https://docs.rightbrain.ai/llms-full.txt
31/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Join our [developer community on Slack](https://join.slack.com/t/rightbrain- developers/shared_invite/zt-2mt5nyavm-IiYim_3HzoJki7wr8oeHug) to discuss AI agent integrations, share use cases, or get help building with Rightbrain.
# AI Features Integration
> Build intelligent product features with Rightbrain Tasks that your customers interact with directly
Embed AI capabilities directly into your product to transform user experiences. Rightbrain Tasks make it simple to add intelligent features that empower users and deliver personalised experiences.
## **The Pattern**:
<Steps> <Step title="Trigger"> User triggers an action in your product (e.g. clicks “Generate”, uploads a file, submits a form) </Step>
<Step title="Receive"> Your app captures the user’s input and any contextual data and sends these to a **Rightbrain Task** via API </Step>
<Step title="Run"> The Task processes the request using your defined prompt, schema, and model configuration. </Step>
<Step title="Respond"> A structured JSON result is returned to your app → you display it and continue the user workflow. </Step> </Steps>
## Feature Categories
<Tabs> <Tab title="Content Generation"> <CardGroup cols={2}> <Card title="E-commerce Listings"> **Input:** Product specs, images uploaded by seller
**Output:** SEO-optimised titles, descriptions, bullet points
**Typical user:** Marketplace sellers, e-commerce merchants </Card>
<Card title="Job Postings"> **Input:** Basic job details from employer
**Output:** Complete job description, requirements, benefits
**Typical user:** Companies posting jobs on your platform </Card>
<Card title="Property Listings"> * **Input:** Property details, photos from agent/owner * **Output:** Compelling listing description, highlights, amenities * **Typical user:** Real estate agents, property owners </Card>
<Card title="Profile Bios"> * **Input:** User’s background, experience, interests * **Output:** Professional bio or profile summary * **Customer:** Platform users, freelancers, professionals
https://docs.rightbrain.ai/llms-full.txt
32/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
</Card> </CardGroup> </Tab>
<Tab title="Document Intelligence"> <CardGroup cols={2}> <Card title="Invoice Extraction"> **Input:** Uploaded PDF invoices\ **Output:** Structured JSON with line items, totals, dates\ **Used in:** Accounting, ERP, expense management </Card>
<Card title="Contract Summary"> **Input:** Legal document text\ **Output:** Key clauses, parties, obligations\ **Used in:** Legaltech, procurement, compliance </Card> </CardGroup> </Tab>
<Tab title="Smart Search"> <CardGroup cols={2}> <Card title="Semantic Product Search"> **Input:** Free-text query (“red running shoes under £100”)\ **Output:** Ranked product matches\ **Used in:** E-commerce, marketplaces </Card>
<Card title="Knowledge Retrieval"> **Input:** User question\ **Output:** Extracted answers from internal knowledge base\ **Used in:** Customer support, internal tools </Card>
<Card title="Job matching"> **Input:** CVs or portfolios\ **Output:** Structured profiles \ **Used in:** Recruitment, HR, Gig economy </Card> </CardGroup> </Tab>
<Tab title="Image Enhancement"> <CardGroup cols={2}> <Card title="Auto-Tagging"> **Input:** Uploaded image\ **Output:** Alt text, SEO tags, accessibility metadata\ **Used in:** DAM systems, CMS platforms </Card>
<Card title="Visual Search"> **Input:** Photo of item\ **Output:** Similar product suggestions\ **Used in:** Fashion, furniture, art platforms </Card>
<Card title="Image refinement"> **Input:** Photos of products **Output:** Refined image for product listing **Used in:** Marketplaces, Retailer catalogues </Card> </CardGroup> </Tab> </Tabs>
## Example: E-commerce Product Listing Assistant
**The Feature**: Help sellers create compelling product listings
https://docs.rightbrain.ai/llms-full.txt
33/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**User Flow**:
1. Seller uploads product photos and enters basic info (category, price) 2. Clicks "Generate Listing" 3. Task analyses images and inputs, returns structured JSON with title, description, and bullet points 4. Seller reviews in split-screen editor 5. Edits any sections that need adjustment 6. Clicks "Publish" when satisfied **Why It Works**:
**Stateless by design** – Each generation runs in isolation, ensuring zero data leakage between sellers or listings. * **Predictable every time** – The defined JSON schema guarantees consistent outputs - title, description, and bullets are always present and validated. * **Dynamic and contextual** – The Task adapts to each seller’s product context, generating copy that fits their category, tone, and brand style. * **Composable** – The same Task powers the bulk upload tool, mobile app, and partner APIs - one definition, multiple use cases. * **Production-ready** – Observability, rollback, and version control built in, so every listing is generated with traceability and confidence. <Note> Start with one high-impact feature. Get it working well. Measure the results. Then expand to more use cases. The best AI features feel like natural extensions of your product, not bolt-on tools. </Note>
## Next Steps
<CardGroup cols={2}> <Card title="Build Your First Feature" icon="fa-solid fa-hammer" href="https://app.rightbrain.ai/"> Create a Task and test it with your data </Card>
<Card title="API Documentation" icon="fa-solid fa-code" href="/api-reference"> Technical integration details and examples </Card> </CardGroup>
# Internal AI Tools
> Build AI tools for your teams without engineering bottlenecks-operational leads create, deploy, and iterate independently
Operational teams shouldn't need engineering tickets to build AI tools. With Rightbrain Tasks, you create custom AI capabilities for your teams, deploy them across your existing systems, and update them based on feedback - all without writing code or waiting on developers.
## Why Tasks Work for Internal Tools
Rightbrain Tasks put power back in the hands of operators - no engineering queue required.
**Build Fast, Deploy Faster** - Create tools in natural language, test instantly, and ship with one click. No tickets, no code, no delay. * **One Task, Every Interface** - Use it in Slack, via API, through MCP, or with webhooks - same logic, different surfaces. * **Knows Your Business** - Each Task speaks your language, follows your processes, and respects your rules. * **Iterate at Team Speed** - Update prompts, switch models, refine outputs - all live from the dashboard, instantly applied everywhere. ## Common Internal Tool Patterns
https://docs.rightbrain.ai/llms-full.txt
34/200
17/12/2025, 15:08 <Tabs> <Tab title="Document Intelligence"> <CardGroup cols={2}> <Card title="Invoice Processing"> **Input:** PDF or image upload\ **Output:** Structured JSON with vendor, items, amounts, and dates\ **Used by:** Finance teams for monthly close and AP automation </Card>
docs.rightbrain.ai/llms-full.txt
<Card title="Contract Review"> **Input:** Contract PDF\ **Output:** Structured summary highlighting key terms, obligations, risks, and deadlines\ **Used by:** Legal and procurement teams </Card>
<Card title="Resume Screening"> **Input:** Resume file (PDF, DOCX, etc.)\ **Output:** Scored candidate profile with extracted skills, experience, education, and match reasoning\ **Used by:** Recruitment teams for initial candidate screening </Card>
<Card title="Expense Report Parser"> **Input:** Photo or PDF of receipt\ **Output:** Expense entry with extracted category, amount, and compliance status\ **Used by:** Employees and finance teams for expense submissions </Card> </CardGroup> </Tab>
<Tab title="Content Generation"> <CardGroup cols={2}> <Card title="Meeting Summariser"> **Input:** Meeting transcript or recording\ **Output:** Action items, decisions, and key discussion points\ **Used by:** All teams for post-meeting follow-ups </Card>
<Card title="Knowledge Article Generator"> **Input:** Internal chat logs or support tickets\ **Output:** Drafted FAQ or knowledge base article\ **Used by:** Customer support and operations teams </Card>
<Card title="Brand Compliance Reviewer"> **Input:** Draft content such as blog posts, product copy, or internal announcements\ **Output:** Feedback summary highlighting tone, phrasing, and style deviations\ **Used by:** Marketing, communs, and product teams </Card>
<Card title="Outreach Copy Generator"> **Input:** Prospect details or CRM notes\ **Output:** Personalised outreach message or email draft\ **Used by:** Sales and marketing teams for tailored communication </Card> </CardGroup> </Tab>
<Tab title="Classification & Routing"> <CardGroup cols={2}> <Card title="Support Ticket Classifier"> **Input:** Incoming ticket text\ **Output:** Category, urgency, and suggested resolver group\ **Used by:** Support and triage teams </Card>
<Card title="Lead Qualification Scorer">
https://docs.rightbrain.ai/llms-full.txt
35/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Input:** CRM lead details and engagement history\ **Output:** Qualification score with next-step recommendation\ **Used by:** Sales and marketing operations </Card>
<Card title="Inbound Request Router"> **Input:** Form submission or email content\ **Output:** Department or team assignment with priority tag\ **Used by:** Operations and support teams to route incoming requests efficiently </Card>
<Card title="Document Type Classifier"> **Input:** Uploaded document or PDF\ **Output:** Document category (e.g., invoice, contract, policy) and handling instructions\ **Used by:** Finance, legal, and compliance teams for automated document sorting </Card> </CardGroup> </Tab>
<Tab title="Analysis & Insights"> <CardGroup cols={2}> <Card title="KPI Summariser"> **Input:** Uploaded CSV or API data feed\ **Output:** Summary of key metrics and anomalies\ **Used by:** Department heads and analysts </Card>
<Card title="Code Review Assistant"> **Input:** Pull request diff\ **Output:** Potential issues, style violations, and improvement suggestions\ **Used by:** Engineering teams </Card>
<Card title="Trend Analysis Reporter"> **Input:** Historical performance data or analytics export\ **Output:** Narrative summary of trends, shifts, and contributing factors\ **Used by:** Strategy and analytics teams for periodic reporting </Card>
<Card title="Customer Feedback Synthesiser"> **Input:** Survey responses or support feedback logs\ **Output:** Thematic breakdown with sentiment insights and improvement areas\ **Used by:** Product and customer experience teams </Card> </CardGroup> </Tab> </Tabs>
## Real-World Example: Legal Team Contract Analyser
**The Challenge**: Legal team reviewing 50+ vendor contracts monthly, each taking 45+ minutes to analyse for key terms, risks, and non-standard clauses.
**Task Configuration**:
**Input**: Contract PDF upload * **Context**: Company's standard terms, red flag clauses, approval thresholds * **Output**: Structured JSON with: * Contract type and parties * Payment terms and amounts * Key obligations for both sides * Identified risks with severity * Non-standard clauses highlighted * Recommended approval level **Deployment**:
* Primary: Slack bot in #legal-contracts channel
https://docs.rightbrain.ai/llms-full.txt
36/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt * Secondary: API integration with contract management system * Fallback: Direct dashboard access for ad-hoc reviews
**How Legal Team Uses It**:
1. Procurement drops contract in Slack 2. Legal team member clicks "Analyse Contract" 3. Task returns structured analysis in \~30 seconds 4. Team reviews flagged items, approves or requests changes 5. Analysis automatically logged in contract system **Why It Works**:
**Configurable**: Updated monthly as approval policies change * **Predictable**: Always returns same structured format for downstream logging * **Stateless**: Each contract analysed independently, no cross-contamination * **Composable**: Same Task used in Slack and contract system API <Note> The best internal tools are the ones your team actually uses. Start with one painful, repetitive task. Build a focused tool. Make it work well. Then expand to more use cases as teams see the value. </Note>
## Next Steps
<CardGroup cols={2}> <Card title="Build Your First Tool" icon="fa-solid fa-hammer" href="https://app.rightbrain.ai/"> Create a Task for your team's specific needs </Card>
<Card title="Integration Guide" icon="fa-solid fa-plug" href="/integrations/mcp-a2a"> Deploy to Slack, API, MCP, or webhooks </Card> </CardGroup>
# AI Workflows & Automation
> Orchestrate Tasks across systems to build intelligent multi-step processes with conditional logic and data transformations
Use Rightbrain Tasks as AI building blocks in your workflow automation platform. Tasks are self-contained AI modules that fit naturally into tools like Zapier, Make, or n8n - you provide the orchestration and business logic, Tasks handle the AI processing with predictable, structured outputs.
## Why Tasks are Perfect for Workflows
Tasks are designed as modular AI components that integrate seamlessly into any workflow platform:
**Stateless for Reliable Chaining**: Each Task is fully self-contained. Chain them in any order, run in parallel, or retry individually. No coordination overhead and no drift from previous runs. * **Safe Orchestration**: Schema-validated outputs ensure downstream steps always receive valid data. Your workflow logic remains stable and free from unexpected AI responses. * **Reusable Blocks**: The same Task can be reused across multiple workflows and platforms, giving you consistent performance and full ownership of your AI components. * **Central Monitoring:** Track every Task centrally across all workflows. Update a Task’s prompt or model once in Rightbrain, and improvements automatically apply everywhere it’s used. ## Common Workflow Patterns
<Tabs> <Tab title="Document Processing Pipeline"> ### Multi-Stage Document Intelligence
https://docs.rightbrain.ai/llms-full.txt
37/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**The Problem**: Different document types need different processing, but you don't know the type until you analyse it.
**The Workflow**:
<Steps> <Step title="Upload & Classification"> **Trigger**: Document uploaded to shared drive\ **Task 1**: Document classifier → Returns: "invoice" | "contract" | "receipt" | "other"\ **Logic**: Branch based on classification </Step>
<Step title="Type-Specific Extraction"> **IF Invoice**:
Task: Invoice extractor → vendor, line items, amounts, dates * Validate: Check against PO database * Route: Send to accounting system
**IF Contract**:
Task: Contract analyser → key terms, obligations, risks * Check: Flag if non-standard clauses found * Route: Legal review if flagged, otherwise archive
**IF Receipt**:
Task: Receipt parser → merchant, amount, category * Validate: Check expense policy compliance * Route: Expense system or rejection notice </Step> <Step title="Completion"> Log result in document management system, notify relevant team </Step> </Steps>
**Why This Works**:
Each document processed independently, can run in parallel * Downstream systems always get valid data structure * Same document analysis tools can be used here and ad hoc by team </Tab> <Tab title="Content Creation Chain"> ### Multi-Channel Content Generation
**The Problem**: Need to create content in multiple formats for different channels from single brief.
**The Workflow**:
<Steps> <Step title="Brief Analysis"> **Trigger**: New content brief submitted\ **Task**: Brief analyser → Extracts: topic, audience, key points, tone, channels\ **Output**: Structured requirements for generation </Step>
<Step title="Core Content Creation"> **Task**: Long-form generator → Creates: comprehensive article with sections\ **Task**: Quality scorer → Checks: completeness, tone, accuracy\ **Logic**: IF quality score \< 70% → Regenerate with feedback </Step>
<Step title="Channel Adaptation (Parallel)"> Run simultaneously:
https://docs.rightbrain.ai/llms-full.txt
38/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Task**: Social media adapter → Twitter thread + LinkedIn post * **Task**: Email adapter → Newsletter format with CTA * **Task**: Blog adapter → SEO-optimized blog post with meta * **Task**: Video script adapter → Script with timing and visuals </Step> <Step title="Final Review"> **Task**: Brand compliance checker → Validates: tone, terminology, guidelines\ **Output**: All formats ready for review or auto-publish based on confidence scores </Step> </Steps>
**Why This Works**:
Single brief generates 5+ content pieces * Same core content, optimised for each channel * Parallel adaptation saves time * Quality gates ensure consistency </Tab> <Tab title="Customer Onboarding Automation"> ### Intelligent KYC Processing
**The Problem**: Customer onboarding requires document verification, risk assessment, and multi-level approvals.
**The Workflow**:
<Steps> <Step title="Document Collection"> **Trigger**: Customer submits onboarding form with documents\ **Task**: Document validator → Checks: all required docs present, readable, recent **Logic**: IF incomplete → Request missing items, pause workflow </Step>
<Step title="Identity Verification"> **Task**: ID extractor → Name, DOB, address, ID number from government ID **Task**: Selfie matcher → Compares ID photo to selfie (if required) **Logic**: IF mismatch > threshold → Flag for manual review </Step>
<Step title="Business Verification (Parallel)"> Run simultaneously:
**Task**: Business doc analyser → Registration number, directors, ownership * **Task**: Address verifier → Confirms business address validity * **Task**: Industry classifier → Business type and category </Step> <Step title="Risk Assessment"> **Task**: Risk scorer → Calculates score based on: industry, geography, ownership structure, transaction patterns\ **Logic**: Route based on risk level:
Low risk → Auto-approve * Medium risk → Compliance review queue * High risk → Senior compliance + legal review </Step>
<Step title="Account Creation"> **IF Approved**: Create account, send welcome email, enable services\ **IF Rejected**: Generate rejection letter with reasons, log for compliance </Step> </Steps>
**Why This Works**:
https://docs.rightbrain.ai/llms-full.txt
39/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Consistent compliance checking across all customers * Parallel verification reduces onboarding time * Risk-based routing ensures appropriate oversight * Complete audit trail for regulatory requirements </Tab> <Tab title="Lead Intelligence Pipeline"> ### Sales Lead Enrichment & Routing
**The Problem**: Raw leads need research, scoring, personalisation before sales engagement.
**The Workflow**:
<Steps> <Step title="Lead Capture"> **Trigger**: Form submission or email inquiry\ **Task**: Contact extractor → Email, company, role from unstructured input\ **Task**: Intent classifier → Request type: demo, pricing, info, partner </Step>
<Step title="Company Research (Parallel)"> Run simultaneously:
**Task**: Firmographic enricher → Size, industry, revenue, tech stack * **Task**: Competitive analyzer → Current vendors, pain points mentioned * **Task**: News monitor → Recent funding, growth signals, leadership changes </Step> <Step title="Lead Scoring"> **Task**: Qualification scorer → Combines: company fit, intent signals, engagement level\ **Output**: Score (0-100) + qualification reasoning **Logic**:
Score > 75 → Hot lead, immediate routing * Score 50-75 → Warm lead, nurture sequence * Score \< 50 → Marketing qualified, content drip </Step>
<Step title="Personalisation"> **Task**: Outreach generator → Creates personalised email referencing:
Company's industry and challenges * Recent news or growth signals * Relevant case studies * Specific product fit </Step> <Step title="Sales Routing"> Update CRM with:
Enriched company data * Lead score and reasoning * Personalised outreach copy * Suggested next actions
Assign to rep based on: territory, industry expertise, account size </Step> </Steps>
**Why This Works**:
Sales reps get fully researched, scored leads with personalized outreach ready * Parallel research reduces enrichment time * Consistent scoring methodology across all leads * Same Tasks reused for: inbound leads, event attendees, list uploads </Tab> 40/200
Sales reps get fully researched, scored leads with personalized outreach ready * Parallel research reduces enrichment time * Consistent scoring methodology across all leads * Same Tasks reused for: inbound leads, event attendees, list uploads </Tab> 40/200
17/12/2025, 15:08 </Tabs>
docs.rightbrain.ai/llms-full.txt
## Platform Integration
### Workflow Platforms
Rightbrain Tasks work with any platform that can make HTTP requests:
<CardGroup cols={2}> <Card title="Zapier" icon="fa-solid fa-zap"> Use Webhooks by Zapier action, pass Task outputs between steps </Card>
<Card title="Make (Integromat)" icon="fa-solid fa-infinity"> HTTP modules with JSON transformation capabilities </Card>
<Card title="n8n" icon="fa-solid fa-network-wired"> HTTP Request nodes with credential management </Card> </CardGroup>
<Note> The best workflows are the ones that eliminate manual handoffs between systems. Start by mapping your current process, identify where AI can make decisions or extract data, then build the Task chain that automates it. </Note>
## Next Steps
<CardGroup cols={2}> <Card title="Build Your Tasks" icon="fa-solid fa-hammer" href="https://app.rightbrain.ai/"> Create the AI building blocks for your workflow </Card>
<Card title="API Integration" icon="fa-solid fa-code" href="/api-reference"> Integration guide for workflow platforms </Card> </CardGroup>
# Agent Enhancement with Tasks
> Give AI agents reliable tools for data access, system operations, and specialized processing through Rightbrain Tasks
AI agents excel at reasoning and conversation but lack the tools to access your data, interact with your systems, or execute specialised operations.
Rightbrain Tasks become the agent's toolkit - reliable, specialised capabilities the agent can invoke when needed.
The agent decides which tool to use and when, Tasks ensure consistent execution.
## Why Tasks Work for Agent Enhancement
Tasks give agents capabilities they can't have natively:
**Reliable Tools**: Agents can rely on Tasks returning consistent, structured data. No parsing surprises or format variations - just dependable tools the agent can reason with. * **Any Call Order**: The agent determines which Tasks to call and in what order, based on conversation context. Each Task works independently without needing coordination. * **Reuse Across Use Cases**: Tasks built for internal tools or workflows can also be used by agents. The same invoice extractor can power an expense workflow, Slack bot, and agent toolkit alike. * **Your Context**: Tasks understand your terminology, follow your business rules, and connect to your systems. Agents gain organisation-specific capabilities, not generic tools. 41/200
**Reliable Tools**: Agents can rely on Tasks returning consistent, structured data. No parsing surprises or format variations - just dependable tools the agent can reason with. * **Any Call Order**: The agent determines which Tasks to call and in what order, based on conversation context. Each Task works independently without needing coordination. * **Reuse Across Use Cases**: Tasks built for internal tools or workflows can also be used by agents. The same invoice extractor can power an expense workflow, Slack bot, and agent toolkit alike. * **Your Context**: Tasks understand your terminology, follow your business rules, and connect to your systems. Agents gain organisation-specific capabilities, not generic tools. 41/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
## Agent + Task Patterns
<Tabs> <Tab title="Research Assistant"> ### Information Gathering & Analysis
**The Scenario**: Executive asks "What's happening with our enterprise customers this quarter?"
**Agent Reasoning Process**:
1. Identifies needed information: customer data, revenue trends, support patterns 2. Determines which Tasks to call 3. Synthesises results into insights
**Tasks Used**:
<Steps> <Step title="Customer Segment Query"> **Agent calls**: Customer data Task\ **Input**: Segment="enterprise", timeframe="Q1 2025"\ **Output**: List of enterprise customers with ARR, growth, health scores\ **Agent uses**: Identifies high-value and at-risk accounts </Step>
<Step title="Revenue Analysis"> **Agent calls**: Revenue trend Task\ **Input**: Customer IDs from previous Task\ **Output**: Revenue by customer, MoM growth, forecast\ **Agent uses**: Spots patterns in growth/decline </Step>
<Step title="Support Pattern Check"> **Agent calls**: Support ticket analyser Task\ **Input**: Same customer IDs\ **Output**: Ticket volume, sentiment, top issues\ **Agent uses**: Correlates support issues with revenue trends </Step>
<Step title="Synthesis"> **Agent reasoning**: Combines all data, identifies:
3 customers showing churn risk (declining usage + negative support sentiment) * 5 customers expanding (increased usage + feature requests) * 2 customers perfect for case studies (high satisfaction + ROI achieved)
**Agent response**: Structured summary with specific recommendations </Step> </Steps>
**Why This Works**:
**Agent decides** which Tasks to call based on question * **Tasks provide** reliable, structured data * **Agent synthesises** insights across multiple data sources * **Composable**: Same Tasks work in dashboards, workflows, and this agent </Tab> <Tab title="Customer Service Agent"> ### Issue Resolution with Actions
**The Scenario**: Customer says "I never received my order from last week, can you help?"
**Agent + Task Interaction**:
<Steps> <Step title="Context Gathering">
https://docs.rightbrain.ai/llms-full.txt
42/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Agent thinks**: Need to identify customer and find order\ **Agent calls**: Customer lookup Task\ **Input**: Email from conversation context\ **Output**: Customer ID, account status, recent orders\ **Agent sees**: Order #12345 placed 8 days ago, shipped 6 days ago </Step>
<Step title="Order Investigation"> **Agent calls**: Order tracking Task\ **Input**: Order ID from previous lookup\ **Output**: Carrier, tracking number, status="delivered 2 days ago", delivery location\ **Agent sees**: Package marked delivered but customer says not received </Step>
<Step title="Policy Check"> **Agent calls**: Refund policy Task\ **Input**: Order details, customer tier, issue type\ **Output**: Eligible for replacement or refund, no signature required, falls within policy window\ **Agent decides**: Offer replacement or refund per policy </Step>
<Step title="Resolution Execution"> **Agent asks customer**: "Would you prefer a replacement or refund?"\ **Customer chooses**: Refund\ **Agent calls**: Refund processing Task\ **Input**: Order ID, amount, reason="not received"\ **Output**: Refund ID, processed successfully, will appear in 3-5 days\ **Agent confirms**: "I've processed your refund..." </Step>
<Step title="Documentation"> **Agent calls**: Ticket creation Task\ **Input**: Full conversation, resolution, refund ID\ **Output**: Ticket created with complete history\ **Agent completes**: Issue resolved with full audit trail </Step> </Steps>
**Why This Works**:
**Agent orchestrates** appropriate sequence based on conversation * **Tasks provide** data and execute actions reliably * **Predictable outputs** let agent make informed decisions * **Stateless Tasks** work in any order agent needs </Tab> <Tab title="Development Assistant"> ### Code-Aware Helper
**The Scenario**: Developer asks "Why is the payment processing so slow?"
**Agent + Task Flow**:
<Steps> <Step title="Code Analysis"> **Agent calls**: Codebase search Task\ **Input**: Query="payment processing"\ **Output**: Files, functions, dependencies related to payments\ **Agent identifies**: Payment service code and database queries </Step>
<Step title="Performance Data"> **Agent calls**: Performance metrics Task\ **Input**: Service="payment", timeframe="last 7 days"\ **Output**: P50/P95/P99 latencies, error rates, throughput\ **Agent sees**: P95 latency spiked 3 days ago from 200ms to 2000ms </Step>
https://docs.rightbrain.ai/llms-full.txt
43/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Step title="Recent Changes"> **Agent calls**: Git history Task\ **Input**: Service="payment", since="3 days ago"\ **Output**: Commits, PR descriptions, changed files\ **Agent spots**: Database query modification 3 days ago </Step>
<Step title="Query Analysis"> **Agent calls**: Database query analyser Task\ **Input**: Query from the recent change\ **Output**: Execution plan, missing indexes, table scans identified\ **Agent finds**: Missing index causing full table scan </Step>
<Step title="Recommendation"> **Agent synthesises**: "The slowdown started after PR #453 which added a new query without an index. The query is doing a full table scan on the transactions table (15M rows). Adding an index on (user\_id, created\_at) should fix it."\ \ **Agent suggests**: SQL to create index, estimates improvement </Step> </Steps>
**Why This Works**:
**Multiple specialised Tasks** provide different types of data * **Agent connects** the dots across code, metrics, and history * **Same Tasks** used by: this agent, internal tools, CI/CD workflows </Tab> <Tab title="Content Creation Assistant"> ### Multi-Step Content Generation
**Scenario:** Marketing asks: "Create a blog post about our new enterprise features"
**Agent Process:**
<Steps> <Step title="Research"> **Agent calls (in parallel):**
Changelog Task → Extracts new features list * Customer feedback Task → Identifies main pain points addressed * Competitor analysis Task → Summarises differentiators * SEO keyword Task → Suggests target keywords **Agent synthesises:** Combines findings into structured research notes </Step>
<Step title="Outline Creation"> **Agent creates:** A blog post outline using research data
Intro framed around customer pain points * Sections for each new feature with differentiators * Use cases supported by customer feedback * SEO-optimised headers and structure </Step> <Step title="Draft Compilation"> **Agent compiles:** The full blog post using gathered insights
Inputs: Outline + research notes + brand guidelines * Calls: Long-form content Task for paragraph generation per section * Merges and edits: Assembles coherent draft from Task outputs * Ensures flow, tone, and context continuity </Step> <Step title="Optimisation">
https://docs.rightbrain.ai/llms-full.txt
44/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Agent calls (in parallel):**
SEO scorer Task → Checks keyword density, meta tags * Readability Task → Evaluates structure and grade level * Brand compliance Task → Validates tone and terminology
**Agent reviews:** Revises or regenerates specific sections if issues found </Step>
<Step title="Multi-Format Adaptation"> **Agent calls:** Adaptation Tasks for
Social media posts (LinkedIn, X) * Email newsletter snippet * Sales enablement summary
**Agent compiles:** Final content package for publication and distribution </Step> </Steps>
**Why It Works:**
Tasks handle specialised sub-operations (research, scoring, tone checks) * Agent orchestrates and synthesises all data into the final cohesive article * Same Tasks can be reused in automated workflows, internal tools, and other agents </Tab> </Tabs> Ready to build and integrate Tasks into your existing agent?
## Next Steps
<CardGroup cols={2}> <Card title="MCP Setup Guide" icon="fa-solid fa-plug" href="/integrations/mcp-a2a"> Configure Model Context Protocol integration </Card>
<Card title="API Reference" icon="fa-solid fa-code" href="/api-reference"> Function calling integration details </Card> </CardGroup>
<Note> The best agent enhancements start with 3-5 focused Tasks that address clear needs. Agent orchestration + reliable Tasks = powerful combination. </Note>
# Growth Teams Guide
> Task templates for lead qualification, personalisation, and conversion optimization
Growth teams use Rightbrain Tasks to automate lead qualification, personalisation, and conversion workflows. Below are ready-to-use task templates with configuration details.
<Tabs> <Tab title="Lead Qualification"> <CardGroup cols={1}> <Card title="ICP Scoring"> **Purpose:** Evaluate companies against ideal customer profile criteria
**Inputs:**
Company name or domain * Company data (employee count, industry, revenue) * Your ICP criteria document
**Task Instructions:**
https://docs.rightbrain.ai/llms-full.txt
45/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
``` Score {company_name} against our ICP criteria. Evaluate firmographic fit, technographic signals, and market positioning based on {company_data} and {icp_criteria}. Return a score (0-100) with reasoning for each criterion. ```
**Outputs:**
ICP fit score (0-100) * Scoring breakdown by criterion * Qualification recommendation
**Integration:** Trigger on new lead creation, update CRM score field </Card>
<Card title="Intent Analysis"> **Purpose:** Identify buying signals from engagement patterns
**Inputs:**
Recent engagement history * Interaction timestamps * Account context
**Task Instructions:**
``` Analyse {engagement_history} for {prospect_name} to identify buying intent signals. Look for patterns indicating research phase, solution comparison, or purchase readiness based on {interaction_timestamps} and {account_context}. Classify intent level and recommend next action. ```
**Outputs:**
Intent level (High/Medium/Low) * Key signals identified * Recommended next action
**Integration:** Weekly batch or real-time on significant engagement </Card>
<Card title="Data Enrichment"> **Purpose:** Enhance lead records with company intelligence
**Inputs:**
Company domain or LinkedIn URL * Basic contact information
**Task Instructions:**
``` Research {company_domain} and enrich the lead record for {contact_name}. Find: recent news, funding announcements, technology stack, key initiatives, and potential pain points relevant to our solution. ```
**Outputs:**
Company overview and developments * Technology stack insights * Recommended talking points
**Integration:** On new lead creation or before sales handoff </Card> </CardGroup> </Tab>
https://docs.rightbrain.ai/llms-full.txt
46/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Tab title="Personalisation"> <CardGroup cols={1}> <Card title="Cold Email Generation"> **Purpose:** Create personalised outreach messages tailored to prospect context
**Inputs:**
Prospect name, title, company * Company research * Your product value proposition * Email template guidelines **Task Instructions:**
``` Write a personalised cold email to {prospect_name} at {company_name}. Use {company_research} to reference their recent developments and connect to specific pain points that {value_proposition} addresses. Follow {email_guidelines} for tone and structure. Max 120 words. ```
**Outputs:**
Email subject line * Email body (personalised) * Suggested send time
**Integration:** After lead qualification, queue in email sequencer </Card>
<Card title="Social Messaging"> **Purpose:** Craft platform-specific engagement for LinkedIn and other channels
**Inputs:**
Prospect profile information * Recent prospect activity or posts * Campaign objectives
**Task Instructions:**
``` Create a LinkedIn connection request message or InMail for {prospect_name} based on {prospect_profile}. Reference something specific from {recent_activity} and align with {campaign_objectives}. Keep under 300 characters for connection requests. ```
**Outputs:**
Platform-optimised message * Engagement approach recommendation
**Integration:** Manual or automated based on lead score </Card> </CardGroup> </Tab>
<Tab title="Analytics & Testing"> <CardGroup cols={1}> <Card title="A/B Test Analysis"> **Purpose:** Determine statistical significance and winning variants
**Inputs:**
Test variant data (impressions, clicks, conversions) * Test duration * Significance threshold
https://docs.rightbrain.ai/llms-full.txt
47/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Task Instructions:**
``` Analyse {test_variant_data} for statistical significance using {significance_threshold}. Calculate confidence intervals based on {test_duration}, determine if we have a clear winner, and recommend whether to continue testing or declare a winner. ```
**Outputs:**
Statistical significance calculation * Winning variant (if applicable) * Recommendation to continue or conclude
**Integration:** Scheduled analysis (daily/weekly) </Card>
<Card title="Feedback Analysis"> **Purpose:** Extract themes, sentiment, and insights from customer feedback
**Inputs:**
Survey responses or feedback text * NPS scores (if available) * Customer segment information
**Task Instructions:**
``` Analyse {survey_responses} from {customer_segment}. Identify common themes, sentiment patterns, and actionable insights. Include {nps_scores} in the analysis. Group by positive/negative feedback and prioritise by frequency and impact. ```
**Outputs:**
Top themes by frequency * Sentiment breakdown * Prioritized action items
**Integration:** Weekly batch or after survey completion </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}> <Card title="Explore API Docs" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="Create Tasks" icon="fa-solid fa-gear" href="/docs/creating-tasks/no-code- dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# Operations Teams Guide
> Task templates for document processing, quality control, and workflow orchestration
Operations teams use Rightbrain Tasks to automate document processing, quality control, and workflow orchestration. Below are ready-to-use task templates with configuration
https://docs.rightbrain.ai/llms-full.txt
48/200
17/12/2025, 15:08 details.
docs.rightbrain.ai/llms-full.txt
<Tabs> <Tab title="Document Processing"> <CardGroup cols={1}> <Card title="Invoice Data Extraction"> **Purpose:** Extract structured data from invoice documents for automated entry and reconciliation
**Inputs:**
Invoice document (PDF or image) * Known vendor list for validation * Purchase order references * Required field specifications **Task Instructions:**
``` Extract structured data from {invoice_document}. Identify vendor information, invoice metadata, line items with descriptions and amounts, and calculate totals. Validate against {vendor_list} and cross-reference with {purchase_order} if available. Return extraction confidence scores for each field. ```
**Outputs:**
Vendor details (name, address, tax ID) * Invoice metadata (number, date, terms) * Line items with descriptions and amounts * Totals breakdown (subtotal, tax, total) * Extraction confidence scores
**Integration:** Document upload to storage system or email receipt, create ERP entry, flag exceptions for review </Card>
<Card title="Contract Analysis"> **Purpose:** Identify key terms, obligations, and risk clauses in legal contracts
**Inputs:**
Contract document (PDF) * Contract type (e.g., NDA, MSA, SOW) * Required clause checklist * Risk keywords list **Task Instructions:**
``` Analyse {contract_document} and extract key terms. Identify all parties, contract duration, financial terms, obligations, and liability clauses. Flag any terms in {risk_keywords} and verify presence of {required_clauses}. Extract renewal dates and termination conditions. ```
**Outputs:**
Party identification * Term duration and renewal dates * Financial obligations * Key clauses and obligations * Risk flags and missing clauses
**Integration:** Contract uploaded to document management system, update contract database, alert legal team of risks </Card>
<Card title="Form Processing">
https://docs.rightbrain.ai/llms-full.txt
49/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Purpose:** Extract and validate data from applications, submissions, and standardised forms
**Inputs:**
Form document (PDF, image, or scanned) * Form template specification * Validation rules * Required fields list **Task Instructions:**
``` Extract all field values from {form_document} based on {form_template}. Normalise data formats, validate against {validation_rules}, check completeness against {required_fields}, and assign a completeness score. Flag any fields that fail validation or are illegible. ```
**Outputs:**
Extracted field values * Data normalised to standard formats * Completeness score (0-100) * Validation failures * Fields requiring manual review
**Integration:** Form submission via email, portal, or scan, create record in database, route to review queue if incomplete </Card> </CardGroup> </Tab>
<Tab title="Quality Control"> <CardGroup cols={1}> <Card title="Data Validation"> **Purpose:** Check completeness, accuracy, and compliance of datasets against business rules
**Inputs:**
Dataset to validate (CSV or structured data) * Validation rules and thresholds * Reference data for lookups * Required field specifications **Task Instructions:**
``` Validate {dataset} against {validation_rules}. Check data structure, required fields, format compliance, and cross-field consistency. Identify duplicates, outliers, and business rule violations. Compare against {reference_data} for accuracy. Provide field-by-field analysis with row/column references. ```
**Outputs:**
Quality score (0-100) * Field-by-field validation results * Specific issues with row/column references * Remediation suggestions * Summary statistics
**Integration:** Data import, batch processing job, accept clean data, route exceptions for correction </Card>
<Card title="Compliance Verification"> **Purpose:** Ensure operational processes and documentation meet regulatory
https://docs.rightbrain.ai/llms-full.txt
50/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
requirements
**Inputs:**
Process documentation or records * Regulatory requirements checklist * Compliance standards * Previous audit findings **Task Instructions:**
``` Review {process_documentation} for compliance with {regulatory_requirements}. Verify all required elements from {compliance_standards} are present and properly documented. Cross-check against {audit_findings} to ensure previous issues are resolved. Flag any gaps or non-compliant areas. ```
**Outputs:**
Compliance status by requirement * Missing or inadequate documentation * Non-compliant areas flagged * Remediation recommendations * Audit readiness score
**Integration:** Scheduled compliance reviews, generate compliance report, create remediation tickets </Card>
<Card title="Anomaly Detection"> **Purpose:** Identify unusual patterns, outliers, and deviations in operational data
**Inputs:**
Operational data (transactions, metrics, logs) * Historical baseline data * Threshold definitions * Known anomaly patterns **Task Instructions:**
``` Analyse {operational_data} against {baseline_data} to identify anomalies. Look for statistical outliers, pattern deviations, trend breaks, and threshold violations based on {threshold_definitions}. Compare to {known_patterns} to classify anomaly type. Assess severity and recommend investigation priority. ```
**Outputs:**
Detected anomalies with severity ratings * Statistical analysis (standard deviations, confidence) * Anomaly classification * Investigation priority * Potential root causes
**Integration:** Real-time data stream or scheduled batch analysis, alert operations team, create investigation ticket </Card> </CardGroup> </Tab>
<Tab title="Workflow Orchestration"> <CardGroup cols={1}> <Card title="Request Routing"> **Purpose:** Classify and route requests to appropriate teams based on content, urgency, and capacity
https://docs.rightbrain.ai/llms-full.txt
51/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Inputs:**
Request description and details * Request metadata (requester, timestamp, source) * Team capabilities and workloads * SLA requirements by request type **Task Instructions:**
``` Classify {request_description} by type and assess urgency. Match required skills against {team_capabilities}, consider current {team_workloads}, and apply {sla_requirements}. Determine optimal team assignment, priority level, and estimated resolution time. Identify any escalation triggers. ```
**Outputs:**
Team assignment * Priority level (Critical/High/Medium/Low) * Request classification * Estimated resolution time * Escalation triggers and conditions
**Integration:** New ticket creation, assign to team queue, set SLA timer, notify assigned team </Card>
<Card title="Approval Workflow"> **Purpose:** Evaluate requests against approval criteria and route for appropriate authorisation
**Inputs:**
Request details and justification * Approval criteria and thresholds * Approver hierarchy * Historical approval patterns **Task Instructions:**
``` Evaluate {request_details} against {approval_criteria}. Determine if request meets auto-approval thresholds or requires manual review. Identify appropriate approver from {approver_hierarchy} based on request value, type, and policy. Recommend approval action with supporting rationale. ```
**Outputs:**
Approval recommendation (Auto-approve/Route for review/Reject) * Assigned approver * Criteria evaluation results * Supporting rationale * Required documentation checklist
**Integration:** Request submission requiring approval, auto-approve if criteria met, route to approver, log decision </Card>
<Card title="Capacity Planning"> **Purpose:** Analyse utilisation data and resource allocation to optimise operational capacity
**Inputs:**
* Current utilisation metrics * Historical demand patterns
https://docs.rightbrain.ai/llms-full.txt
52/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* Resource capacity data * Upcoming projects or initiatives
**Task Instructions:**
``` Analyse {utilisation_metrics} and {demand_patterns} to forecast capacity needs. Compare against {resource_capacity} to identify gaps or surplus. Factor in {upcoming_projects} and seasonal trends. Recommend resource adjustments, hiring needs, or process optimisations. ```
**Outputs:**
Utilisation analysis by team/resource * Capacity gap identification * Demand forecast (30/60/90 days) * Resource allocation recommendations * Optimisation opportunities
**Integration:** Scheduled weekly/monthly analysis, generate capacity report, alert management of constraints </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}> <Card title="Create a Task" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="API Integration" icon="fa-solid fa-gear" href="/docs/creating-tasks/no- code-dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# Financial & Compliance Guide
> Task templates for KYC verification, transaction monitoring, and regulatory reporting
Financial and compliance teams use Rightbrain Tasks to automate KYC verification, transaction monitoring, and regulatory reporting. Below are ready-to-use task templates with configuration details.
<Tabs> <Tab title="KYC & Onboarding"> <CardGroup cols={1}> <Card title="Identity Document Verification"> **Purpose:** Validate identity documents for authenticity and extract customer data for KYC compliance
**Inputs:**
Identity document image (passport, licence, ID card) * Document type specification * Customer-provided information * Verification requirements checklist **Task Instructions:**
``` Verify the authenticity of {document_image} as a {document_type}. Extract all personal data including name, date of birth, document number, and expiry date.
https://docs.rightbrain.ai/llms-full.txt
53/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Compare extracted data against {customer_information} and check for tampering indicators. Calculate confidence scores for authenticity and data accuracy based on {verification_requirements}. ```
**Outputs:**
Document validity assessment (Pass/Fail/Review) * Extracted personal data (structured) * Match confidence scores by field * Tampering or authenticity risk flags * Overall compliance status
**Integration:** Customer onboarding submission, update KYC record, route to manual review if flagged </Card>
<Card title="Customer Risk Scoring"> **Purpose:** Assess customer risk profiles based on multiple factors for onboarding and ongoing monitoring
**Inputs:**
Customer profile data * Transaction history (if existing customer) * Geographic and jurisdiction information * Business type and industry * Source of funds declaration **Task Instructions:**
``` Assess the risk profile of customer based on {customer_profile}. Evaluate {transaction_history}, geographic risk from {jurisdiction_info}, business type from {industry_data}, and {source_of_funds}. Apply risk factors for PEP status, high-risk jurisdictions, business complexity, and transaction patterns. Assign risk rating and recommend monitoring tier. ```
**Outputs:**
Risk rating (High/Medium/Low) * Risk factor breakdown with scores * PEP and sanctions screening status * Recommended monitoring tier * Enhanced due diligence triggers
**Integration:** New customer onboarding, periodic review, set monitoring tier, trigger EDD if high-risk </Card>
<Card title="Sanctions Screening"> **Purpose:** Check customers and transactions against global watchlists and PEP databases
**Inputs:**
Customer name and aliases * Date of birth and nationality * Address and jurisdiction * Business or entity name (if applicable) **Task Instructions:**
``` Screen {customer_name} (DOB: {date_of_birth}, nationality: {nationality}) against global sanctions lists, PEP databases, and adverse media. Include {entity_name} if applicable. Check all name variations and aliases from {customer_aliases}. Flag any matches with confidence scores and provide match
https://docs.rightbrain.ai/llms-full.txt
54/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
details. Consider {jurisdiction} for relevant list prioritisation. ```
**Outputs:**
Screening result (Clear/Potential Match/Match) * Match details with confidence scores * Watchlist sources (OFAC, UN, EU, etc.) * PEP status and risk indicators * Adverse media findings
**Integration:** New customer onboarding, transaction processing, block transaction if match, escalate to compliance </Card> </CardGroup> </Tab>
<Tab title="Transaction Monitoring"> <CardGroup cols={1}> <Card title="Transaction Pattern Analysis"> **Purpose:** Identify unusual transaction patterns that may indicate fraud or money laundering
**Inputs:**
Transaction details (amount, type, parties) * Customer historical transaction patterns * Account baseline behaviour * Risk thresholds and rules **Task Instructions:**
``` Analyse {transaction_details} against {customer_history} to identify anomalies. Compare transaction amount, frequency, counterparties, and timing against {baseline_behaviour}. Check for suspicious patterns including structuring, unusual beneficiaries, velocity spikes, and geographic anomalies. Apply {risk_thresholds} to flag concerning activity. ```
**Outputs:**
Risk assessment (High/Medium/Low/Clear) * Suspicious pattern indicators identified * Deviation analysis from baseline * Red flag summary * Recommended action (Alert/Monitor/Clear)
**Integration:** Real-time transaction processing or batch analysis, create alert for investigation, update risk score </Card>
<Card title="Threshold Monitoring"> **Purpose:** Flag transactions that exceed regulatory reporting thresholds or internal limits
**Inputs:**
Transaction amount and currency * Transaction type and category * Applicable thresholds (CTR, STR, internal) * Customer and account context **Task Instructions:**
``` Evaluate {transaction_amount} in {currency} for transaction type {transaction_type} against {regulatory_thresholds}. Check if amount exceeds CTR thresholds, internal
https://docs.rightbrain.ai/llms-full.txt
55/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
limits, or triggers suspicious activity reporting requirements. Consider {account_context} including related transactions and aggregation rules. Flag if threshold exceeded and identify reporting obligations. ```
**Outputs:**
Threshold status by regulation * Reporting obligations triggered * Aggregated transaction amounts (if applicable) * Filing requirements (CTR, SAR, etc.) * Deadline for reporting
**Integration:** Transaction approval workflow, generate regulatory filing, alert compliance team </Card>
<Card title="Cross-Border Transaction Validation"> **Purpose:** Verify international transfers meet compliance and regulatory requirements
**Inputs:**
Transaction details (sender, recipient, amount) * Originating and destination countries * Purpose of payment * Supporting documentation **Task Instructions:**
``` Validate cross-border transaction from {originating_country} to {destination_country} for {transaction_amount}. Verify {payment_purpose} against permitted transaction types. Check {supporting_documentation} for completeness. Screen parties against sanctions lists. Assess jurisdiction risk and identify any regulatory restrictions or reporting requirements. ```
**Outputs:**
Validation result (Approve/Reject/Review) * Jurisdiction risk assessment * Sanctions screening results * Documentation completeness check * Regulatory requirements flagged
**Integration:** International payment initiation, approve/reject transaction, request additional documentation </Card> </CardGroup> </Tab>
<Tab title="Regulatory Reporting"> <CardGroup cols={1}> <Card title="Suspicious Activity Report (SAR) Generation"> **Purpose:** Create structured suspicious activity reports based on investigation findings
**Inputs:**
Alert or case details * Customer information * Transaction data and patterns * Investigation findings and evidence **Task Instructions:**
``` Generate a Suspicious Activity Report based on {case_details}. Include customer
https://docs.rightbrain.ai/llms-full.txt
56/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
profile from {customer_information}, suspicious transactions from {transaction_data}, and investigator findings from {investigation_notes}. Create narrative describing suspicious activity, timeline of events, red flags identified, and basis for suspicion. Structure per regulatory requirements and include all mandatory fields. ```
**Outputs:**
Structured SAR with all required fields * Narrative description of suspicious activity * Supporting transaction details * Timeline and pattern summary * Filing checklist confirmation
**Integration:** Compliance analyst completes investigation, route for review and approval, prepare for regulatory submission </Card>
<Card title="Regulatory Report Compilation"> **Purpose:** Compile periodic compliance reports for regulatory filings and internal audit
**Inputs:**
Reporting period (dates) * Transaction data for period * Customer activity summaries * Report type and jurisdiction **Task Instructions:**
``` Compile {report_type} for {reporting_period} covering {jurisdiction}. Aggregate {transaction_data} and {customer_activity} per regulatory requirements. Calculate required metrics, identify reportable items, and format according to filing specifications. Validate completeness and accuracy of all mandatory fields. ```
**Outputs:**
Formatted regulatory report * Supporting data tables and summaries * Validation results and completeness check * Filing metadata * Submission package
**Integration:** Scheduled reporting deadline, route for compliance review, prepare regulatory submission </Card>
<Card title="Audit Trail Documentation"> **Purpose:** Document compliance activities and decisions for audit and regulatory review
**Inputs:**
Activity or decision to document * Relevant customer or transaction data * Risk assessment performed * Rationale and supporting evidence **Task Instructions:**
``` Document {compliance_activity} with complete audit trail. Capture all relevant {customer_data} and {transaction_data}, risk assessment from {risk_analysis}, decision rationale from {decision_basis}, and supporting evidence from
https://docs.rightbrain.ai/llms-full.txt
57/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
{documentation}. Create tamper-proof record with timestamp, user, and full context for regulatory review. ```
**Outputs:**
Complete audit trail record * Timestamped activity log * Decision rationale documented * Supporting evidence referenced * Searchable and exportable format
**Integration:** Any compliance decision or investigation step, store in audit database, enable search and retrieval </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}> <Card title="Create a Task" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="API Integration" icon="fa-solid fa-gear" href="/docs/creating-tasks/no- code-dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# E-Commerce & Retail Guide
> Task templates for product optimisation, customer service, and personalisation
E-commerce and retail teams use Rightbrain Tasks to optimise product listings, automate customer service, and personalise shopping experiences. Below are ready-to-use task templates with configuration details.
<Tabs> <Tab title="Product Management"> <CardGroup cols={1}> <Card title="Product Description Generation"> **Purpose:** Create SEO-optimised product descriptions that convert browsers into buyers
**Inputs:**
Product name and specifications * Target audience profile * SEO keywords list * Brand voice guidelines **Task Instructions:**
``` Create a compelling product description for {product_name} with specifications {product_specs}. Target the description to {target_audience} and naturally incorporate {seo_keywords}. Follow {brand_guidelines} for tone and style. Generate a product title, short description (150 characters), full description, feature bullet points, and meta tags. ```
**Outputs:**
https://docs.rightbrain.ai/llms-full.txt
58/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* Optimised product title * Short description (150 characters) * Full product description * Feature bullet points * Meta description and tags
**Integration:** New product upload, bulk catalogue update, publish to storefront, sync across channels </Card>
<Card title="Product Categorisation"> **Purpose:** Automatically classify products into appropriate departments, collections, and taxonomies
**Inputs:**
Product name and description * Product attributes (colour, size, material, etc.) * Available categories and taxonomy structure * Category assignment rules **Task Instructions:**
``` Classify {product_name} with attributes {product_attributes} into appropriate categories from {category_structure}. Consider product description {product_description} and apply {assignment_rules}. Assign primary category, relevant subcategories, and collection tags. Identify any missing or ambiguous categorisation. ```
**Outputs:**
Primary category assignment * Subcategories and collections * Tag recommendations * Confidence score for classification * Ambiguous cases flagged
**Integration:** Product import, catalogue reorganisation, update category fields, flag for manual review if uncertain </Card>
<Card title="Review Analysis"> **Purpose:** Extract insights, sentiment, and actionable feedback from customer product reviews
**Inputs:**
Review text and star rating * Product information * Review metadata (date, verified purchase) * Previous review patterns **Task Instructions:**
``` Analyse customer review: {review_text} with rating {star_rating} for {product_name}. Extract sentiment, identify key themes (quality, value, fit, functionality), and highlight specific product strengths and weaknesses. Compare against {review_patterns} to detect recurring issues. Suggest product listing improvements or quality concerns. ```
**Outputs:**
* Sentiment score and classification * Key themes and topics mentioned * Product strengths highlighted
https://docs.rightbrain.ai/llms-full.txt
59/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* Issues and improvement areas * Listing update recommendations
**Integration:** New review submission, scheduled batch analysis, update product insights dashboard, flag quality issues </Card>
<Card title="Competitor Price Monitoring"> **Purpose:** Track competitor pricing and identify opportunities for price adjustments
**Inputs:**
Product identifier and current price * Competitor product URLs or data * Pricing strategy parameters * Market positioning guidelines **Task Instructions:**
``` Monitor pricing for {product_name} currently at {current_price}. Compare against competitor prices from {competitor_data}. Consider {pricing_strategy} including margin requirements and market positioning from {positioning_guidelines}. Identify price gaps, recommend adjustments, and flag significant market changes. ```
**Outputs:**
Competitor price comparison * Price positioning analysis * Recommended price adjustments * Market opportunity identification * Alerts for significant changes
**Integration:** Scheduled monitoring (daily/weekly), competitor price change detection, trigger repricing workflow </Card> </CardGroup> </Tab>
<Tab title="Customer Service"> <CardGroup cols={1}> <Card title="Customer Inquiry Classification"> **Purpose:** Route customer messages to appropriate teams and generate suggested responses
**Inputs:**
Customer message text * Order history and context * Previous interaction history * Available departments and workflows **Task Instructions:**
``` Classify customer inquiry: {customer_message}. Review {order_history} and {interaction_history} for context. Identify inquiry type (order status, returns, product questions, technical support, complaints). Assess urgency based on tone and content. Route to appropriate team from {available_departments} and generate suggested response template. ```
**Outputs:**
* Inquiry category and subcategory * Priority level (Critical/High/Medium/Low) * Routing recommendation
https://docs.rightbrain.ai/llms-full.txt
60/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* Suggested response template * Escalation requirements
**Integration:** New customer message via email, chat, or support portal, assign to team queue, set SLA timer </Card>
<Card title="Order Status Response"> **Purpose:** Automatically respond to order tracking and status inquiries
**Inputs:**
Customer inquiry text * Order number or customer identifier * Order status and tracking information * Delivery timeline estimates **Task Instructions:**
``` Respond to order status inquiry: {customer_inquiry}. Retrieve order details for {order_number} including current status from {order_status}, tracking information from {tracking_data}, and delivery timeline from {delivery_estimates}. Generate helpful, reassuring response with relevant tracking details and next steps. Address any concerns expressed in the inquiry. ```
**Outputs:**
Personalised status update response * Tracking information formatted for customer * Delivery timeline and expectations * Proactive issue resolution if delays detected * Follow-up actions required
**Integration:** Customer inquiry detected as order status request, send automated response, escalate if delivery issue detected </Card>
<Card title="Return Request Processing"> **Purpose:** Automate return request evaluation and approval based on policy compliance
**Inputs:**
Return request details and reason * Order information and purchase date * Return policy rules * Product condition description **Task Instructions:**
``` Process return request for order {order_number} purchased on {purchase_date}. Reason: {return_reason}. Product condition: {product_condition}. Evaluate against {return_policy} including timeframes, eligible reasons, and condition requirements. Determine approval status, calculate refund amount, and generate customer communication with return instructions. ```
**Outputs:**
Return approval status (Approved/Rejected/Review Required) * Refund amount calculation * Return authorisation details * Customer communication message * Return shipping label requirements
**Integration:** Customer submits return request, auto-approve eligible returns,
https://docs.rightbrain.ai/llms-full.txt
61/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
generate return label, notify customer </Card> </CardGroup> </Tab>
<Tab title="Personalisation"> <CardGroup cols={1}> <Card title="Product Recommendation"> **Purpose:** Generate personalised product suggestions based on customer behaviour and preferences
**Inputs:**
Customer browsing history * Purchase history * Cart contents (if applicable) * Product catalogue and inventory **Task Instructions:**
``` Generate personalised product recommendations for customer with browsing history {browsing_data} and purchase history {purchase_data}. Consider current cart contents {cart_items}. Recommend complementary products, alternatives, and items matching their style preferences from {product_catalogue}. Prioritise in-stock items and apply relevance scoring. ```
**Outputs:**
Ranked product recommendations (top 5-10) * Recommendation rationale for each item * Product pairing suggestions * Personalisation confidence scores * Fallback recommendations if insufficient data
**Integration:** Customer page view, email campaign, cart abandonment, display recommendations on site, personalise messaging </Card>
<Card title="Abandoned Cart Recovery"> **Purpose:** Create personalised recovery messages tailored to each customer's cart contents
**Inputs:**
Abandoned cart items * Customer profile and history * Time since abandonment * Available incentives and promotions **Task Instructions:**
``` Create cart recovery message for customer who abandoned cart {hours_ago} hours ago with items: {cart_items}. Consider customer profile {customer_data} and purchase history {purchase_history}. Craft personalised message highlighting product benefits, address potential concerns, and include appropriate incentive from {available_promotions} based on cart value and customer segment. ```
**Outputs:**
Personalised email subject line * Recovery message body * Product highlights from cart * Incentive recommendation (discount, free shipping) * Optimal send timing
https://docs.rightbrain.ai/llms-full.txt
62/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Integration:** Cart abandoned for defined period (1-24 hours), send recovery email, apply promotional code </Card>
<Card title="Customer Segmentation"> **Purpose:** Identify customer groups based on behaviour, preferences, and value for targeted marketing
**Inputs:**
Customer transaction history * Engagement metrics (email opens, site visits) * Product preferences and browsing behaviour * Customer lifetime value data **Task Instructions:**
``` Segment customer based on {transaction_history}, {engagement_metrics}, {browsing_behaviour}, and {lifetime_value}. Identify customer type (VIP, frequent buyer, occasional, at-risk, dormant), product preferences, price sensitivity, and engagement patterns. Recommend marketing approach and personalisation strategy for this segment. ```
**Outputs:**
Customer segment classification * Behavioural characteristics * Product category preferences * Recommended marketing approach * Personalisation strategy
**Integration:** Periodic segmentation analysis (weekly/monthly), update customer tags, trigger segment-specific campaigns </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}> <Card title="Create a Task" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="API Integration" icon="fa-solid fa-gear" href="/docs/creating-tasks/no- code-dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# Tech & Data Guide
> Task templates for code analysis, data processing, and technical documentation
Technology and data teams use Rightbrain Tasks to automate code analysis, data processing, and technical documentation. Below are ready-to-use task templates with configuration details.
<Tabs> <Tab title="Code Analysis"> <CardGroup cols={1}> <Card title="Security Vulnerability Scanner"> **Purpose:** Identify security vulnerabilities and insecure coding practices in source code
https://docs.rightbrain.ai/llms-full.txt
63/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Inputs:**
Source code files or snippets * Programming language and framework * Security standards to apply (OWASP, CWE) * Known vulnerability database **Task Instructions:**
``` Analyse {source_code} written in {programming_language} using {framework}. Identify security vulnerabilities including SQL injection risks, XSS vulnerabilities, authentication flaws, data exposure issues, and insecure dependencies. Check against {security_standards} and classify findings by severity. Provide specific remediation guidance for each vulnerability found. ```
**Outputs:**
Vulnerabilities identified with severity ratings * CWE classifications * Affected code locations (line numbers) * Remediation suggestions and secure code examples * Overall security risk score
**Integration:** Pre-commit hook, pull request creation, scheduled security scans, block merge if critical issues </Card>
<Card title="Code Review"> **Purpose:** Provide improvement suggestions and identify issues in pull requests or code changes
**Inputs:**
Code changes or diff * Programming language and style guide * Project context and patterns * Review criteria checklist **Task Instructions:**
``` Review {code_changes} in {programming_language} against {style_guide}. Analyse code quality, best practice compliance, performance implications, and maintainability. Consider project context from {project_patterns}. Check against {review_criteria} for documentation completeness, error handling, test coverage, and technical debt. Provide actionable improvement suggestions. ```
**Outputs:**
Code quality assessment * Best practice violations identified * Performance and maintainability concerns * Documentation gaps * Specific improvement recommendations with examples
**Integration:** Pull request opened, code committed to review branch, post review comments, assign priority labels </Card>
<Card title="Technical Documentation Generator"> **Purpose:** Generate comprehensive documentation from code, APIs, or system specifications
**Inputs:**
https://docs.rightbrain.ai/llms-full.txt
64/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Source code or API specification (OpenAPI, Swagger) * Existing documentation to maintain consistency * Code comments and annotations * Target audience (developers, end users, operators) **Task Instructions:**
``` Generate technical documentation for {code_or_spec} targeting {target_audience}. Create clear descriptions of functionality, parameters, return values, and usage examples. Follow style and formatting from {existing_documentation}. Include code examples, error handling guidance, and best practices. Extract information from {code_comments} where available. ```
**Outputs:**
Structured documentation (functions, classes, endpoints) * Parameter and return value descriptions * Usage examples and code snippets * Error codes and handling guidance * Quick start guide
**Integration:** Code merge to main branch, API specification update, update documentation site, generate changelog </Card> </CardGroup> </Tab>
<Tab title="Data Processing"> <CardGroup cols={1}> <Card title="Data Quality Validation"> **Purpose:** Validate dataset integrity, completeness, and compliance with schema and business rules
**Inputs:**
Dataset to validate (CSV, JSON, database extract) * Schema definition or data dictionary * Validation rules and quality thresholds * Reference data for lookups **Task Instructions:**
``` Validate {dataset} against {schema_definition}. Check data types, formats, required fields, and value ranges per {validation_rules}. Identify missing values, duplicates, and outliers. Verify business rule compliance and cross-field consistency. Compare against {reference_data} for accuracy. Provide row-level error details and calculate overall quality score. ```
**Outputs:**
Quality score (0-100) * Issues categorised by field and severity * Row-level errors with specific locations * Summary statistics (completeness, accuracy, consistency) * Remediation recommendations
**Integration:** Data import, ETL pipeline stage, accept clean data, quarantine invalid records, generate quality report </Card>
<Card title="Schema Transformation"> **Purpose:** Transform data between formats and map fields according to schema specifications
https://docs.rightbrain.ai/llms-full.txt
65/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Inputs:**
Source dataset and schema * Target schema specification * Field mapping rules * Transformation logic for complex mappings **Task Instructions:**
``` Transform {source_dataset} from {source_schema} to {target_schema}. Apply field mappings from {mapping_rules} including renaming, type conversions, and value transformations. Execute {transformation_logic} for complex mappings such as concatenation, splitting, or calculated fields. Validate transformed data against target schema and flag any mapping issues. ```
**Outputs:**
Transformed dataset in target format * Mapping execution summary * Validation results against target schema * Unmapped or problematic fields flagged * Transformation statistics (records processed, errors)
**Integration:** Data integration workflow, system migration, API data exchange, load to target system </Card>
<Card title="Data Anomaly Detection"> **Purpose:** Identify unusual patterns, outliers, and quality issues in datasets
**Inputs:**
Dataset to analyse * Historical baseline data or patterns * Anomaly detection thresholds * Expected data distributions **Task Instructions:**
``` Analyse {dataset} for anomalies by comparing against {baseline_data}. Identify statistical outliers, pattern breaks, trend deviations, and unexpected values based on {detection_thresholds}. Check against {expected_distributions} for each field. Classify anomalies by type (outlier, pattern break, data corruption) and severity. Provide potential root causes and investigation priorities. ```
**Outputs:**
Anomalies detected with severity classifications * Statistical analysis (standard deviations, percentiles) * Anomaly type and affected records * Potential root causes * Investigation priority recommendations
**Integration:** Real-time data stream, scheduled batch analysis, alert data team, quarantine anomalous records </Card>
<Card title="Log Analysis"> **Purpose:** Extract insights, errors, and patterns from system logs for troubleshooting and monitoring
**Inputs:**
* Log files or entries
https://docs.rightbrain.ai/llms-full.txt
66/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
* Log format specification * Known error patterns or signatures * Normal operation baselines
**Task Instructions:**
``` Analyse {log_files} following {log_format}. Extract errors, warnings, and critical events. Identify patterns indicating system issues, performance degradation, or security concerns. Compare against {known_patterns} and {baseline_operations}. Correlate related log entries to trace issues. Summarise key findings and recommend troubleshooting steps. ```
**Outputs:**
Error and warning summary with counts * Critical events and patterns identified * Performance or security concerns flagged * Correlated event sequences * Troubleshooting recommendations
**Integration:** Scheduled log analysis, alert threshold exceeded, create incident tickets, update monitoring dashboard </Card> </CardGroup> </Tab>
<Tab title="Technical Documentation"> <CardGroup cols={1}> <Card title="API Documentation Generation"> **Purpose:** Generate comprehensive API documentation from specifications and code implementation
**Inputs:**
API specification (OpenAPI, Swagger, or code) * Example requests and responses * Authentication and authorisation details * Usage guidelines and best practices **Task Instructions:**
``` Generate API documentation from {api_specification}. Create endpoint descriptions with HTTP methods, paths, and purposes. Document request parameters, headers, and body schemas from {example_requests}. Detail response formats, status codes, and error handling from {example_responses}. Include authentication guide from {auth_details} and usage best practices from {guidelines}. ```
**Outputs:**
Endpoint documentation with descriptions * Request and response schemas * Authentication and authorisation guide * Example requests with cURL and code snippets * Error codes and troubleshooting section
**Integration:** API specification update, code deployment, publish to documentation site, notify API consumers </Card>
<Card title="Runbook Generation"> **Purpose:** Create operational runbooks for deployment, troubleshooting, and system maintenance
**Inputs:**
https://docs.rightbrain.ai/llms-full.txt
67/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
System architecture documentation * Deployment scripts and configurations * Known issues and resolutions * Monitoring and alerting setup **Task Instructions:**
``` Create operational runbook for {system_name} using {architecture_docs}. Document deployment procedures from {deployment_scripts}, including prerequisites, steps, and verification. Generate troubleshooting guide based on {known_issues} with diagnostic steps and resolutions. Include monitoring guidance from {monitoring_setup} and escalation procedures. ```
**Outputs:**
Deployment procedure with step-by-step instructions * Troubleshooting guide organised by symptom * Monitoring and alerting reference * Escalation procedures and contacts * Recovery and rollback processes
**Integration:** System deployment, major configuration change, publish to internal wiki, notify on-call team </Card>
<Card title="Changelog Generation"> **Purpose:** Summarise code changes, features, and fixes for release notes and version documentation
**Inputs:**
Git commit history or pull request list * Versioning scheme * Change categorisation rules * Previous changelog for context **Task Instructions:**
``` Generate changelog for version {version_number} from {commit_history}. Categorise changes into features, bug fixes, improvements, breaking changes, and deprecations using {categorisation_rules}. Write user-friendly descriptions for each change, highlighting impact and migration requirements. Follow format and style from {previous_changelog}. ```
**Outputs:**
Structured changelog by category * User-friendly change descriptions * Breaking changes and migration guide * Contributors list * Version comparison summary
**Integration:** Release branch created, version tagged, update changelog file, publish release notes </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}>
https://docs.rightbrain.ai/llms-full.txt
68/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
<Card title="Create a Task" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="API Integration" icon="fa-solid fa-gear" href="/docs/creating-tasks/no- code-dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# Knowledge & Content Guide
> Task templates for content generation, knowledge management, and research automation
Content and knowledge teams use Rightbrain Tasks to generate content, organise information, and automate research workflows. Below are ready-to-use task templates with configuration details.
<Tabs> <Tab title="Content Production"> <CardGroup cols={1}> <Card title="Blog Post Generation"> **Purpose:** Create SEO-optimised blog posts that engage readers and drive traffic
**Inputs:**
Topic and target keywords * Target audience profile * Content length requirement * Brand voice guidelines **Task Instructions:**
``` Write a blog post about {topic} targeting {target_audience} with approximately {word_count} words. Incorporate {seo_keywords} naturally throughout the content. Follow {brand_guidelines} for tone and style. Structure with engaging introduction, well-organised body sections with subheadings, and compelling conclusion with call-to-action. Generate SEO-optimised title and meta description. ```
**Outputs:**
SEO-optimised title * Meta description (150-160 characters) * Introduction paragraph * Body content with subheadings * Conclusion with call-to-action * Keyword usage summary
**Integration:** Content calendar schedule, publish to CMS draft, schedule for review, notify content team </Card>
<Card title="Social Media Content"> **Purpose:** Generate platform-specific social media posts optimised for engagement
**Inputs:**
Topic or message to communicate * Target platform (LinkedIn, Twitter, Instagram, etc.) * Target audience and objectives * Brand voice guidelines
https://docs.rightbrain.ai/llms-full.txt
69/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Task Instructions:**
``` Create a {platform} post about {topic} targeting {target_audience}. Objective: {campaign_objective}. Follow {brand_guidelines} for tone. Optimise for platform best practices: character limits, hashtag usage, and engagement patterns. Include compelling hook, clear message, and appropriate call-to-action. Generate multiple variations if requested. ```
**Outputs:**
Platform-optimised post copy * Recommended hashtags * Suggested posting time * Engagement hooks * Alternative variations (if requested)
**Integration:** Social media calendar, campaign launch, queue in scheduling tool, generate variations for A/B testing </Card>
<Card title="Email Newsletter"> **Purpose:** Write engaging email newsletters that drive opens, clicks, and conversions
**Inputs:**
Newsletter topic and key messages * Target subscriber segment * Content sections or article links * Brand voice and email template guidelines **Task Instructions:**
``` Write an email newsletter about {newsletter_topic} for {subscriber_segment}. Include compelling subject line optimised for open rates. Structure content with engaging introduction, {content_sections} with clear benefits, and strong call-to-action. Follow {email_guidelines} for formatting and {brand_voice} for tone. Personalise where appropriate using subscriber context. ```
**Outputs:**
Subject line (5-7 words, optimised for opens) * Preview text * Email body with structured sections * Call-to-action copy * Alternative subject lines for testing
**Integration:** Newsletter schedule, content curation complete, import to email platform, set up A/B test for subject lines </Card>
<Card title="Marketing Copy"> **Purpose:** Create persuasive ad copy and landing page content that converts
**Inputs:**
Product or service details * Target audience and pain points * Unique value proposition * Copy length and format requirements **Task Instructions:**
``` Create marketing copy for {product_name} targeting {target_audience}. Highlight
https://docs.rightbrain.ai/llms-full.txt
70/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
{value_proposition} and address pain points: {pain_points}. Write {copy_format} (ad headline, landing page, product description) with {character_limit} if specified. Use persuasive language, benefit-focused messaging, and compelling call-to-action. Include social proof or urgency elements. ```
**Outputs:**
Primary headline * Supporting copy or body text * Call-to-action copy * Benefit statements * Alternative variations for testing
**Integration:** Campaign launch, landing page creation, import to ad platform, populate landing page builder </Card> </CardGroup> </Tab>
<Tab title="Knowledge Management"> <CardGroup cols={1}> <Card title="Document Summarisation"> **Purpose:** Extract key points, insights, and action items from long documents
**Inputs:**
Document content (text, PDF) * Summary length requirement * Focus areas or key questions * Target audience for summary **Task Instructions:**
``` Summarise {document} for {target_audience}. Create summary of approximately {summary_length}. Focus on {focus_areas} if specified. Extract key findings, main arguments, important statistics, and action items. Maintain context and accuracy. Identify and quote critical statements. Organise by importance and logical flow. ```
**Outputs:**
Executive summary * Key findings and main points * Important quotes or statistics * Action items identified * Topics and themes covered
**Integration:** Document upload, research completion, share summary with stakeholders, add to knowledge base </Card>
<Card title="FAQ Generation"> **Purpose:** Create comprehensive question-and-answer content from documentation
**Inputs:**
Source documentation or content * Target audience knowledge level * Topic areas to cover * Existing FAQ structure (if updating) **Task Instructions:**
``` Generate FAQ entries from {source_documentation} for {target_audience}. Identify common questions users would ask about {topic_areas}. Create clear, concise
https://docs.rightbrain.ai/llms-full.txt
71/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
answers using information from the source material. Organise questions by topic and importance. Match format and style of {existing_faq} if provided. Optimise for search and clarity. ```
**Outputs:**
Questions organised by topic * Clear, concise answers * Topic categorisation * Search-optimised phrasing * Related question suggestions
**Integration:** Documentation update, product launch, publish to help centre, update knowledge base </Card>
<Card title="Knowledge Base Article"> **Purpose:** Create or update help centre articles with accurate, user-friendly information
**Inputs:**
Topic or feature to document * Product documentation or specifications * Target user persona * Article template and style guide **Task Instructions:**
``` Create knowledge base article about {topic} for {user_persona}. Use information from {product_documentation}. Follow {article_template} structure including overview, step-by-step instructions, troubleshooting, and related resources. Write in {style_guide} tone (clear, helpful, concise). Include screenshots placeholders where visual guidance helps. Optimise for searchability. ```
**Outputs:**
Article title and overview * Step-by-step instructions * Troubleshooting section * Related articles and resources * Search keywords and tags
**Integration:** Feature release, documentation gap identified, publish to knowledge base, link related articles </Card>
<Card title="Content Categorisation"> **Purpose:** Intelligently categorise and tag content for organisation and searchability
**Inputs:**
Content to categorise (article, document, asset) * Available taxonomy and tag structure * Categorisation rules and guidelines * Existing category assignments for reference **Task Instructions:**
``` Categorise {content} using {taxonomy_structure}. Analyse content topic, themes, and key concepts. Assign primary category and relevant subcategories from available options. Suggest tags based on {tagging_guidelines}. Consider {existing_categories} for consistency. Identify any cross-references to related content. Flag if content doesn't fit existing taxonomy.
https://docs.rightbrain.ai/llms-full.txt
72/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```
**Outputs:**
Primary category assignment * Subcategories and tags * Confidence score for categorisation * Related content cross-references * New category suggestions if needed
**Integration:** Content upload, bulk recategorisation, update content metadata, flag for manual review if uncertain </Card> </CardGroup> </Tab>
<Tab title="Research & Analysis"> <CardGroup cols={1}> <Card title="Literature Review"> **Purpose:** Synthesise research papers, articles, and academic content into cohesive summaries
**Inputs:**
Research papers or articles (multiple sources) * Research questions or focus areas * Citation style requirements * Review length and depth requirements **Task Instructions:**
``` Create literature review on {research_topic} from . Address research questions: {research_questions}. Extract key findings, methodologies, and results from each source. Identify common themes, contradictions, and research gaps. Synthesise insights across sources. Format citations in {citation_style}. Organise by theme or chronologically as appropriate. ```
**Outputs:**
Synthesised review by theme or timeline * Key findings from each source * Common themes and patterns * Research gaps identified * Properly formatted citations
**Integration:** Research project initiation, grant application, generate bibliography, share with research team </Card>
<Card title="Competitive Content Analysis"> **Purpose:** Analyse competitor content strategies, messaging, and positioning
**Inputs:**
Competitor content samples (websites, articles, campaigns) * Competitor names and market positions * Analysis focus areas * Your company positioning for comparison **Task Instructions:**
``` Analyse content from {competitor_names} focusing on {analysis_areas}. Review {content_samples} to identify messaging themes, value propositions, content formats, and positioning strategies. Compare against {company_positioning}. Identify content gaps, opportunities, and differentiation points. Assess content
https://docs.rightbrain.ai/llms-full.txt
73/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
quality, SEO approach, and engagement tactics. ```
**Outputs:**
Competitor messaging analysis * Content strategy comparison * Positioning and differentiation insights * Content gaps and opportunities * Recommendations for competitive advantage
**Integration:** Competitive analysis cycle, strategy planning, generate competitive intelligence report, brief marketing team </Card>
<Card title="Trend Analysis"> **Purpose:** Identify industry patterns, emerging topics, and content trends from multiple sources
**Inputs:**
Content corpus or data sources * Time period for analysis * Industry or topic focus * Trend indicators or metrics **Task Instructions:**
``` Analyse trends in {industry_focus} from {content_sources} over {time_period}. Identify emerging topics, growing themes, and declining interests. Track volume changes using {trend_metrics}. Identify key influencers and thought leaders. Detect sentiment shifts. Forecast trajectory of identified trends. Provide actionable insights for content strategy. ```
**Outputs:**
Top emerging trends ranked by growth * Topic volume analysis over time * Key influencers and sources * Sentiment analysis * Trend forecasts and content recommendations
**Integration:** Scheduled trend analysis (monthly/quarterly), update content calendar, adjust strategy based on insights </Card>
<Card title="Research Report Generation"> **Purpose:** Compile research findings into executive reports with insights and recommendations
**Inputs:**
Research data and findings * Report objectives and key questions * Target executive audience * Report template and structure requirements **Task Instructions:**
``` Create research report addressing {report_objectives} for {executive_audience}. Synthesise {research_findings} into executive summary, detailed findings, analysis, and recommendations. Follow {report_template} structure. Lead with key insights and bottom-line recommendations. Support with data, visualisations descriptions, and evidence from research. Maintain professional tone and clear formatting. ```
https://docs.rightbrain.ai/llms-full.txt
74/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
**Outputs:**
Executive summary with key takeaways * Detailed findings organised by theme * Data analysis and interpretation * Actionable recommendations * Supporting evidence and methodology notes
**Integration:** Research project completion, stakeholder request, distribute to stakeholders, archive in knowledge base </Card> </CardGroup> </Tab> </Tabs>
## Resources
<CardGroup cols={2}> <Card title="Create a Task" icon="fa-solid fa-code" href="/api-reference/api- reference/tasks/list-tasks"> Complete API reference for task execution </Card>
<Card title="API Integration" icon="fa-solid fa-gear" href="/docs/creating-tasks/no- code-dashboard"> Build and configure tasks in the dashboard </Card> </CardGroup>
# List Tasks
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task
List all Tasks in the project with pagination support.
Returns a paginated list of Tasks with their basic information: - Task ID and metadata - Active revision status - Latest modification time - Tags
Use the page_limit and cursor parameters to navigate through the results.
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/list-tasks
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: List Tasks version: endpoint_tasks.listTasks paths: /org/{org_id}/project/{project_id}/task: get: operationId: list-tasks summary: List Tasks description: >- List all Tasks in the project with pagination support.
Returns a paginated list of Tasks with their basic information:
Task ID and metadata
- Active revision status
https://docs.rightbrain.ai/llms-full.txt
75/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
- Latest modification time
- Tags
Use the page_limit and cursor parameters to navigate through the results. tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: name in: query description: Filter tasks by name (case-insensitive partial match). required: false schema: type: string - name: tag_id in: query description: Filter tasks by tag ID. required: false schema: type: string format: uuid - name: include_tests in: query description: Include test revisions required: false schema: type: boolean default: false - name: cursor in: query description: Pagination cursor for the next page of results. required: false schema: type: string - name: page_limit in: query description: Maximum number of tasks to return per page. required: false schema: type: integer default: 100 - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successfully retrieved paginated tasks content: application/json: schema:
https://docs.rightbrain.ai/llms-full.txt
76/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
$ref: '#/components/schemas/PaginatedTaskResultSet' '400': description: Bad Request - Invalid pagination parameters content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this tasks content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to list tasks content: {} components: schemas: PaginatedTaskResultSetResultsItems: type: object properties: {} PaginationInfo: type: object properties: has_next: type: boolean description: Indicates if more results are available next_cursor: type: - string - 'null' format: uuid description: Cursor for fetching the next page page_limit: type: integer default: 20 description: Maximum items per page total_count: type: - integer - 'null' description: Total number of items (if available) required: - has_next - page_limit PaginatedTaskResultSet: type: object properties: results: type: array items: $ref: '#/components/schemas/PaginatedTaskResultSetResultsItems' description: The task results for this page pagination: $ref: '#/components/schemas/PaginationInfo' description: Pagination metadata required: - results - pagination
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
https://docs.rightbrain.ai/llms-full.txt
77/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java
https://docs.rightbrain.ai/llms-full.txt
78/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Create a New Task
POST https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task Content-Type: application/json
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
https://docs.rightbrain.ai/llms-full.txt
79/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
- Output modality (JSON, image, or audio generation) - 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
Task Run Visibility: - `owner_only` (default): Only task owners can view all task runs - `editors_and_owners`: Task editors and owners can view all task runs - `all_viewers`: All users with view permission can see all task runs
The Task will be created with an initial revision that becomes automatically active.
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/create-task
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Create a New Task version: endpoint_tasks.createTask paths: /org/{org_id}/project/{project_id}/task: post: operationId: create-task summary: Create a New Task description: >- 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 (JSON, image, or audio generation)
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
Task Run Visibility:
`owner_only` (default): Only task owners can view all task runs
`editors_and_owners`: Task editors and owners can view all task runs
`all_viewers`: All users with view permission can see all task runs
The Task will be created with an initial revision that becomes automatically active. tags:
https://docs.rightbrain.ai/llms-full.txt
80/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
- subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/Task' '400': description: Bad Request - Invalid task configuration content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this tasks content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to create task content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskCreate' components: schemas: TagOutputFormatInputType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure1: type: string enum: - value: str - value: string - value: boolean 81/200
- subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/Task' '400': description: Bad Request - Invalid task configuration content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this tasks content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to create task content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskCreate' components: schemas: TagOutputFormatInputType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure1: type: string enum: - value: str - value: string - value: boolean 81/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' - $ref: '#/components/schemas/TagOutputFormatInputNestedStructure1' TagOutputFormatInputItemType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormat-Input: type: object properties: type: $ref: '#/components/schemas/TagOutputFormatInputType' description: The desired output type from the LLM. description: type: - string - 'null' description: A description of the desired content. nested_structure: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TagOutputFormatInputNestedStructure' description: For lists optionally define the list structure. options: type: - array - 'null' items: type: string description: Options to constrain the response to a specific set of values. item_type: oneOf: - $ref: '#/components/schemas/TagOutputFormatInputItemType' - type: 'null' description: For lists, the type of items within the list. required: - type TaskCreateOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TaskCreateOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' 82/200
value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' - $ref: '#/components/schemas/TagOutputFormatInputNestedStructure1' TagOutputFormatInputItemType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormat-Input: type: object properties: type: $ref: '#/components/schemas/TagOutputFormatInputType' description: The desired output type from the LLM. description: type: - string - 'null' description: A description of the desired content. nested_structure: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TagOutputFormatInputNestedStructure' description: For lists optionally define the list structure. options: type: - array - 'null' items: type: string description: Options to constrain the response to a specific set of values. item_type: oneOf: - $ref: '#/components/schemas/TagOutputFormatInputItemType' - type: 'null' description: For lists, the type of items within the list. required: - type TaskCreateOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TaskCreateOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' 82/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
$ref: '#/components/schemas/TaskCreateOutputFormat1' TaskRAG: type: object properties: collection_id: type: string format: uuid rag_param: type: string required: - collection_id - rag_param TaskInputProcessor: type: object properties: param_name: type: string input_processor: type: string config: type: - object - 'null' additionalProperties: description: Any type required: - param_name - input_processor TaskCreateOutputModality: type: string enum: - value: json - value: image - value: audio default: json TaskCreateTaskRunVisibility: type: string enum: - value: owner_only - value: editors_and_owners - value: all_viewers default: owner_only TaskCreate: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' 83/200
$ref: '#/components/schemas/TaskCreateOutputFormat1' TaskRAG: type: object properties: collection_id: type: string format: uuid rag_param: type: string required: - collection_id - rag_param TaskInputProcessor: type: object properties: param_name: type: string input_processor: type: string config: type: - object - 'null' additionalProperties: description: Any type required: - param_name - input_processor TaskCreateOutputModality: type: string enum: - value: json - value: image - value: audio default: json TaskCreateTaskRunVisibility: type: string enum: - value: owner_only - value: editors_and_owners - value: all_viewers default: owner_only TaskCreate: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' 83/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
additionalProperties: $ref: '#/components/schemas/TaskCreateOutputFormat' description: >- 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. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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. image_required: type: boolean default: false description: When `true` it requires an image to be sent in the Task Run request. optimise_images: type: boolean default: true description: >- When `true` (default) images will be automatically optimised before processing. Set to `false` to disable lossy image optimisation. test: type: boolean default: false description: >- True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration. input_processors: type: array items: $ref: '#/components/schemas/TaskInputProcessor' annotation: type: - string - 'null' description: >- Optional note or comment about this revision. Useful for tracking changes, experiments, or the purpose of test revisions. fallback_llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use as fallback if the primary model fails. fallback_llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the fallback LLM model. name: type: string
https://docs.rightbrain.ai/llms-full.txt
84/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference. enabled: type: boolean description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. public: type: boolean default: false description: When `true` the Task is public and can be accessed by any User. exposed_to_agents: type: boolean default: false description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. output_modality: $ref: '#/components/schemas/TaskCreateOutputModality' description: >- Specifies the output modality of the task. Can be 'json' or 'image'. Defaults to 'json'. task_run_visibility: $ref: '#/components/schemas/TaskCreateTaskRunVisibility' description: >- 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. required: - system_prompt - user_prompt - llm_model_id - name - enabled TaskOutputModality: type: string enum: - value: json - value: image - value: audio default: json TaskTaskRunVisibility: type: string enum: - value: owner_only - value: editors_and_owners - value: all_viewers default: owner_only TagOutputFormat-Output: type: object additionalProperties: description: Any type TaskRevisionOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number
https://docs.rightbrain.ai/llms-full.txt
85/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
TaskRevisionOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Output' - $ref: '#/components/schemas/TaskRevisionOutputFormat1' TagEntityType: type: string enum: - value: task - value: task_revision Tag: type: object properties: name: type: string description: >- Alphanumeric name for the tag (max 15 characters). Used to organize and filter Tasks and Task Revisions. parent_id: type: - string - 'null' format: uuid description: >- Optional UUID of a parent tag. Used to create hierarchical tag structures (e.g., staging under production). entity_type: $ref: '#/components/schemas/TagEntityType' description: The type of entity this tag applies to (task or task_revision) id: type: string format: uuid description: Unique identifier for the tag. project_id: type: string format: uuid description: Project this tag belongs to. created_at: type: string description: ISO 8601 timestamp when the tag was created. children: type: array items: $ref: '#/components/schemas/Tag' description: >- List of child tags if this tag is used as a parent in a hierarchical structure. is_project_tag: type: boolean description: >- When true, indicates this is a project-level tag that can be used across multiple entity types. tagged_entities: type: array items: type: string format: uuid description: List of entity IDs this tag is associated with. required: - name - entity_type - id - project_id - created_at - is_project_tag LLMModelComment: type: object properties: title: type: string
https://docs.rightbrain.ai/llms-full.txt
86/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
description: Brief title for the comment. description: type: string description: Detailed description of the comment or observation. active: type: boolean default: true description: Whether this comment is currently active/relevant. created: type: - string - 'null' description: When this comment was created. modified: type: - string - 'null' description: When this comment was last modified. id: type: string format: uuid llm_model_id: type: string format: uuid required: - title - description - id - llm_model_id LLMModel: type: object properties: provider: type: string description: The company that produces the LLM (e.g., OpenAI, Anthropic, Meta). vendor: type: string description: >- The service provider or platform hosting the model (e.g., OpenAI, Azure, Groq). name: type: string description: The model's reference name used for API calls. alias: type: string description: Human-readable name for the model. description: type: string description: >- Detailed description of the model's capabilities, context window, and knowledge cutoff. supports_vision: type: boolean description: Whether the model can process and analyze images. supports_image_output: type: boolean default: false description: Whether the model can generate images as output. max_context_window: type: integer description: Maximum number of tokens the model can process in a single request. model_params: type: - object - 'null' additionalProperties: description: Any type description: >-
https://docs.rightbrain.ai/llms-full.txt
87/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
JSON Schema defining allowed model parameters for this model. Each parameter name maps to a JSON Schema specification defining its type, constraints, and validation rules. created: type: - string - 'null' modified: type: - string - 'null' id: type: string format: uuid replaced_by: type: - string - 'null' format: uuid retired: type: - string - 'null' llm_model_comments: type: array items: $ref: '#/components/schemas/LLMModelComment' required: - provider - vendor - name - alias - description - supports_vision - max_context_window - id TaskRevision: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TaskRevisionOutputFormat' description: >- 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
https://docs.rightbrain.ai/llms-full.txt
88/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
able to generate the desired output into the relevant property, but an optional `description` can be passed to provide it with additional context. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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. image_required: type: boolean default: false description: When `true` it requires an image to be sent in the Task Run request. optimise_images: type: boolean default: true description: >- When `true` (default) images will be automatically optimised before processing. Set to `false` to disable lossy image optimisation. test: type: boolean default: false description: >- True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration. input_processors: type: array items: $ref: '#/components/schemas/TaskInputProcessor' annotation: type: - string - 'null' description: >- Optional note or comment about this revision. Useful for tracking changes, experiments, or the purpose of test revisions. fallback_llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use as fallback if the primary model fails. fallback_llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the fallback LLM model. id: type: string format: uuid description: The unique identifier of the Revision. created: type: string description: When the Task was created. modified:
https://docs.rightbrain.ai/llms-full.txt
89/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: - string - 'null' description: When the Task was last updated. active: type: boolean default: false description: >- When `true` the Revision is the currently active version and will be activated when the Task Run is executed. tags: type: array items: $ref: '#/components/schemas/Tag' llm_model: $ref: '#/components/schemas/LLMModel' fallback_llm_model: oneOf: - $ref: '#/components/schemas/LLMModel' - type: 'null' input_params: type: array items: type: string description: >- A list of all the dynamic input parameters that are detected from the user prompt. required: - system_prompt - user_prompt - llm_model_id - id - created - modified - llm_model - input_params TaskActiveRevision: type: object properties: task_revision_id: type: string format: uuid description: >- The unique identifier of the Task Revision to activate. Each Task can have multiple revisions, but only active ones will be used for execution. weight: type: - number - 'null' format: double default: 1 description: >- The traffic weight for this revision (between 0 and 1). When multiple revisions are active, weights determine the proportion of traffic each receives. Must sum to 1.0 across all active revisions. required: - task_revision_id Task: type: object properties: name: type: string description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference.
https://docs.rightbrain.ai/llms-full.txt
90/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
enabled: type: boolean description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. public: type: boolean default: false description: When `true` the Task is public and can be accessed by any User. exposed_to_agents: type: boolean default: false description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. output_modality: $ref: '#/components/schemas/TaskOutputModality' description: >- Specifies the output modality of the task. Can be 'json' or 'image'. Defaults to 'json'. task_run_visibility: $ref: '#/components/schemas/TaskTaskRunVisibility' description: >- 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. id: type: string format: uuid description: The unique identifier of the Task. project_id: type: string format: uuid description: The Project that the Task belongs to. created: type: string description: When the Task was created. modified: type: - string - 'null' description: When the Task was last updated. revisions: type: array items: $ref: '#/components/schemas/TaskRevision' description: >- 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. access_token: type: - string - 'null' description: >- Task specific Bearer token that can be used to authenticated when executing this Task. active_revisions: type: array items: $ref: '#/components/schemas/TaskActiveRevision' description: The revision currently active for this Task. cloned_from_task_revision_id: type: - string - 'null' format: uuid description: >-
https://docs.rightbrain.ai/llms-full.txt
91/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
The unique identifier of the task revision this task was cloned from, if applicable. tags: type: array items: $ref: '#/components/schemas/Tag' required: - name - enabled - id - project_id - created - access_token - active_revisions
```
## SDK Code Examples
```python Tasks_createTask_example import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, headers=headers)
print(response.json()) ```
```javascript Tasks_createTask_example const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: undefined };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Tasks_createTask_example package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
req, _ := http.NewRequest("POST", url, nil)
https://docs.rightbrain.ai/llms-full.txt
92/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Tasks_createTask_example require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json'
response = http.request(request) puts response.read_body ```
```java Tasks_createTask_example HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .asString(); ```
```php Tasks_createTask_example <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Tasks_createTask_example var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); IRestResponse response = client.Execute(request); ```
```swift Tasks_createTask_example import Foundation
https://docs.rightbrain.ai/llms-full.txt
93/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with image output import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are an AI that generates logo descriptions for image generation.", "user_prompt": "Create a logo for: {{company_description}}", "llm_model_id": "string", "name": "Logo Generator", "enabled": True, "llm_config": { "quality": "standard", "size": "1024x1024" }, "image_required": False, "optimise_images": True, "description": "Generates logos based on description", "public": False, "exposed_to_agents": False, "output_modality": "image", "llm_model": "c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with image output const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are an AI that generates logo descriptions for image
https://docs.rightbrain.ai/llms-full.txt
94/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
generation.","user_prompt":"Create a logo for: {{company_description}}","llm_model_id":"string","name":"Logo Generator","enabled":true,"llm_config": {"quality":"standard","size":"1024x1024"},"image_required":false,"optimise_images":true," description":"Generates logos based on description","public":false,"exposed_to_agents":false,"output_modality":"image","llm_mode l":"c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with image output package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are an AI that
generates logo descriptions for image generation.\",\n \"user_prompt\": \"Create a logo for: {{company_description}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Logo Generator\",\n \"enabled\": true,\n \"llm_config\": {\n \"quality\": \"standard\",\n \"size\": \"1024x1024\"\n },\n \"image_required\": false,\n \"optimise_images\": true,\n \"description\": \"Generates logos based on description\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"image\",\n \"llm_model\": \"c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with image output require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url)
https://docs.rightbrain.ai/llms-full.txt
95/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are an AI that generates logo descriptions for image generation.\",\n \"user_prompt\": \"Create a logo for: {{company_description}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Logo Generator\",\n \"enabled\": true,\n \"llm_config\": {\n \"quality\": \"standard\",\n \"size\": \"1024x1024\"\n },\n \"image_required\": false,\n \"optimise_images\": true,\n \"description\": \"Generates logos based on description\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"image\",\n \"llm_model\": \"c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with image output HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are an AI that generates logo descriptions for image generation.\",\n \"user_prompt\": \"Create a logo for: {{company_description}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Logo Generator\",\n \"enabled\": true,\n \"llm_config\": {\n \"quality\": \"standard\",\n \"size\": \"1024x1024\"\n },\n \"image_required\": false,\n \"optimise_images\": true,\n \"description\": \"Generates logos based on description\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"image\",\n \"llm_model\": \"c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2\"\n}") .asString(); ```
```php Task with image output <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are an AI that generates logo descriptions for image generation.", "user_prompt": "Create a logo for: {{company_description}}", "llm_model_id": "string", "name": "Logo Generator", "enabled": true, "llm_config": { "quality": "standard", "size": "1024x1024" }, "image_required": false, "optimise_images": true, "description": "Generates logos based on description", "public": false, "exposed_to_agents": false, "output_modality": "image", "llm_model": "c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with image output var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-
https://docs.rightbrain.ai/llms-full.txt
96/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are an AI that generates logo descriptions for image generation.\",\n \"user_prompt\": \"Create a logo for: {{company_description}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Logo Generator\",\n \"enabled\": true,\n \"llm_config\": {\n \"quality\": \"standard\",\n \"size\": \"1024x1024\"\n },\n \"image_required\": false,\n \"optimise_images\": true,\n \"description\": \"Generates logos based on description\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"image\",\n \"llm_model\": \"c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with image output import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are an AI that generates logo descriptions for image generation.", "user_prompt": "Create a logo for: {{company_description}}", "llm_model_id": "string", "name": "Logo Generator", "enabled": true, "llm_config": [ "quality": "standard", "size": "1024x1024" ], "image_required": false, "optimise_images": true, "description": "Generates logos based on description", "public": false, "exposed_to_agents": false, "output_modality": "image", "llm_model": "c3847a5f-8b2e-4f8a-b1c9-d238e4a5f3b2" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with audio output import requests
https://docs.rightbrain.ai/llms-full.txt
97/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a friendly voice assistant.", "user_prompt": "Generate a voice response for: {{message}}", "llm_model_id": "string", "name": "Voice Response Generator", "enabled": True, "description": "Generates voice responses for interactive applications", "public": False, "exposed_to_agents": False, "output_modality": "audio", "input_params": [ { "name": "message", "description": "Message to convert to speech" } ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with audio output const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a friendly voice assistant.","user_prompt":"Generate a voice response for: {{message}}","llm_model_id":"string","name":"Voice Response Generator","enabled":true,"description":"Generates voice responses for interactive applications","public":false,"exposed_to_agents":false,"output_modality":"audio","input_p arams":[{"name":"message","description":"Message to convert to speech"}],"llm_model":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with audio output package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
https://docs.rightbrain.ai/llms-full.txt
98/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
payload := strings.NewReader("{\n \"system_prompt\": \"You are a friendly voice
assistant.\",\n \"user_prompt\": \"Generate a voice response for: {{message}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Voice Response Generator\",\n \"enabled\": true,\n \"description\": \"Generates voice responses for interactive applications\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"audio\",\n \"input_params\": [\n {\n \"name\": \"message\",\n \"description\": \"Message to convert to speech\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281- a1b8-cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with audio output require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a friendly voice assistant.\",\n \"user_prompt\": \"Generate a voice response for: {{message}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Voice Response Generator\",\n \"enabled\": true,\n \"description\": \"Generates voice responses for interactive applications\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"audio\",\n \"input_params\": [\n {\n \"name\": \"message\",\n \"description\": \"Message to convert to speech\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281- a1b8-cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with audio output HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a friendly voice assistant.\",\n \"user_prompt\": \"Generate a voice response for: {{message}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Voice Response Generator\",\n \"enabled\": true,\n \"description\": \"Generates voice responses for interactive applications\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"audio\",\n \"input_params\": [\n {\n \"name\": \"message\",\n \"description\": \"Message to convert to speech\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281- a1b8-cb7bd0ef9f41\"\n}") .asString(); ```
https://docs.rightbrain.ai/llms-full.txt
99/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```php Task with audio output <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a friendly voice assistant.", "user_prompt": "Generate a voice response for: {{message}}", "llm_model_id": "string", "name": "Voice Response Generator", "enabled": true, "description": "Generates voice responses for interactive applications", "public": false, "exposed_to_agents": false, "output_modality": "audio", "input_params": [ { "name": "message", "description": "Message to convert to speech" } ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with audio output var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a friendly voice assistant.\",\n \"user_prompt\": \"Generate a voice response for: {{message}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Voice Response Generator\",\n \"enabled\": true,\n \"description\": \"Generates voice responses for interactive applications\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"audio\",\n \"input_params\": [\n {\n \"name\": \"message\",\n \"description\": \"Message to convert to speech\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281- a1b8-cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with audio output import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a friendly voice assistant.", "user_prompt": "Generate a voice response for: {{message}}", "llm_model_id": "string", "name": "Voice Response Generator", "enabled": true, "description": "Generates voice responses for interactive applications", "public": false, "exposed_to_agents": false, "output_modality": "audio", "input_params": [
https://docs.rightbrain.ai/llms-full.txt
100/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
[ "name": "message", "description": "Message to convert to speech" ] ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with RAG enabled import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a helpful assistant. Use the provided context to answer questions.", "user_prompt": "Context: {{context}}
Question: {{question}}", "llm_model_id": "string", "name": "Knowledge Q&A", "enabled": True, "output_format": [ { "name": "answer", "description": "Answer to the question" }, { "name": "confidence", "description": "Confidence score", "type": "number" } ], "rag": { "collection_id": "01908843-1234-5678-9abc-def012345678", "rag_param": "string", "topK": 5, "filters": { "category": "technical" } }, "description": "Answers questions using knowledge base", "exposed_to_agents": True, "output_modality": "json", "input_params": [
https://docs.rightbrain.ai/llms-full.txt
101/200
17/12/2025, 15:08 { "name": "question", "description": "User's question" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
docs.rightbrain.ai/llms-full.txt
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with RAG enabled const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a helpful assistant. Use the provided context to answer questions.","user_prompt":"Context: {{context}}\n\nQuestion: {{question}}","llm_model_id":"string","name":"Knowledge Q&A","enabled":true,"output_format":[{"name":"answer","description":"Answer to the question"},{"name":"confidence","description":"Confidence score","type":"number"}],"rag": {"collection_id":"01908843-1234-5678-9abc- def012345678","rag_param":"string","topK":5,"filters": {"category":"technical"}},"description":"Answers questions using knowledge base","exposed_to_agents":true,"output_modality":"json","input_params": [{"name":"question","description":"User\'s question"}],"output_format_type":"json","llm_model":"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with RAG enabled package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a helpful
assistant. Use the provided context to answer questions.\",\n \"user_prompt\": \"Context: {{context}}\\n\\nQuestion: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Knowledge Q&A\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"answer\",\n \"description\": \"Answer to the question\"\n },\n {\n \"name\": \"confidence\",\n \"description\": \"Confidence score\",\n \"type\": \"number\"\n }\n ],\n \"rag\": {\n \"collection_id\": \"01908843-1234-5678-9abc-
https://docs.rightbrain.ai/llms-full.txt
102/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
def012345678\",\n \"rag_param\": \"string\",\n \"topK\": 5,\n \"filters\": {\n \"category\": \"technical\"\n }\n },\n \"description\": \"Answers questions using knowledge base\",\n \"exposed_to_agents\": true,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"question\",\n \"description\": \"User's question\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with RAG enabled require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a helpful assistant. Use the provided context to answer questions.\",\n \"user_prompt\": \"Context: {{context}}\\n\\nQuestion: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Knowledge Q&A\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"answer\",\n \"description\": \"Answer to the question\"\n },\n {\n \"name\": \"confidence\",\n \"description\": \"Confidence score\",\n \"type\": \"number\"\n }\n ],\n \"rag\": {\n \"collection_id\": \"01908843-1234-5678-9abc- def012345678\",\n \"rag_param\": \"string\",\n \"topK\": 5,\n \"filters\": {\n \"category\": \"technical\"\n }\n },\n \"description\": \"Answers questions using knowledge base\",\n \"exposed_to_agents\": true,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"question\",\n \"description\": \"User's question\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with RAG enabled HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a helpful assistant. Use the provided context to answer questions.\",\n \"user_prompt\": \"Context: {{context}}\\n\\nQuestion: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Knowledge Q&A\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"answer\",\n \"description\": \"Answer to the question\"\n },\n {\n \"name\": \"confidence\",\n \"description\": \"Confidence score\",\n \"type\": \"number\"\n }\n ],\n \"rag\": {\n \"collection_id\": \"01908843-1234-5678-9abc- def012345678\",\n \"rag_param\": \"string\",\n \"topK\": 5,\n \"filters\": {\n \"category\": \"technical\"\n }\n },\n \"description\": \"Answers questions using
https://docs.rightbrain.ai/llms-full.txt
103/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
knowledge base\",\n \"exposed_to_agents\": true,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"question\",\n \"description\": \"User's question\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}") .asString(); ```
```php Task with RAG enabled <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a helpful assistant. Use the provided context to answer questions.", "user_prompt": "Context: {{context}}\\n\\nQuestion: {{question}}", "llm_model_id": "string", "name": "Knowledge Q&A", "enabled": true, "output_format": [ { "name": "answer", "description": "Answer to the question" }, { "name": "confidence", "description": "Confidence score", "type": "number" } ], "rag": { "collection_id": "01908843-1234-5678-9abc-def012345678", "rag_param": "string", "topK": 5, "filters": { "category": "technical" } }, "description": "Answers questions using knowledge base", "exposed_to_agents": true, "output_modality": "json", "input_params": [ { "name": "question", "description": "User\'s question" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with RAG enabled var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a helpful assistant. Use the provided context to answer questions.\",\n \"user_prompt\":
https://docs.rightbrain.ai/llms-full.txt
104/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
\"Context: {{context}}\\n\\nQuestion: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Knowledge Q&A\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"answer\",\n \"description\": \"Answer to the question\"\n },\n {\n \"name\": \"confidence\",\n \"description\": \"Confidence score\",\n \"type\": \"number\"\n }\n ],\n \"rag\": {\n \"collection_id\": \"01908843-1234-5678-9abc- def012345678\",\n \"rag_param\": \"string\",\n \"topK\": 5,\n \"filters\": {\n \"category\": \"technical\"\n }\n },\n \"description\": \"Answers questions using knowledge base\",\n \"exposed_to_agents\": true,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"question\",\n \"description\": \"User's question\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with RAG enabled import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a helpful assistant. Use the provided context to answer questions.", "user_prompt": "Context: {{context}}
Question: {{question}}", "llm_model_id": "string", "name": "Knowledge Q&A", "enabled": true, "output_format": [ [ "name": "answer", "description": "Answer to the question" ], [ "name": "confidence", "description": "Confidence score", "type": "number" ] ], "rag": [ "collection_id": "01908843-1234-5678-9abc-def012345678", "rag_param": "string", "topK": 5, "filters": ["category": "technical"] ], "description": "Answers questions using knowledge base", "exposed_to_agents": true, "output_modality": "json", "input_params": [ [ "name": "question", "description": "User's question" ] ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers
https://docs.rightbrain.ai/llms-full.txt
105/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with image support import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are an image analysis expert.", "user_prompt": "Analyze this image and describe: {{description_type}}", "llm_model_id": "string", "name": "Image Analyzer", "enabled": True, "output_format": [ { "name": "description", "description": "Image description" }, { "name": "objects", "description": "Detected objects", "type": "array" } ], "image_required": True, "optimise_images": True, "description": "Analyzes and describes images", "input_params": [ { "name": "description_type", "description": "What to focus on" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with image support const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are an image analysis expert.","user_prompt":"Analyze this image and describe: {{description_type}}","llm_model_id":"string","name":"Image
https://docs.rightbrain.ai/llms-full.txt
106/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Analyzer","enabled":true,"output_format":[{"name":"description","description":"Image description"},{"name":"objects","description":"Detected objects","type":"array"}],"image_required":true,"optimise_images":true,"description":"Ana lyzes and describes images","input_params": [{"name":"description_type","description":"What to focus on"}],"output_format_type":"json","llm_model":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with image support package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are an image analysis
expert.\",\n \"user_prompt\": \"Analyze this image and describe: {{description_type}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Image Analyzer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"description\",\n \"description\": \"Image description\"\n },\n {\n \"name\": \"objects\",\n \"description\": \"Detected objects\",\n \"type\": \"array\"\n }\n ],\n \"image_required\": true,\n \"optimise_images\": true,\n \"description\": \"Analyzes and describes images\",\n \"input_params\": [\n {\n \"name\": \"description_type\",\n \"description\": \"What to focus on\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with image support require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
https://docs.rightbrain.ai/llms-full.txt
107/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are an image analysis expert.\",\n \"user_prompt\": \"Analyze this image and describe: {{description_type}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Image Analyzer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"description\",\n \"description\": \"Image description\"\n },\n {\n \"name\": \"objects\",\n \"description\": \"Detected objects\",\n \"type\": \"array\"\n }\n ],\n \"image_required\": true,\n \"optimise_images\": true,\n \"description\": \"Analyzes and describes images\",\n \"input_params\": [\n {\n \"name\": \"description_type\",\n \"description\": \"What to focus on\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with image support HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are an image analysis expert.\",\n \"user_prompt\": \"Analyze this image and describe: {{description_type}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Image Analyzer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"description\",\n \"description\": \"Image description\"\n },\n {\n \"name\": \"objects\",\n \"description\": \"Detected objects\",\n \"type\": \"array\"\n }\n ],\n \"image_required\": true,\n \"optimise_images\": true,\n \"description\": \"Analyzes and describes images\",\n \"input_params\": [\n {\n \"name\": \"description_type\",\n \"description\": \"What to focus on\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}") .asString(); ```
```php Task with image support <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are an image analysis expert.", "user_prompt": "Analyze this image and describe: {{description_type}}", "llm_model_id": "string", "name": "Image Analyzer", "enabled": true, "output_format": [ { "name": "description", "description": "Image description" }, { "name": "objects", "description": "Detected objects", "type": "array" } ], "image_required": true, "optimise_images": true, "description": "Analyzes and describes images", "input_params": [ {
https://docs.rightbrain.ai/llms-full.txt
108/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"name": "description_type", "description": "What to focus on" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with image support var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are an image analysis expert.\",\n \"user_prompt\": \"Analyze this image and describe: {{description_type}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Image Analyzer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"description\",\n \"description\": \"Image description\"\n },\n {\n \"name\": \"objects\",\n \"description\": \"Detected objects\",\n \"type\": \"array\"\n }\n ],\n \"image_required\": true,\n \"optimise_images\": true,\n \"description\": \"Analyzes and describes images\",\n \"input_params\": [\n {\n \"name\": \"description_type\",\n \"description\": \"What to focus on\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with image support import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are an image analysis expert.", "user_prompt": "Analyze this image and describe: {{description_type}}", "llm_model_id": "string", "name": "Image Analyzer", "enabled": true, "output_format": [ [ "name": "description", "description": "Image description" ], [ "name": "objects", "description": "Detected objects", "type": "array" ] ], "image_required": true, "optimise_images": true, "description": "Analyzes and describes images", "input_params": [ [ "name": "description_type", "description": "What to focus on" ] ],
https://docs.rightbrain.ai/llms-full.txt
109/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with input processors import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a content analyzer.", "user_prompt": "Analyze this content: {{url}}", "llm_model_id": "string", "name": "URL Content Analyzer", "enabled": True, "output_format": { "summary": "str", "sentiment": { "type": "str", "options": ["positive", "negative", "neutral"] } }, "input_processors": [ { "param_name": "url", "input_processor": "url_fetcher", "config": { "timeout": 30 } } ], "annotation": "Testing URL content analysis with input processors", "description": "Analyzes content from URLs", "exposed_to_agents": True, "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
https://docs.rightbrain.ai/llms-full.txt
110/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```javascript Task with input processors const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a content analyzer.","user_prompt":"Analyze this content: {{url}}","llm_model_id":"string","name":"URL Content Analyzer","enabled":true,"output_format":{"summary":"str","sentiment": {"type":"str","options":["positive","negative","neutral"]}},"input_processors": [{"param_name":"url","input_processor":"url_fetcher","config": {"timeout":30}}],"annotation":"Testing URL content analysis with input processors","description":"Analyzes content from URLs","exposed_to_agents":true,"llm_model":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with input processors package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a content analyzer.\",\n \"user_prompt\": \"Analyze this content: {{url}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"URL Content Analyzer\",\n \"enabled\": true,\n \"output_format\": {\n \"summary\": \"str\",\n \"sentiment\": {\n \"type\": \"str\",\n \"options\": [\n \"positive\",\n \"negative\",\n \"neutral\"\n ]\n }\n },\n \"input_processors\": [\n {\n \"param_name\": \"url\",\n \"input_processor\": \"url_fetcher\",\n \"config\": {\n \"timeout\": 30\n }\n }\n ],\n \"annotation\": \"Testing URL content analysis with input processors\",\n \"description\": \"Analyzes content from URLs\",\n \"exposed_to_agents\": true,\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
https://docs.rightbrain.ai/llms-full.txt
111/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```ruby Task with input processors require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a content analyzer.\",\n \"user_prompt\": \"Analyze this content: {{url}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"URL Content Analyzer\",\n \"enabled\": true,\n \"output_format\": {\n \"summary\": \"str\",\n \"sentiment\": {\n \"type\": \"str\",\n \"options\": [\n \"positive\",\n \"negative\",\n \"neutral\"\n ]\n }\n },\n \"input_processors\": [\n {\n \"param_name\": \"url\",\n \"input_processor\": \"url_fetcher\",\n \"config\": {\n \"timeout\": 30\n }\n }\n ],\n \"annotation\": \"Testing URL content analysis with input processors\",\n \"description\": \"Analyzes content from URLs\",\n \"exposed_to_agents\": true,\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with input processors HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a content analyzer.\",\n \"user_prompt\": \"Analyze this content: {{url}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"URL Content Analyzer\",\n \"enabled\": true,\n \"output_format\": {\n \"summary\": \"str\",\n \"sentiment\": {\n \"type\": \"str\",\n \"options\": [\n \"positive\",\n \"negative\",\n \"neutral\"\n ]\n }\n },\n \"input_processors\": [\n {\n \"param_name\": \"url\",\n \"input_processor\": \"url_fetcher\",\n \"config\": {\n \"timeout\": 30\n }\n }\n ],\n \"annotation\": \"Testing URL content analysis with input processors\",\n \"description\": \"Analyzes content from URLs\",\n \"exposed_to_agents\": true,\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}") .asString(); ```
```php Task with input processors <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a content analyzer.", "user_prompt": "Analyze this content: {{url}}", "llm_model_id": "string", "name": "URL Content Analyzer", "enabled": true, "output_format": { "summary": "str", "sentiment": { "type": "str", "options": [ "positive", "negative",
https://docs.rightbrain.ai/llms-full.txt
112/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"neutral" ] } }, "input_processors": [ { "param_name": "url", "input_processor": "url_fetcher", "config": { "timeout": 30 } } ], "annotation": "Testing URL content analysis with input processors", "description": "Analyzes content from URLs", "exposed_to_agents": true, "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with input processors var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a content analyzer.\",\n \"user_prompt\": \"Analyze this content: {{url}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"URL Content Analyzer\",\n \"enabled\": true,\n \"output_format\": {\n \"summary\": \"str\",\n \"sentiment\": {\n \"type\": \"str\",\n \"options\": [\n \"positive\",\n \"negative\",\n \"neutral\"\n ]\n }\n },\n \"input_processors\": [\n {\n \"param_name\": \"url\",\n \"input_processor\": \"url_fetcher\",\n \"config\": {\n \"timeout\": 30\n }\n }\n ],\n \"annotation\": \"Testing URL content analysis with input processors\",\n \"description\": \"Analyzes content from URLs\",\n \"exposed_to_agents\": true,\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with input processors import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a content analyzer.", "user_prompt": "Analyze this content: {{url}}", "llm_model_id": "string", "name": "URL Content Analyzer", "enabled": true, "output_format": [ "summary": "str", "sentiment": [ "type": "str", "options": ["positive", "negative", "neutral"] ] ], "input_processors": [ [
https://docs.rightbrain.ai/llms-full.txt
113/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"param_name": "url", "input_processor": "url_fetcher", "config": ["timeout": 30] ] ], "annotation": "Testing URL content analysis with input processors", "description": "Analyzes content from URLs", "exposed_to_agents": true, "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with fallback model for reliability import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a helpful assistant.", "user_prompt": "Process this text: {{text}}", "llm_model_id": "string", "name": "Reliable Text Processor", "enabled": True, "output_format": [ { "name": "result", "description": "Processed result" } ], "annotation": "Uses fallback model for improved reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec", "fallback_llm_config": { "temperature": 0.5, "max_tokens": 1000 }, "description": "Processes text with automatic fallback for reliability", "task_run_visibility": "owner_only", "input_params": [ { "name": "text", "description": "Text to process" } ], "output_format_type": "json",
https://docs.rightbrain.ai/llms-full.txt
114/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with fallback model for reliability const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a helpful assistant.","user_prompt":"Process this text: {{text}}","llm_model_id":"string","name":"Reliable Text Processor","enabled":true,"output_format":[{"name":"result","description":"Processed result"}],"annotation":"Uses fallback model for improved reliability","fallback_llm_model_id":"af2a9bbf-5f36-4b12-bd3f- 92c57be96dec","fallback_llm_config": {"temperature":0.5,"max_tokens":1000},"description":"Processes text with automatic fallback for reliability","task_run_visibility":"owner_only","input_params": [{"name":"text","description":"Text to process"}],"output_format_type":"json","llm_model":"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with fallback model for reliability package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a helpful
assistant.\",\n \"user_prompt\": \"Process this text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Reliable Text Processor\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"result\",\n \"description\": \"Processed result\"\n }\n ],\n \"annotation\": \"Uses fallback model for improved reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\",\n \"fallback_llm_config\": {\n \"temperature\": 0.5,\n \"max_tokens\": 1000\n },\n \"description\": \"Processes text with automatic fallback for reliability\",\n \"task_run_visibility\": \"owner_only\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to process\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
https://docs.rightbrain.ai/llms-full.txt
115/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with fallback model for reliability require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Process this text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Reliable Text Processor\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"result\",\n \"description\": \"Processed result\"\n }\n ],\n \"annotation\": \"Uses fallback model for improved reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\",\n \"fallback_llm_config\": {\n \"temperature\": 0.5,\n \"max_tokens\": 1000\n },\n \"description\": \"Processes text with automatic fallback for reliability\",\n \"task_run_visibility\": \"owner_only\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to process\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with fallback model for reliability HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Process this text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Reliable Text Processor\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"result\",\n \"description\": \"Processed result\"\n }\n ],\n \"annotation\": \"Uses fallback model for improved reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\",\n \"fallback_llm_config\": {\n \"temperature\": 0.5,\n \"max_tokens\": 1000\n },\n \"description\": \"Processes text with automatic fallback for reliability\",\n \"task_run_visibility\": \"owner_only\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to process\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}") .asString(); ```
```php Task with fallback model for reliability <?php
$client = new \GuzzleHttp\Client();
https://docs.rightbrain.ai/llms-full.txt
116/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a helpful assistant.", "user_prompt": "Process this text: {{text}}", "llm_model_id": "string", "name": "Reliable Text Processor", "enabled": true, "output_format": [ { "name": "result", "description": "Processed result" } ], "annotation": "Uses fallback model for improved reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec", "fallback_llm_config": { "temperature": 0.5, "max_tokens": 1000 }, "description": "Processes text with automatic fallback for reliability", "task_run_visibility": "owner_only", "input_params": [ { "name": "text", "description": "Text to process" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with fallback model for reliability var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Process this text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Reliable Text Processor\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"result\",\n \"description\": \"Processed result\"\n }\n ],\n \"annotation\": \"Uses fallback model for improved reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\",\n \"fallback_llm_config\": {\n \"temperature\": 0.5,\n \"max_tokens\": 1000\n },\n \"description\": \"Processes text with automatic fallback for reliability\",\n \"task_run_visibility\": \"owner_only\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to process\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with fallback model for reliability import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ]
https://docs.rightbrain.ai/llms-full.txt
117/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
let parameters = [ "system_prompt": "You are a helpful assistant.", "user_prompt": "Process this text: {{text}}", "llm_model_id": "string", "name": "Reliable Text Processor", "enabled": true, "output_format": [ [ "name": "result", "description": "Processed result" ] ], "annotation": "Uses fallback model for improved reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec", "fallback_llm_config": [ "temperature": 0.5, "max_tokens": 1000 ], "description": "Processes text with automatic fallback for reliability", "task_run_visibility": "owner_only", "input_params": [ [ "name": "text", "description": "Text to process" ] ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Task with collaborative visibility import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a technical documentation expert.", "user_prompt": "Generate documentation for: {{feature}}", "llm_model_id": "string", "name": "Team Documentation Generator", "enabled": True, "output_format": { "title": "str",
https://docs.rightbrain.ai/llms-full.txt
118/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"description": "str", "usage_examples": "array" }, "annotation": "Team collaboration enabled - editors can see all runs", "description": "Collaborative task where editors can view all executions", "task_run_visibility": "editors_and_owners", "input_params": [ { "name": "feature", "description": "Feature to document" } ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Task with collaborative visibility const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a technical documentation expert.","user_prompt":"Generate documentation for: {{feature}}","llm_model_id":"string","name":"Team Documentation Generator","enabled":true,"output_format": {"title":"str","description":"str","usage_examples":"array"},"annotation":"Team collaboration enabled - editors can see all runs","description":"Collaborative task where editors can view all executions","task_run_visibility":"editors_and_owners","input_params": [{"name":"feature","description":"Feature to document"}],"llm_model":"ec217e75-72ea-4281- a1b8-cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Task with collaborative visibility package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a technical
documentation expert.\",\n \"user_prompt\": \"Generate documentation for: {{feature}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Team Documentation
https://docs.rightbrain.ai/llms-full.txt
119/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Generator\",\n \"enabled\": true,\n \"output_format\": {\n \"title\": \"str\",\n \"description\": \"str\",\n \"usage_examples\": \"array\"\n },\n \"annotation\": \"Team collaboration enabled - editors can see all runs\",\n \"description\": \"Collaborative task where editors can view all executions\",\n \"task_run_visibility\": \"editors_and_owners\",\n \"input_params\": [\n {\n \"name\": \"feature\",\n \"description\": \"Feature to document\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea- 4281-a1b8-cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Task with collaborative visibility require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a technical documentation expert.\",\n \"user_prompt\": \"Generate documentation for: {{feature}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Team Documentation Generator\",\n \"enabled\": true,\n \"output_format\": {\n \"title\": \"str\",\n \"description\": \"str\",\n \"usage_examples\": \"array\"\n },\n \"annotation\": \"Team collaboration enabled - editors can see all runs\",\n \"description\": \"Collaborative task where editors can view all executions\",\n \"task_run_visibility\": \"editors_and_owners\",\n \"input_params\": [\n {\n \"name\": \"feature\",\n \"description\": \"Feature to document\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Task with collaborative visibility HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a technical documentation expert.\",\n \"user_prompt\": \"Generate documentation for: {{feature}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Team Documentation Generator\",\n \"enabled\": true,\n \"output_format\": {\n \"title\": \"str\",\n \"description\": \"str\",\n \"usage_examples\": \"array\"\n },\n \"annotation\": \"Team collaboration enabled - editors can see all runs\",\n \"description\": \"Collaborative task where editors can view all executions\",\n \"task_run_visibility\": \"editors_and_owners\",\n \"input_params\": [\n {\n \"name\": \"feature\",\n \"description\": \"Feature to document\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}") .asString();
https://docs.rightbrain.ai/llms-full.txt
120/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```
```php Task with collaborative visibility <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a technical documentation expert.", "user_prompt": "Generate documentation for: {{feature}}", "llm_model_id": "string", "name": "Team Documentation Generator", "enabled": true, "output_format": { "title": "str", "description": "str", "usage_examples": "array" }, "annotation": "Team collaboration enabled - editors can see all runs", "description": "Collaborative task where editors can view all executions", "task_run_visibility": "editors_and_owners", "input_params": [ { "name": "feature", "description": "Feature to document" } ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Task with collaborative visibility var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a technical documentation expert.\",\n \"user_prompt\": \"Generate documentation for: {{feature}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Team Documentation Generator\",\n \"enabled\": true,\n \"output_format\": {\n \"title\": \"str\",\n \"description\": \"str\",\n \"usage_examples\": \"array\"\n },\n \"annotation\": \"Team collaboration enabled - editors can see all runs\",\n \"description\": \"Collaborative task where editors can view all executions\",\n \"task_run_visibility\": \"editors_and_owners\",\n \"input_params\": [\n {\n \"name\": \"feature\",\n \"description\": \"Feature to document\"\n }\n ],\n \"llm_model\": \"ec217e75-72ea- 4281-a1b8-cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Task with collaborative visibility import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a technical documentation expert.", "user_prompt": "Generate documentation for: {{feature}}",
https://docs.rightbrain.ai/llms-full.txt
121/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"llm_model_id": "string", "name": "Team Documentation Generator", "enabled": true, "output_format": [ "title": "str", "description": "str", "usage_examples": "array" ], "annotation": "Team collaboration enabled - editors can see all runs", "description": "Collaborative task where editors can view all executions", "task_run_visibility": "editors_and_owners", "input_params": [ [ "name": "feature", "description": "Feature to document" ] ], "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Public task with full visibility import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload = { "system_prompt": "You are a helpful assistant.", "user_prompt": "Answer: {{question}}", "llm_model_id": "string", "name": "Public API Example", "enabled": True, "output_format": { "answer": "str" }, "annotation": "Public task - all viewers can see run history", "description": "Public task where all viewers can see executions", "public": True, "task_run_visibility": "all_viewers", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
https://docs.rightbrain.ai/llms-full.txt
122/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Public task with full visibility const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a helpful assistant.","user_prompt":"Answer: {{question}}","llm_model_id":"string","name":"Public API Example","enabled":true,"output_format":{"answer":"str"},"annotation":"Public task - all viewers can see run history","description":"Public task where all viewers can see executions","public":true,"task_run_visibility":"all_viewers","llm_model":"ec217e75-72ea- 4281-a1b8-cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Public task with full visibility package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a helpful
assistant.\",\n \"user_prompt\": \"Answer: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Public API Example\",\n \"enabled\": true,\n \"output_format\": {\n \"answer\": \"str\"\n },\n \"annotation\": \"Public task - all viewers can see run history\",\n \"description\": \"Public task where all viewers can see executions\",\n \"public\": true,\n \"task_run_visibility\": \"all_viewers\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Public task with full visibility require 'uri'
https://docs.rightbrain.ai/llms-full.txt
123/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Answer: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Public API Example\",\n \"enabled\": true,\n \"output_format\": {\n \"answer\": \"str\"\n },\n \"annotation\": \"Public task - all viewers can see run history\",\n \"description\": \"Public task where all viewers can see executions\",\n \"public\": true,\n \"task_run_visibility\": \"all_viewers\",\n \"llm_model\": \"ec217e75-72ea- 4281-a1b8-cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java Public task with full visibility HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Answer: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Public API Example\",\n \"enabled\": true,\n \"output_format\": {\n \"answer\": \"str\"\n },\n \"annotation\": \"Public task - all viewers can see run history\",\n \"description\": \"Public task where all viewers can see executions\",\n \"public\": true,\n \"task_run_visibility\": \"all_viewers\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\"\n}") .asString(); ```
```php Public task with full visibility <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a helpful assistant.", "user_prompt": "Answer: {{question}}", "llm_model_id": "string", "name": "Public API Example", "enabled": true, "output_format": { "answer": "str" }, "annotation": "Public task - all viewers can see run history", "description": "Public task where all viewers can see executions", "public": true, "task_run_visibility": "all_viewers", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
https://docs.rightbrain.ai/llms-full.txt
124/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```csharp Public task with full visibility var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a helpful assistant.\",\n \"user_prompt\": \"Answer: {{question}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Public API Example\",\n \"enabled\": true,\n \"output_format\": {\n \"answer\": \"str\"\n },\n \"annotation\": \"Public task - all viewers can see run history\",\n \"description\": \"Public task where all viewers can see executions\",\n \"public\": true,\n \"task_run_visibility\": \"all_viewers\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Public task with full visibility import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a helpful assistant.", "user_prompt": "Answer: {{question}}", "llm_model_id": "string", "name": "Public API Example", "enabled": true, "output_format": ["answer": "str"], "annotation": "Public task - all viewers can see run history", "description": "Public task where all viewers can see executions", "public": true, "task_run_visibility": "all_viewers", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
https://docs.rightbrain.ai/llms-full.txt
125/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
payload = { "system_prompt": "You are a helpful assistant that creates concise summaries.", "user_prompt": "Please summarize the following text: {{text}}", "llm_model_id": "string", "name": "Text Summarizer", "enabled": True, "output_format": [ { "name": "summary", "description": "Brief summary of the text" }, { "name": "key_points", "description": "List of key points", "type": "array" } ], "input_processors": [], "annotation": "Initial version for text summarization", "description": "Summarizes long text into key points", "public": False, "exposed_to_agents": False, "output_modality": "json", "input_params": [ { "name": "text", "description": "Text to summarize" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a helpful assistant that creates concise summaries.","user_prompt":"Please summarize the following text: {{text}}","llm_model_id":"string","name":"Text Summarizer","enabled":true,"output_format":[{"name":"summary","description":"Brief summary of the text"},{"name":"key_points","description":"List of key points","type":"array"}],"input_processors":[],"annotation":"Initial version for text summarization","description":"Summarizes long text into key points","public":false,"exposed_to_agents":false,"output_modality":"json","input_params": [{"name":"text","description":"Text to summarize"}],"output_format_type":"json","llm_model":"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
https://docs.rightbrain.ai/llms-full.txt
126/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```go package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a helpful
assistant that creates concise summaries.\",\n \"user_prompt\": \"Please summarize the following text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Text Summarizer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"summary\",\n \"description\": \"Brief summary of the text\"\n },\n {\n \"name\": \"key_points\",\n \"description\": \"List of key points\",\n \"type\": \"array\"\n }\n ],\n \"input_processors\": [],\n \"annotation\": \"Initial version for text summarization\",\n \"description\": \"Summarizes long text into key points\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to summarize\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a helpful assistant that creates concise summaries.\",\n \"user_prompt\": \"Please summarize the following text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Text Summarizer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"summary\",\n \"description\": \"Brief summary of the text\"\n },\n {\n \"name\": \"key_points\",\n \"description\": \"List of key points\",\n \"type\": \"array\"\n }\n ],\n \"input_processors\": [],\n \"annotation\": \"Initial version for text summarization\",\n \"description\": \"Summarizes long text into key points\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to summarize\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\":
https://docs.rightbrain.ai/llms-full.txt
127/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
\"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}"
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a helpful assistant that creates concise summaries.\",\n \"user_prompt\": \"Please summarize the following text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Text Summarizer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"summary\",\n \"description\": \"Brief summary of the text\"\n },\n {\n \"name\": \"key_points\",\n \"description\": \"List of key points\",\n \"type\": \"array\"\n }\n ],\n \"input_processors\": [],\n \"annotation\": \"Initial version for text summarization\",\n \"description\": \"Summarizes long text into key points\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to summarize\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task', [ 'body' => '{ "system_prompt": "You are a helpful assistant that creates concise summaries.", "user_prompt": "Please summarize the following text: {{text}}", "llm_model_id": "string", "name": "Text Summarizer", "enabled": true, "output_format": [ { "name": "summary", "description": "Brief summary of the text" }, { "name": "key_points", "description": "List of key points", "type": "array" } ], "input_processors": [], "annotation": "Initial version for text summarization", "description": "Summarizes long text into key points", "public": false, "exposed_to_agents": false, "output_modality": "json", "input_params": [ { "name": "text", "description": "Text to summarize" } ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json',
https://docs.rightbrain.ai/llms-full.txt
128/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a helpful assistant that creates concise summaries.\",\n \"user_prompt\": \"Please summarize the following text: {{text}}\",\n \"llm_model_id\": \"string\",\n \"name\": \"Text Summarizer\",\n \"enabled\": true,\n \"output_format\": [\n {\n \"name\": \"summary\",\n \"description\": \"Brief summary of the text\"\n },\n {\n \"name\": \"key_points\",\n \"description\": \"List of key points\",\n \"type\": \"array\"\n }\n ],\n \"input_processors\": [],\n \"annotation\": \"Initial version for text summarization\",\n \"description\": \"Summarizes long text into key points\",\n \"public\": false,\n \"exposed_to_agents\": false,\n \"output_modality\": \"json\",\n \"input_params\": [\n {\n \"name\": \"text\",\n \"description\": \"Text to summarize\"\n }\n ],\n \"output_format_type\": \"json\",\n \"llm_model\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a helpful assistant that creates concise summaries.", "user_prompt": "Please summarize the following text: {{text}}", "llm_model_id": "string", "name": "Text Summarizer", "enabled": true, "output_format": [ [ "name": "summary", "description": "Brief summary of the text" ], [ "name": "key_points", "description": "List of key points", "type": "array" ] ], "input_processors": [], "annotation": "Initial version for text summarization", "description": "Summarizes long text into key points", "public": false, "exposed_to_agents": false, "output_modality": "json", "input_params": [ [ "name": "text", "description": "Text to summarize" ] ], "output_format_type": "json", "llm_model": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
https://docs.rightbrain.ai/llms-full.txt
129/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Get Task Details
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}
Retrieve detailed information about a specific Task.
Returns the complete Task configuration including: - Basic properties (name, description, enabled status) - All revisions with their prompts and configurations - Currently active revisions and their traffic weights - Associated tags and metadata
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Get Task Details version: endpoint_tasks.getTask paths: /org/{org_id}/project/{project_id}/task/{task_id}: get: operationId: get-task summary: Get Task Details description: |- Retrieve detailed information about a specific Task.
Returns the complete Task configuration including: - Basic properties (name, description, enabled status) - All revisions with their prompts and configurations - Currently active revisions and their traffic weights - Associated tags and metadata tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id
https://docs.rightbrain.ai/llms-full.txt
130/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: revision_tag_id in: query description: Filter task_revisions by tag ID. required: false schema: type: string format: uuid - name: include_tests in: query description: Include test revisions required: false schema: type: boolean default: false - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Task details retrieved successfully content: application/json: schema: $ref: '#/components/schemas/Task' '400': description: Bad Request - Invalid task ID format content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this task content: {} '404': description: Task not found content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to retrieve task content: {} components: schemas: TaskOutputModality: type: string enum: - value: json - value: image - value: audio default: json TaskTaskRunVisibility: type: string
https://docs.rightbrain.ai/llms-full.txt
131/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
enum: - value: owner_only - value: editors_and_owners - value: all_viewers default: owner_only TagOutputFormat-Output: type: object additionalProperties: description: Any type TaskRevisionOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TaskRevisionOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Output' - $ref: '#/components/schemas/TaskRevisionOutputFormat1' TaskRAG: type: object properties: collection_id: type: string format: uuid rag_param: type: string required: - collection_id - rag_param TaskInputProcessor: type: object properties: param_name: type: string input_processor: type: string config: type: - object - 'null' additionalProperties: description: Any type required: - param_name - input_processor TagEntityType: type: string enum: - value: task - value: task_revision Tag: type: object properties: name: type: string description: >- Alphanumeric name for the tag (max 15 characters). Used to organize and filter Tasks and Task Revisions. parent_id: type: - string - 'null'
https://docs.rightbrain.ai/llms-full.txt
132/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
format: uuid description: >- Optional UUID of a parent tag. Used to create hierarchical tag structures (e.g., staging under production). entity_type: $ref: '#/components/schemas/TagEntityType' description: The type of entity this tag applies to (task or task_revision) id: type: string format: uuid description: Unique identifier for the tag. project_id: type: string format: uuid description: Project this tag belongs to. created_at: type: string description: ISO 8601 timestamp when the tag was created. children: type: array items: $ref: '#/components/schemas/Tag' description: >- List of child tags if this tag is used as a parent in a hierarchical structure. is_project_tag: type: boolean description: >- When true, indicates this is a project-level tag that can be used across multiple entity types. tagged_entities: type: array items: type: string format: uuid description: List of entity IDs this tag is associated with. required: - name - entity_type - id - project_id - created_at - is_project_tag LLMModelComment: type: object properties: title: type: string description: Brief title for the comment. description: type: string description: Detailed description of the comment or observation. active: type: boolean default: true description: Whether this comment is currently active/relevant. created: type: - string - 'null' description: When this comment was created. modified: type: - string - 'null' description: When this comment was last modified. id: type: string format: uuid
https://docs.rightbrain.ai/llms-full.txt
133/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
llm_model_id: type: string format: uuid required: - title - description - id - llm_model_id LLMModel: type: object properties: provider: type: string description: The company that produces the LLM (e.g., OpenAI, Anthropic, Meta). vendor: type: string description: >- The service provider or platform hosting the model (e.g., OpenAI, Azure, Groq). name: type: string description: The model's reference name used for API calls. alias: type: string description: Human-readable name for the model. description: type: string description: >- Detailed description of the model's capabilities, context window, and knowledge cutoff. supports_vision: type: boolean description: Whether the model can process and analyze images. supports_image_output: type: boolean default: false description: Whether the model can generate images as output. max_context_window: type: integer description: Maximum number of tokens the model can process in a single request. model_params: type: - object - 'null' additionalProperties: description: Any type description: >- JSON Schema defining allowed model parameters for this model. Each parameter name maps to a JSON Schema specification defining its type, constraints, and validation rules. created: type: - string - 'null' modified: type: - string - 'null' id: type: string format: uuid replaced_by: type: - string - 'null' format: uuid retired: type:
https://docs.rightbrain.ai/llms-full.txt
134/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
string - 'null' llm_model_comments: type: array items: $ref: '#/components/schemas/LLMModelComment' required: - provider - vendor - name - alias - description - supports_vision - max_context_window - id TaskRevision: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TaskRevisionOutputFormat' description: >- 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. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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. image_required: 135/200
string - 'null' llm_model_comments: type: array items: $ref: '#/components/schemas/LLMModelComment' required: - provider - vendor - name - alias - description - supports_vision - max_context_window - id TaskRevision: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TaskRevisionOutputFormat' description: >- 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. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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. image_required: 135/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: boolean default: false description: When `true` it requires an image to be sent in the Task Run request. optimise_images: type: boolean default: true description: >- When `true` (default) images will be automatically optimised before processing. Set to `false` to disable lossy image optimisation. test: type: boolean default: false description: >- True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration. input_processors: type: array items: $ref: '#/components/schemas/TaskInputProcessor' annotation: type: - string - 'null' description: >- Optional note or comment about this revision. Useful for tracking changes, experiments, or the purpose of test revisions. fallback_llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use as fallback if the primary model fails. fallback_llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the fallback LLM model. id: type: string format: uuid description: The unique identifier of the Revision. created: type: string description: When the Task was created. modified: type: - string - 'null' description: When the Task was last updated. active: type: boolean default: false description: >- When `true` the Revision is the currently active version and will be activated when the Task Run is executed. tags: type: array items: $ref: '#/components/schemas/Tag' llm_model: $ref: '#/components/schemas/LLMModel' fallback_llm_model: oneOf: - $ref: '#/components/schemas/LLMModel' - type: 'null' input_params:
https://docs.rightbrain.ai/llms-full.txt
136/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: array items: type: string description: >- A list of all the dynamic input parameters that are detected from the user prompt. required: - system_prompt - user_prompt - llm_model_id - id - created - modified - llm_model - input_params TaskActiveRevision: type: object properties: task_revision_id: type: string format: uuid description: >- The unique identifier of the Task Revision to activate. Each Task can have multiple revisions, but only active ones will be used for execution. weight: type: - number - 'null' format: double default: 1 description: >- The traffic weight for this revision (between 0 and 1). When multiple revisions are active, weights determine the proportion of traffic each receives. Must sum to 1.0 across all active revisions. required: - task_revision_id Task: type: object properties: name: type: string description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference. enabled: type: boolean description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. public: type: boolean default: false description: When `true` the Task is public and can be accessed by any User. exposed_to_agents: type: boolean default: false description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. output_modality: $ref: '#/components/schemas/TaskOutputModality' description: >- Specifies the output modality of the task. Can be 'json' or 'image'. Defaults to 'json'. task_run_visibility:
https://docs.rightbrain.ai/llms-full.txt
137/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt $ref: '#/components/schemas/TaskTaskRunVisibility' description: >- 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. id: type: string format: uuid description: The unique identifier of the Task. project_id: type: string format: uuid description: The Project that the Task belongs to. created: type: string description: When the Task was created. modified: type: - string - 'null' description: When the Task was last updated. revisions: type: array items: $ref: '#/components/schemas/TaskRevision' description: >- 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. access_token: type: - string - 'null' description: >- Task specific Bearer token that can be used to authenticated when executing this Task. active_revisions: type: array items: $ref: '#/components/schemas/TaskActiveRevision' description: The revision currently active for this Task. cloned_from_task_revision_id: type: - string - 'null' format: uuid description: >- The unique identifier of the task revision this task was cloned from, if applicable. tags: type: array items: $ref: '#/components/schemas/Tag' required: - name - enabled - id - project_id - created - access_token - active_revisions
```
## SDK Code Examples
```python import requests
https://docs.rightbrain.ai/llms-full.txt
138/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url)
https://docs.rightbrain.ai/llms-full.txt
139/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Update a Task
https://docs.rightbrain.ai/llms-full.txt
140/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
POST https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id} Content-Type: application/json
Update an existing Task with new configuration or create a new revision.
When updating a Task, you can: 1. Modify basic Task properties (name, description, enabled status, task_run_visibility) 2. Create a new revision with updated prompts, models, and configuration (including fallback models) 3. Manage active revisions and their traffic weights for A/B testing 4. Update tags for the Task or specific revisions
Task Run Visibility Control: - Update `task_run_visibility` to control who can view all task runs - Options: `owner_only`, `editors_and_owners`, `all_viewers`
Fallback Model Support: - Configure `fallback_llm_model_id` and `fallback_llm_config` for automatic failover - Improves reliability when primary model encounters errors or rate limits
Note: Creating a new revision does not automatically make it active. Use the active_revisions field to control which revisions receive traffic.
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/update-task
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Update a Task version: endpoint_tasks.updateTask paths: /org/{org_id}/project/{project_id}/task/{task_id}: post: operationId: update-task summary: Update a Task description: >- Update an existing Task with new configuration or create a new revision.
When updating a Task, you can:
1. Modify basic Task properties (name, description, enabled status, task_run_visibility)
2. Create a new revision with updated prompts, models, and configuration (including fallback models)
3. Manage active revisions and their traffic weights for A/B testing
4. Update tags for the Task or specific revisions
Task Run Visibility Control:
Update `task_run_visibility` to control who can view all task runs
Options: `owner_only`, `editors_and_owners`, `all_viewers`
Fallback Model Support:
Configure `fallback_llm_model_id` and `fallback_llm_config` for automatic failover
- Improves reliability when primary model encounters errors or rate limits
https://docs.rightbrain.ai/llms-full.txt
141/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Note: Creating a new revision does not automatically make it active. Use the active_revisions field to control which revisions receive traffic. tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Task updated successfully content: application/json: schema: $ref: '#/components/schemas/Task' '400': description: Bad Request - Invalid task configuration content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this tasks content: {} '404': description: Task or referenced resource not found content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to update task content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskUpdate' components: schemas: TagOutputFormatInputType: type: string enum:
https://docs.rightbrain.ai/llms-full.txt
142/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' - $ref: '#/components/schemas/TagOutputFormatInputNestedStructure1' TagOutputFormatInputItemType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormat-Input: type: object properties: type: $ref: '#/components/schemas/TagOutputFormatInputType' description: The desired output type from the LLM. description: type: - string - 'null' description: A description of the desired content. nested_structure: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TagOutputFormatInputNestedStructure' description: For lists optionally define the list structure. options: type: - array - 'null' items: type: string description: Options to constrain the response to a specific set of values. item_type: oneOf: - $ref: '#/components/schemas/TagOutputFormatInputItemType' - type: 'null' description: For lists, the type of items within the list. required: - type 143/200
value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormatInputNestedStructure: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' - $ref: '#/components/schemas/TagOutputFormatInputNestedStructure1' TagOutputFormatInputItemType: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TagOutputFormat-Input: type: object properties: type: $ref: '#/components/schemas/TagOutputFormatInputType' description: The desired output type from the LLM. description: type: - string - 'null' description: A description of the desired content. nested_structure: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TagOutputFormatInputNestedStructure' description: For lists optionally define the list structure. options: type: - array - 'null' items: type: string description: Options to constrain the response to a specific set of values. item_type: oneOf: - $ref: '#/components/schemas/TagOutputFormatInputItemType' - type: 'null' description: For lists, the type of items within the list. required: - type 143/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
TaskUpdateOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TaskUpdateOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Input' - $ref: '#/components/schemas/TaskUpdateOutputFormat1' TaskRAG: type: object properties: collection_id: type: string format: uuid rag_param: type: string required: - collection_id - rag_param TaskInputProcessor: type: object properties: param_name: type: string input_processor: type: string config: type: - object - 'null' additionalProperties: description: Any type required: - param_name - input_processor TaskUpdateTaskRunVisibility: type: string enum: - value: owner_only - value: editors_and_owners - value: all_viewers TaskActiveRevision: type: object properties: task_revision_id: type: string format: uuid description: >- The unique identifier of the Task Revision to activate. Each Task can have multiple revisions, but only active ones will be used for execution. weight: type: - number - 'null' format: double default: 1 description: >- The traffic weight for this revision (between 0 and 1). When multiple revisions are active, weights determine the proportion of traffic each receives. Must sum to 1.0 across all active revisions.
https://docs.rightbrain.ai/llms-full.txt
144/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
required: - task_revision_id TaskUpdate: type: object properties: system_prompt: type: - string - 'null' description: The system prompt that is used to set the LLM context. user_prompt: type: - string - 'null' description: >- 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. llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use for the Task. llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TaskUpdateOutputFormat' description: >- 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. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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. image_required: type: - boolean - 'null' description: When `true` it requires an image to be sent in the Task Run request.
https://docs.rightbrain.ai/llms-full.txt
145/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
annotation: type: - string - 'null' test: type: boolean default: false description: >- True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration. input_processors: type: array items: $ref: '#/components/schemas/TaskInputProcessor' optimise_images: type: - boolean - 'null' default: true description: >- When `true` (default) images will be automatically optimised before processing. Set to `false` to disable lossy image optimisation. fallback_llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use as fallback if the primary model fails. fallback_llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the fallback LLM model. name: type: - string - 'null' description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference. enabled: type: - boolean - 'null' description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. exposed_to_agents: type: - boolean - 'null' description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. task_run_visibility: oneOf: - $ref: '#/components/schemas/TaskUpdateTaskRunVisibility' - type: 'null' description: >- 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. active_revisions:
https://docs.rightbrain.ai/llms-full.txt
146/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: - array - 'null' items: $ref: '#/components/schemas/TaskActiveRevision' description: The revision currently active for this Task. tags: type: - array - 'null' items: type: string format: uuid revision_tags: type: - array - 'null' items: type: string format: uuid TaskOutputModality: type: string enum: - value: json - value: image - value: audio default: json TaskTaskRunVisibility: type: string enum: - value: owner_only - value: editors_and_owners - value: all_viewers default: owner_only TagOutputFormat-Output: type: object additionalProperties: description: Any type TaskRevisionOutputFormat1: type: string enum: - value: str - value: string - value: boolean - value: bool - value: int - value: integer - value: list - value: object - value: number TaskRevisionOutputFormat: oneOf: - $ref: '#/components/schemas/TagOutputFormat-Output' - $ref: '#/components/schemas/TaskRevisionOutputFormat1' TagEntityType: type: string enum: - value: task - value: task_revision Tag: type: object properties: name: type: string description: >- Alphanumeric name for the tag (max 15 characters). Used to organize and filter Tasks and Task Revisions. parent_id: type:
https://docs.rightbrain.ai/llms-full.txt
147/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
string - 'null' format: uuid description: >- Optional UUID of a parent tag. Used to create hierarchical tag structures (e.g., staging under production). entity_type: $ref: '#/components/schemas/TagEntityType' description: The type of entity this tag applies to (task or task_revision) id: type: string format: uuid description: Unique identifier for the tag. project_id: type: string format: uuid description: Project this tag belongs to. created_at: type: string description: ISO 8601 timestamp when the tag was created. children: type: array items: $ref: '#/components/schemas/Tag' description: >- List of child tags if this tag is used as a parent in a hierarchical structure. is_project_tag: type: boolean description: >- When true, indicates this is a project-level tag that can be used across multiple entity types. tagged_entities: type: array items: type: string format: uuid description: List of entity IDs this tag is associated with. required: - name - entity_type - id - project_id - created_at - is_project_tag LLMModelComment: type: object properties: title: type: string description: Brief title for the comment. description: type: string description: Detailed description of the comment or observation. active: type: boolean default: true description: Whether this comment is currently active/relevant. created: type: - string - 'null' description: When this comment was created. modified: type: - string - 'null' description: When this comment was last modified. id: 148/200
string - 'null' format: uuid description: >- Optional UUID of a parent tag. Used to create hierarchical tag structures (e.g., staging under production). entity_type: $ref: '#/components/schemas/TagEntityType' description: The type of entity this tag applies to (task or task_revision) id: type: string format: uuid description: Unique identifier for the tag. project_id: type: string format: uuid description: Project this tag belongs to. created_at: type: string description: ISO 8601 timestamp when the tag was created. children: type: array items: $ref: '#/components/schemas/Tag' description: >- List of child tags if this tag is used as a parent in a hierarchical structure. is_project_tag: type: boolean description: >- When true, indicates this is a project-level tag that can be used across multiple entity types. tagged_entities: type: array items: type: string format: uuid description: List of entity IDs this tag is associated with. required: - name - entity_type - id - project_id - created_at - is_project_tag LLMModelComment: type: object properties: title: type: string description: Brief title for the comment. description: type: string description: Detailed description of the comment or observation. active: type: boolean default: true description: Whether this comment is currently active/relevant. created: type: - string - 'null' description: When this comment was created. modified: type: - string - 'null' description: When this comment was last modified. id: 148/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: string format: uuid llm_model_id: type: string format: uuid required: - title - description - id - llm_model_id LLMModel: type: object properties: provider: type: string description: The company that produces the LLM (e.g., OpenAI, Anthropic, Meta). vendor: type: string description: >- The service provider or platform hosting the model (e.g., OpenAI, Azure, Groq). name: type: string description: The model's reference name used for API calls. alias: type: string description: Human-readable name for the model. description: type: string description: >- Detailed description of the model's capabilities, context window, and knowledge cutoff. supports_vision: type: boolean description: Whether the model can process and analyze images. supports_image_output: type: boolean default: false description: Whether the model can generate images as output. max_context_window: type: integer description: Maximum number of tokens the model can process in a single request. model_params: type: - object - 'null' additionalProperties: description: Any type description: >- JSON Schema defining allowed model parameters for this model. Each parameter name maps to a JSON Schema specification defining its type, constraints, and validation rules. created: type: - string - 'null' modified: type: - string - 'null' id: type: string format: uuid replaced_by: type: - string - 'null' format: uuid
https://docs.rightbrain.ai/llms-full.txt
149/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
retired: type: - string - 'null' llm_model_comments: type: array items: $ref: '#/components/schemas/LLMModelComment' required: - provider - vendor - name - alias - description - supports_vision - max_context_window - id TaskRevision: type: object properties: system_prompt: type: string description: The system prompt that is used to set the LLM context. user_prompt: type: string description: >- 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. llm_model_id: type: string format: uuid description: The LLM model to use for the Task. llm_config: type: object additionalProperties: description: Any type description: Specific configuration parameters for the LLM model. output_format: type: - object - 'null' additionalProperties: $ref: '#/components/schemas/TaskRevisionOutputFormat' description: >- 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. task_forwarder_id: type: - string - 'null' format: uuid description: >- The unique identifier for a valid Task Forwarder. It is used to forward the Task output to another system or service. rag: oneOf: - $ref: '#/components/schemas/TaskRAG' - type: 'null' description: >- **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
https://docs.rightbrain.ai/llms-full.txt
150/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
be a product catalogue, terms and conditions or a user manual. image_required: type: boolean default: false description: When `true` it requires an image to be sent in the Task Run request. optimise_images: type: boolean default: true description: >- When `true` (default) images will be automatically optimised before processing. Set to `false` to disable lossy image optimisation. test: type: boolean default: false description: >- True if revision is a test revision. Test revisions cannot be live and are used for rapid Task testing/iteration. input_processors: type: array items: $ref: '#/components/schemas/TaskInputProcessor' annotation: type: - string - 'null' description: >- Optional note or comment about this revision. Useful for tracking changes, experiments, or the purpose of test revisions. fallback_llm_model_id: type: - string - 'null' format: uuid description: The LLM model to use as fallback if the primary model fails. fallback_llm_config: type: - object - 'null' additionalProperties: description: Any type description: Specific configuration parameters for the fallback LLM model. id: type: string format: uuid description: The unique identifier of the Revision. created: type: string description: When the Task was created. modified: type: - string - 'null' description: When the Task was last updated. active: type: boolean default: false description: >- When `true` the Revision is the currently active version and will be activated when the Task Run is executed. tags: type: array items: $ref: '#/components/schemas/Tag' llm_model: $ref: '#/components/schemas/LLMModel' fallback_llm_model: oneOf: - $ref: '#/components/schemas/LLMModel'
https://docs.rightbrain.ai/llms-full.txt
151/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: 'null' input_params: type: array items: type: string description: >- A list of all the dynamic input parameters that are detected from the user prompt. required: - system_prompt - user_prompt - llm_model_id - id - created - modified - llm_model - input_params Task: type: object properties: name: type: string description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference. enabled: type: boolean description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. public: type: boolean default: false description: When `true` the Task is public and can be accessed by any User. exposed_to_agents: type: boolean default: false description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. output_modality: $ref: '#/components/schemas/TaskOutputModality' description: >- Specifies the output modality of the task. Can be 'json' or 'image'. Defaults to 'json'. task_run_visibility: $ref: '#/components/schemas/TaskTaskRunVisibility' description: >- 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. id: type: string format: uuid description: The unique identifier of the Task. project_id: type: string format: uuid description: The Project that the Task belongs to. created: type: string description: When the Task was created. modified: type: - string 152/200
type: 'null' input_params: type: array items: type: string description: >- A list of all the dynamic input parameters that are detected from the user prompt. required: - system_prompt - user_prompt - llm_model_id - id - created - modified - llm_model - input_params Task: type: object properties: name: type: string description: A name or reference for the Task. description: type: - string - 'null' description: A longer description of the Task for internal reference. enabled: type: boolean description: >- When `true` the Task is active and callable. `false` denotes the Task is not yet operational. public: type: boolean default: false description: When `true` the Task is public and can be accessed by any User. exposed_to_agents: type: boolean default: false description: >- When `true` the Task is accessible to agents through the unauthenticated agent endpoint. output_modality: $ref: '#/components/schemas/TaskOutputModality' description: >- Specifies the output modality of the task. Can be 'json' or 'image'. Defaults to 'json'. task_run_visibility: $ref: '#/components/schemas/TaskTaskRunVisibility' description: >- 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. id: type: string format: uuid description: The unique identifier of the Task. project_id: type: string format: uuid description: The Project that the Task belongs to. created: type: string description: When the Task was created. modified: type: - string 152/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
'null' description: When the Task was last updated. revisions: type: array items: $ref: '#/components/schemas/TaskRevision' description: >- 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. access_token: type: - string - 'null' description: >- Task specific Bearer token that can be used to authenticated when executing this Task. active_revisions: type: array items: $ref: '#/components/schemas/TaskActiveRevision' description: The revision currently active for this Task. cloned_from_task_revision_id: type: - string - 'null' format: uuid description: >- The unique identifier of the task revision this task was cloned from, if applicable. tags: type: array items: $ref: '#/components/schemas/Tag' required: - name - enabled - id - project_id - created - access_token - active_revisions payload = { "system_prompt": "You are an updated assistant.", "user_prompt": "Updated prompt: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "output_format": { "response": { "type": "str", "description": "Updated response" } }, "annotation": "Version 2 with improved prompts", "test": False, "name": "My Task v2" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"
https://docs.rightbrain.ai/llms-full.txt
153/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
}
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Create new revision const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are an updated assistant.","user_prompt":"Updated prompt: {{input}}","llm_model_id":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41","output_format": {"response":{"type":"str","description":"Updated response"}},"annotation":"Version 2 with improved prompts","test":false,"name":"My Task v2"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Create new revision package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload := strings.NewReader("{\n \"system_prompt\": \"You are an updated
assistant.\",\n \"user_prompt\": \"Updated prompt: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"output_format\": {\n \"response\": {\n \"type\": \"str\",\n \"description\": \"Updated response\"\n }\n },\n \"annotation\": \"Version 2 with improved prompts\",\n \"test\": false,\n \"name\": \"My Task v2\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Create new revision
https://docs.rightbrain.ai/llms-full.txt
154/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are an updated assistant.\",\n \"user_prompt\": \"Updated prompt: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea- 4281-a1b8-cb7bd0ef9f41\",\n \"output_format\": {\n \"response\": {\n \"type\": \"str\",\n \"description\": \"Updated response\"\n }\n },\n \"annotation\": \"Version 2 with improved prompts\",\n \"test\": false,\n \"name\": \"My Task v2\"\n}"
response = http.request(request) puts response.read_body ```
```java Create new revision HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are an updated assistant.\",\n \"user_prompt\": \"Updated prompt: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\",\n \"output_format\": {\n \"response\": {\n \"type\": \"str\",\n \"description\": \"Updated response\"\n }\n },\n \"annotation\": \"Version 2 with improved prompts\",\n \"test\": false,\n \"name\": \"My Task v2\"\n}") .asString(); ```
```php Create new revision <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'body' => '{ "system_prompt": "You are an updated assistant.", "user_prompt": "Updated prompt: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "output_format": { "response": { "type": "str", "description": "Updated response" } }, "annotation": "Version 2 with improved prompts", "test": false, "name": "My Task v2" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
https://docs.rightbrain.ai/llms-full.txt
155/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```csharp Create new revision var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are an updated assistant.\",\n \"user_prompt\": \"Updated prompt: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"output_format\": {\n \"response\": {\n \"type\": \"str\",\n \"description\": \"Updated response\"\n }\n },\n \"annotation\": \"Version 2 with improved prompts\",\n \"test\": false,\n \"name\": \"My Task v2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Create new revision import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are an updated assistant.", "user_prompt": "Updated prompt: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "output_format": ["response": [ "type": "str", "description": "Updated response" ]], "annotation": "Version 2 with improved prompts", "test": false, "name": "My Task v2" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Update task visibility import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
https://docs.rightbrain.ai/llms-full.txt
156/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
payload = { "enabled": True, "exposed_to_agents": True, "public": True } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Update task visibility const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"exposed_to_agents":true,"public":true}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Update task visibility package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload := strings.NewReader("{\n \"enabled\": true,\n \"exposed_to_agents\":
true,\n \"public\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
https://docs.rightbrain.ai/llms-full.txt
157/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```ruby Update task visibility require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"enabled\": true,\n \"exposed_to_agents\": true,\n \"public\": true\n}"
response = http.request(request) puts response.read_body ```
```java Update task visibility HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"enabled\": true,\n \"exposed_to_agents\": true,\n \"public\": true\n}") .asString(); ```
```php Update task visibility <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'body' => '{ "enabled": true, "exposed_to_agents": true, "public": true }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Update task visibility var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"enabled\": true,\n \"exposed_to_agents\": true,\n \"public\": true\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Update task visibility import Foundation
https://docs.rightbrain.ai/llms-full.txt
158/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "enabled": true, "exposed_to_agents": true, "public": true ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Create test revision import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload = { "system_prompt": "Test prompt", "user_prompt": "Test: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Testing new approach", "test": True, "optimise_images": False } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Create test revision const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"Test prompt","user_prompt":"Test:
https://docs.rightbrain.ai/llms-full.txt
159/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
{{input}}","llm_model_id":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41","annotation":"Testing new approach","test":true,"optimise_images":false}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Create test revision package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload := strings.NewReader("{\n \"system_prompt\": \"Test prompt\",\n
\"user_prompt\": \"Test: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\",\n \"annotation\": \"Testing new approach\",\n \"test\": true,\n \"optimise_images\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Create test revision require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"Test prompt\",\n \"user_prompt\": \"Test: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"annotation\": \"Testing new approach\",\n \"test\": true,\n \"optimise_images\": false\n}"
https://docs.rightbrain.ai/llms-full.txt
160/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
response = http.request(request) puts response.read_body ```
```java Create test revision HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"Test prompt\",\n \"user_prompt\": \"Test: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"annotation\": \"Testing new approach\",\n \"test\": true,\n \"optimise_images\": false\n}") .asString(); ```
```php Create test revision <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'body' => '{ "system_prompt": "Test prompt", "user_prompt": "Test: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Testing new approach", "test": true, "optimise_images": false }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Create test revision var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"Test prompt\",\n \"user_prompt\": \"Test: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\",\n \"annotation\": \"Testing new approach\",\n \"test\": true,\n \"optimise_images\": false\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Create test revision import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "Test prompt", "user_prompt": "Test: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Testing new approach",
https://docs.rightbrain.ai/llms-full.txt
161/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"test": true, "optimise_images": false ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python Update with fallback model import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload = { "system_prompt": "You are a reliable assistant.", "user_prompt": "Process: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Added fallback for reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript Update with fallback model const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"system_prompt":"You are a reliable assistant.","user_prompt":"Process: {{input}}","llm_model_id":"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41","annotation":"Added fallback for reliability","fallback_llm_model_id":"af2a9bbf-5f36-4b12-bd3f- 92c57be96dec"}' };
try { const response = await fetch(url, options);
https://docs.rightbrain.ai/llms-full.txt
162/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go Update with fallback model package main
import (
"fmt" "strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload := strings.NewReader("{\n \"system_prompt\": \"You are a reliable
assistant.\",\n \"user_prompt\": \"Process: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"annotation\": \"Added fallback for reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f- 92c57be96dec\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby Update with fallback model require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"system_prompt\": \"You are a reliable assistant.\",\n \"user_prompt\": \"Process: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8- cb7bd0ef9f41\",\n \"annotation\": \"Added fallback for reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\"\n}"
response = http.request(request) puts response.read_body ```
```java Update with fallback model
https://docs.rightbrain.ai/llms-full.txt
163/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"system_prompt\": \"You are a reliable assistant.\",\n \"user_prompt\": \"Process: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"annotation\": \"Added fallback for reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f-92c57be96dec\"\n}") .asString(); ```
```php Update with fallback model <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'body' => '{ "system_prompt": "You are a reliable assistant.", "user_prompt": "Process: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Added fallback for reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp Update with fallback model var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"system_prompt\": \"You are a reliable assistant.\",\n \"user_prompt\": \"Process: {{input}}\",\n \"llm_model_id\": \"ec217e75-72ea-4281-a1b8-cb7bd0ef9f41\",\n \"annotation\": \"Added fallback for reliability\",\n \"fallback_llm_model_id\": \"af2a9bbf-5f36-4b12-bd3f- 92c57be96dec\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift Update with fallback model import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "system_prompt": "You are a reliable assistant.", "user_prompt": "Process: {{input}}", "llm_model_id": "ec217e75-72ea-4281-a1b8-cb7bd0ef9f41", "annotation": "Added fallback for reliability", "fallback_llm_model_id": "af2a9bbf-5f36-4b12-bd3f-92c57be96dec" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
https://docs.rightbrain.ai/llms-full.txt
164/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload = { "name": "Updated Task Name", "description": "Updated description" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" }
response = requests.post(url, json=payload, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Updated Task Name","description":"Updated description"}' };
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt"
https://docs.rightbrain.ai/llms-full.txt
165/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
"strings" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
payload := strings.NewReader("{\n \"name\": \"Updated Task Name\",\n
\"description\": \"Updated description\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"name\": \"Updated Task Name\",\n \"description\": \"Updated description\"\n}"
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.post("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"name\": \"Updated Task Name\",\n \"description\": \"Updated description\"\n}") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-
https://docs.rightbrain.ai/llms-full.txt
166/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74', [ 'body' => '{ "name": "Updated Task Name", "description": "Updated description" }', 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer <token>"); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"name\": \"Updated Task Name\",\n \"description\": \"Updated description\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = [ "Authorization": "Bearer <token>", "Content-Type": "application/json" ] let parameters = [ "name": "Updated Task Name", "description": "Updated description" ] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Delete Task
DELETE https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}
https://docs.rightbrain.ai/llms-full.txt
167/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Delete a task and all its associated data.
This operation will permanently remove: - The task configuration - All task runs and their outputs - Associated documents and files - Task history and analytics
The deletion is irreversible. Ensure you have exported any important data before deletion.
**Note**: You must have edit permission on the task to delete it.
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/delete-task
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Delete Task version: endpoint_tasks.deleteTask paths: /org/{org_id}/project/{project_id}/task/{task_id}: delete: operationId: delete-task summary: Delete Task description: >- Delete a task and all its associated data.
This operation will permanently remove:
The task configuration
All task runs and their outputs
Associated documents and files
Task history and analytics
The deletion is irreversible. Ensure you have exported any important data before deletion.
**Note**: You must have edit permission on the task to delete it. tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema:
https://docs.rightbrain.ai/llms-full.txt
168/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: string format: uuid - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: description: Any type '400': description: Bad Request content: {} '403': description: Forbidden - You don't have permission to access this task content: {} '404': description: Task not found content: {} '422': description: Validation Error content: {}
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
https://docs.rightbrain.ai/llms-full.txt
169/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Delete.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.delete("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://app.rightbrain.ai/api/v1/org/123e4567- e89b-12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843- 3596-da54-4756-28af46917e74', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74");
https://docs.rightbrain.ai/llms-full.txt
170/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
var request = new RestRequest(Method.DELETE); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74'; const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
https://docs.rightbrain.ai/llms-full.txt
171/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Delete.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.delete("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://app.rightbrain.ai/api/v1/org/123e4567- e89b-12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843- 3596-da54-4756-28af46917e74', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-
https://docs.rightbrain.ai/llms-full.txt
172/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
4756-28af46917e74"); var request = new RestRequest(Method.DELETE); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Fetch Token Report
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}/token_r eport
Retrieve detailed token usage statistics for a specific task.
This endpoint provides comprehensive token consumption data, including: - Total tokens used across all task runs - Token usage breakdown by time period - Average tokens per request - Usage patterns and trends
Parameters: - start_date: Filter data from this date onward (supports both absolute dates and relative times) - end_date: Filter data up to this date (supports both absolute dates and relative times)
Date Format Options: 1. Absolute dates: 'YYYY-MM-DD' (e.g., '2024-01-15') 2. Relative times: - 'now', 'today', 'yesterday' - 'X hours/days/weeks ago' (e.g., '24 hours ago', '7 days ago') - 'last week', 'last month'
Common Use Cases: 1. Monitoring token consumption trends 2. Cost analysis and budgeting 3. Usage pattern analysis 4. Resource allocation planning
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task-token- report
https://docs.rightbrain.ai/llms-full.txt
173/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Fetch Token Report version: endpoint_tasks.getTaskTokenReport paths: /org/{org_id}/project/{project_id}/task/{task_id}/token_report: get: operationId: get-task-token-report summary: Fetch Token Report description: >- Retrieve detailed token usage statistics for a specific task.
This endpoint provides comprehensive token consumption data, including:
Total tokens used across all task runs
Token usage breakdown by time period
Average tokens per request
Usage patterns and trends
Parameters:
start_date: Filter data from this date onward (supports both absolute dates and relative times)
end_date: Filter data up to this date (supports both absolute dates and relative times)
Date Format Options:
1. Absolute dates: 'YYYY-MM-DD' (e.g., '2024-01-15')
2. Relative times: - 'now', 'today', 'yesterday' - 'X hours/days/weeks ago' (e.g., '24 hours ago', '7 days ago') - 'last week', 'last month' Common Use Cases:
1. Monitoring token consumption trends
2. Cost analysis and budgeting
3. Usage pattern analysis
4. Resource allocation planning tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema:
https://docs.rightbrain.ai/llms-full.txt
174/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: start_date in: query description: >- Start date for the report (e.g., '2023-06-01', '24 hours ago', 'yesterday'). required: false schema: type: string - name: end_date in: query description: End date for the report (e.g., '2023-06-30', 'now', 'today'). required: false schema: type: string - name: show_reporting_group in: query description: If true, include reporting group in the report. required: false schema: type: boolean default: false - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successfully retrieved token usage report content: application/json: schema: $ref: '#/components/schemas/TaskRunTokenReport' '400': description: Bad Request - Invalid date format or range content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: >- Forbidden - You don't have permission to access this token usage data content: {} '404': description: Task not found content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500': description: Internal Server Error - Failed to retrieve token usage data content: {} components: schemas: TaskRunRevisionTokenReportTaskRevisionId: oneOf: - type: string format: uuid
https://docs.rightbrain.ai/llms-full.txt
175/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: string TaskRunRevisionTokenReport: type: object properties: task_revision_id: $ref: '#/components/schemas/TaskRunRevisionTokenReportTaskRevisionId' description: Unique identifier of the task revision, or 'test' for test revisions reporting_group: type: - string - 'null' description: >- The name of the reporting group, or None if no reporting group is assigned. Only present when grouping by reporting groups. total_input_tokens: type: integer description: >- Total number of input tokens consumed by this revision during the reporting period total_output_tokens: type: integer description: >- Total number of output tokens generated by this revision during the reporting period total_tokens: type: integer description: Combined total of input and output tokens for this revision total_task_runs: type: integer description: >- Number of times this revision was executed during the reporting period required: - task_revision_id - total_input_tokens - total_output_tokens - total_tokens - total_task_runs TaskRunTokenReport: type: object properties: task_id: type: string format: uuid description: Unique identifier of the task date_range: type: object additionalProperties: type: string description: Time period covered by the report, with start and end timestamps total_input_tokens: type: integer description: Total number of input tokens consumed across all revisions and runs total_output_tokens: type: integer description: >- Total number of output tokens generated across all revisions and runs total_tokens: type: integer description: Combined total of input and output tokens across all revisions total_task_runs: type: integer description: Total number of task executions across all revisions task_revisions: type: array items: 176/200
type: string TaskRunRevisionTokenReport: type: object properties: task_revision_id: $ref: '#/components/schemas/TaskRunRevisionTokenReportTaskRevisionId' description: Unique identifier of the task revision, or 'test' for test revisions reporting_group: type: - string - 'null' description: >- The name of the reporting group, or None if no reporting group is assigned. Only present when grouping by reporting groups. total_input_tokens: type: integer description: >- Total number of input tokens consumed by this revision during the reporting period total_output_tokens: type: integer description: >- Total number of output tokens generated by this revision during the reporting period total_tokens: type: integer description: Combined total of input and output tokens for this revision total_task_runs: type: integer description: >- Number of times this revision was executed during the reporting period required: - task_revision_id - total_input_tokens - total_output_tokens - total_tokens - total_task_runs TaskRunTokenReport: type: object properties: task_id: type: string format: uuid description: Unique identifier of the task date_range: type: object additionalProperties: type: string description: Time period covered by the report, with start and end timestamps total_input_tokens: type: integer description: Total number of input tokens consumed across all revisions and runs total_output_tokens: type: integer description: >- Total number of output tokens generated across all revisions and runs total_tokens: type: integer description: Combined total of input and output tokens across all revisions total_task_runs: type: integer description: Total number of task executions across all revisions task_revisions: type: array items: 176/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
$ref: '#/components/schemas/TaskRunRevisionTokenReport' description: >- Token usage breakdown by task revision, showing detailed statistics for each active revision required: - task_id - date_range - total_input_tokens - total_output_tokens - total_tokens - total_task_runs - task_revisions
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
https://docs.rightbrain.ai/llms-full.txt
177/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74/token_report', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74/token_report"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/token_report")! as URL, cachePolicy: .useProtocolCachePolicy,
https://docs.rightbrain.ai/llms-full.txt
178/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Fetch Usage Report
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}/usage_r eport
Retrieve usage statistics for task executions.
This endpoint provides detailed usage data about task runs, including: - Number of executions over time - Success and failure rates - Usage patterns by time period - Aggregated metrics by day or week
Use this data to: 1. Monitor task usage patterns 2. Track execution success rates 3. Analyze usage trends 4. Plan capacity and scaling
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task-usage- report
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Fetch Usage Report version: endpoint_tasks.getTaskUsageReport paths: /org/{org_id}/project/{project_id}/task/{task_id}/usage_report: get: operationId: get-task-usage-report summary: Fetch Usage Report description: |- Retrieve usage statistics for task executions.
This endpoint provides detailed usage data about task runs, including: - Number of executions over time - Success and failure rates - Usage patterns by time period - Aggregated metrics by day or week
Use this data to: 1. Monitor task usage patterns 2. Track execution success rates 3. Analyze usage trends 4. Plan capacity and scaling tags: - - subpackage_tasks
https://docs.rightbrain.ai/llms-full.txt
179/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: aggregation in: query description: The aggregation level for the report. Can be either 'day' or 'week'. required: false schema: $ref: >-
#/components/schemas/OrgOrgIdProjectProjectIdTaskTaskIdUsageReportGetParametersAggregatio n - name: errors_only in: query description: If true, only include invocations with errors in the report. required: false schema: type: boolean default: false - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Usage report retrieved successfully content: application/json: schema: $ref: '#/components/schemas/TaskRunUsageReport' '400': description: Bad Request - Invalid aggregation parameter content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this task usage data content: {} '404': description: Task not found content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500':
https://docs.rightbrain.ai/llms-full.txt
180/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
description: Internal Server Error - Failed to process usage data content: {} components: schemas: OrgOrgIdProjectProjectIdTaskTaskIdUsageReportGetParametersAggregation: type: string enum: - value: day - value: week default: day TaskRunUsageReportAggregation: type: string enum: - value: day - value: week TaskRunRevisionUsageReportTaskRevisionId: oneOf: - type: string format: uuid - type: string TaskRunRevisionUsageReport: type: object properties: task_revision_id: $ref: '#/components/schemas/TaskRunRevisionUsageReportTaskRevisionId' description: >- The unique identifier of the Task Revision, or 'test' for test revisions. data: type: object additionalProperties: type: integer description: Usage counts for each time interval. required: - task_revision_id - data TaskRunUsageReport: type: object properties: task_id: type: string format: uuid description: The unique identifier of the Task. date_range: type: object additionalProperties: description: Any type description: The time range for the report, with start and end timestamps. aggregation: $ref: '#/components/schemas/TaskRunUsageReportAggregation' description: >- The time interval for data aggregation. 'day' shows last 24 hours in hourly blocks, 'week' shows last 7 days in daily blocks. task_revisions: type: array items: $ref: '#/components/schemas/TaskRunRevisionUsageReport' description: >- Usage data broken down by task revision, showing invocation counts for each active revision. total_counts: type: object additionalProperties: type: integer description: >- Total number of task invocations for each time interval across all revisions. required: - task_id
https://docs.rightbrain.ai/llms-full.txt
181/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
- date_range - aggregation - task_revisions - total_counts
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby
https://docs.rightbrain.ai/llms-full.txt
182/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74/usage_report', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74/usage_report"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/usage_report")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) {
https://docs.rightbrain.ai/llms-full.txt
183/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Fetch Timing Report
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}/timing_ report
Retrieve timing metrics for task executions.
This endpoint provides detailed timing data about task runs, including: - Average response times - Processing durations - LLM call latencies - Aggregated metrics by hour or day
Use this data to: 1. Monitor task performance 2. Identify performance bottlenecks 3. Track timing trends over time 4. Optimize task configurations
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task-timing- report
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Fetch Timing Report version: endpoint_tasks.getTaskTimingReport paths: /org/{org_id}/project/{project_id}/task/{task_id}/timing_report: get: operationId: get-task-timing-report summary: Fetch Timing Report description: |- Retrieve timing metrics for task executions.
This endpoint provides detailed timing data about task runs, including: - Average response times - Processing durations - LLM call latencies - Aggregated metrics by hour or day
Use this data to: 1. Monitor task performance 2. Identify performance bottlenecks 3. Track timing trends over time 4. Optimize task configurations tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid
https://docs.rightbrain.ai/llms-full.txt
184/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: start_date in: query description: >- Start date for the report (e.g., '2023-06-01', '24 hours ago', 'yesterday'). required: false schema: type: string - name: end_date in: query description: End date for the report (e.g., '2023-06-30', 'now', 'today'). required: false schema: type: string - name: aggregation in: query description: The aggregation level for the report. Can be either 'day' or 'week'. required: false schema: $ref: >- #/components/schemas/OrgOrgIdProjectProjectIdTaskTaskIdTimingReportGetParametersAggregati on - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Timing report retrieved successfully content: application/json: schema: $ref: '#/components/schemas/TaskRunTimingReport' '400': description: Bad Request - Invalid date format or range content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: >- Forbidden - You don't have permission to access this task timing data content: {} '404': description: Task not found content: {} '422': description: Unprocessable Entity - Invalid request content: {} '500':
https://docs.rightbrain.ai/llms-full.txt
185/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
description: Internal Server Error - Failed to process timing data content: {} components: schemas: OrgOrgIdProjectProjectIdTaskTaskIdTimingReportGetParametersAggregation: type: string enum: - value: hour - value: day default: hour TaskRunTimingReportAggregation: type: string enum: - value: hour - value: day TaskRunRevisionTimingReportTaskRevisionId: oneOf: - type: string format: uuid - type: string TaskRunRevisionTimingReport: type: object properties: task_revision_id: $ref: '#/components/schemas/TaskRunRevisionTimingReportTaskRevisionId' description: >- The unique identifier of the Task Revision, or 'test' for test revisions. data: type: object additionalProperties: description: Any type description: >- Timing data for each time interval, containing average LLM call timing and total task runs. required: - task_revision_id - data TaskRunTimingReport: type: object properties: task_id: type: string format: uuid description: The unique identifier of the Task. date_range: type: object additionalProperties: type: string description: The time range for the report, with start and end timestamps. aggregation: $ref: '#/components/schemas/TaskRunTimingReportAggregation' description: >- The time interval for data aggregation. 'hour' shows last 24 hours in hourly blocks, 'day' shows last 7 days in daily blocks. total_task_runs: type: object additionalProperties: type: integer description: Total number of task runs for each time interval. task_revisions: type: array items: $ref: '#/components/schemas/TaskRunRevisionTimingReport' description: >- Timing data broken down by task revision, showing performance metrics for each active revision. required: - task_id
https://docs.rightbrain.ai/llms-full.txt
186/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
- date_range - aggregation - total_task_runs - task_revisions
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby
https://docs.rightbrain.ai/llms-full.txt
187/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74/timing_report', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74/timing_report"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/timing_report")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) {
https://docs.rightbrain.ai/llms-full.txt
188/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# Fetch Credit Report
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}/credit_ report
Retrieve detailed credit usage statistics for a specific task.
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task-credit- report
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: Fetch Credit Report version: endpoint_tasks.getTaskCreditReport paths: /org/{org_id}/project/{project_id}/task/{task_id}/credit_report: get: operationId: get-task-credit-report summary: Fetch Credit Report description: Retrieve detailed credit usage statistics for a specific task. tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: start_date in: query description: >- Start date for the report (e.g., '2023-06-01', '24 hours ago', 'yesterday'). required: false schema: type: string - name: end_date in: query description: End date for the report (e.g., '2023-06-30', 'now', 'today').
https://docs.rightbrain.ai/llms-full.txt
189/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
required: false schema: type: string - name: show_reporting_group in: query description: If true, include reporting group in the report. required: false schema: type: boolean default: false - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/TaskRunCreditReport' '400': description: Bad Request content: {} '403': description: Forbidden content: {} '422': description: Validation Error content: {} components: schemas: TaskRunRevisionCreditReportTaskRevisionId: oneOf: - type: string format: uuid - type: string TaskRunRevisionCreditReport: type: object properties: task_revision_id: $ref: '#/components/schemas/TaskRunRevisionCreditReportTaskRevisionId' description: >- The unique identifier of the Task Revision, or 'test' for test revisions. reporting_group: type: - string - 'null' description: >- The name of the reporting group, or 'ungrouped' if no reporting group is assigned. Only present when grouping by reporting groups. total_credits: type: string description: Total credits charged for the Task Revision. total_task_runs: type: integer description: Total number of task runs for this revision. required: - task_revision_id - total_credits - total_task_runs TaskRunCreditReport: type: object properties: task_id: type: string
https://docs.rightbrain.ai/llms-full.txt
190/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
format: uuid description: The unique identifier of the Task. task_revisions: type: array items: $ref: '#/components/schemas/TaskRunRevisionCreditReport' description: >- Timing data broken down by task revision, showing performance metrics for each active revision. total_credits: type: string description: Total credits charged for the Task. total_task_runs: type: integer description: Total number of task runs for each time interval. date_range: type: object additionalProperties: type: string description: The time range for the report, with start and end timestamps. required: - task_id - task_revisions - total_credits - total_task_runs - date_range
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
import (
"fmt" "net/http" "io"
)
https://docs.rightbrain.ai/llms-full.txt
191/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74/credit_report', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody(); ```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74/credit_report"); var request = new RestRequest(Method.GET);
https://docs.rightbrain.ai/llms-full.txt
192/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/credit_report")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
# List Task Runs
GET https://app.rightbrain.ai/api/v1/org/{org_id}/project/{project_id}/task/{task_id}/run
Retrieve a paginated list of task runs for a specific task.
Task runs provide an audit trail of all task executions, including: - Input parameters used - Execution status and timing - Resource usage metrics (tokens, credits) - Output results - Error information for failed runs - Fallback model usage information
This endpoint supports: - Pagination using cursor-based navigation - Filtering by task revision - Sorting by creation time (newest first)
Common use cases: 1. Monitoring task execution history 2. Auditing task usage and performance 3. Debugging task behavior across multiple runs 4. Analyzing task output patterns 5. Tracking fallback model usage and reliability
Reference: https://docs.rightbrain.ai/api-reference/api-reference/tasks/get-task-runs
## OpenAPI Specification
```yaml openapi: 3.1.1 info: title: List Task Runs version: endpoint_tasks.getTaskRuns paths: /org/{org_id}/project/{project_id}/task/{task_id}/run:
https://docs.rightbrain.ai/llms-full.txt
193/200
17/12/2025, 15:08 get: operationId: get-task-runs summary: List Task Runs description: |- Retrieve a paginated list of task runs for a specific task.
docs.rightbrain.ai/llms-full.txt
Task runs provide an audit trail of all task executions, including: - Input parameters used - Execution status and timing - Resource usage metrics (tokens, credits) - Output results - Error information for failed runs - Fallback model usage information
This endpoint supports: - Pagination using cursor-based navigation - Filtering by task revision - Sorting by creation time (newest first)
Common use cases: 1. Monitoring task execution history 2. Auditing task usage and performance 3. Debugging task behavior across multiple runs 4. Analyzing task output patterns 5. Tracking fallback model usage and reliability tags: - - subpackage_tasks parameters: - name: org_id in: path description: The unique identifier of the organization. required: true schema: type: string format: uuid - name: project_id in: path description: The unique identifier of the project. required: true schema: type: string format: uuid - name: task_id in: path description: The specific Task to reference. required: true schema: type: string format: uuid - name: page_limit in: query description: >- The maximum number of items to return per page. Defaults to `100` if not specified. required: false schema: type: integer default: 100 - name: cursor in: query description: >- A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results. required: false schema: type: string format: uuid - name: status in: query
https://docs.rightbrain.ai/llms-full.txt
194/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
description: Filter by task run status required: false schema: $ref: >-
#/components/schemas/OrgOrgIdProjectProjectIdTaskTaskIdRunGetParametersStatus - name: task_revision_id in: query description: Filter task runs by revision ID required: false schema: type: string format: uuid - name: Authorization in: header description: Bearer token authentication using JWT tokens from Ory Kratos/Hydra required: true schema: type: string responses: '200': description: Successfully retrieved task runs content: application/json: schema: $ref: '#/components/schemas/PaginatedResultSet_TaskRun_' '400': description: Bad Request - Invalid parameters content: {} '401': description: Unauthorized - Authentication failed or token is invalid content: {} '403': description: Forbidden - You don't have permission to access this task runs content: {} '404': description: Task or revision not found content: {} '422': description: Unprocessable Entity - Invalid request parameters content: {} '500': description: Internal Server Error - Failed to retrieve task runs content: {} components: schemas: OrgOrgIdProjectProjectIdTaskTaskIdRunGetParametersStatus: type: string enum: - value: success - value: error PaginationDetails: type: object properties: next_cursor: type: - string - 'null' description: >- A token used to retrieve the next page of results. If `null`, there are no more results. has_next: type: - boolean - 'null' default: false description: Indicates whether there are more results available in the next page. page_limit:
https://docs.rightbrain.ai/llms-full.txt
195/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
type: - integer - 'null' default: 0 description: The maximum number of items returned per page. TaskRunRunDataSubmitted: type: object properties: {} TaskRunRunData: type: object properties: submitted: $ref: '#/components/schemas/TaskRunRunDataSubmitted' description: The input parameters provided when executing the Task. files: type: array items: type: string description: List of files (e.g., images) processed during Task execution. required: - submitted - files ReportingGroup: type: object properties: name: type: string description: Name of the reporting group description: type: - string - 'null' description: Optional description id: type: string format: uuid project_id: type: string format: uuid created: type: string modified: type: string required: - name - id - project_id - created - modified TaskRun: type: object properties: task_id: type: string format: uuid description: The unique identifier of the Task associated with this run. task_revision_id: type: string format: uuid description: The unique identifier of the Task Revision associated with this run. response: type: object additionalProperties: description: Any type description: The structured response from the Task execution. run_data: $ref: '#/components/schemas/TaskRunRunData' description: >-
https://docs.rightbrain.ai/llms-full.txt
196/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
Additional data about the Task execution, including submitted inputs and processed files. is_error: type: boolean default: false llm_retries: type: integer default: 0 description: Number of retry attempts made during LLM execution. used_fallback_model: type: boolean default: false description: Whether the fallback model was used primary_failure_reason: type: - string - 'null' description: Reason the primary model failed fallback_llm_model_id: type: - string - 'null' format: uuid description: Fallback model that was used user_id: type: - string - 'null' format: uuid description: The unique identifier of the User who executed the task. reporting_group_id: type: - string - 'null' format: uuid description: The ID of the reporting group to associate with this task run id: type: string format: uuid description: The unique identifier of the Task Run. created: type: string description: The timestamp when the Task Run was created. input_tokens: type: integer description: The number of tokens submit as input to the model. output_tokens: type: integer description: The number of tokens generated and output by the model. total_tokens: type: integer description: The total token usage for the TaskRun. input_processor_timing: type: - number - 'null' format: double description: The execution time for the TaskRun in seconds. llm_call_timing: type: - number - 'null' format: double description: The execution time for the TaskRun in seconds. charged_credits: type: - string - 'null' description: The total credits charged for the TaskRun.
https://docs.rightbrain.ai/llms-full.txt
197/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
reporting_group: oneOf: - $ref: '#/components/schemas/ReportingGroup' - type: 'null' description: The reporting group associated with this task run required: - task_id - task_revision_id - response - run_data - id - created - input_tokens - output_tokens - total_tokens - input_processor_timing - llm_call_timing - charged_credits PaginatedResultSet_TaskRun_: type: object properties: pagination: oneOf: - $ref: '#/components/schemas/PaginationDetails' - type: 'null' description: Contains pagination information for the result set. results: type: array items: $ref: '#/components/schemas/TaskRun' description: The list of items returned for the current page. required: - results
```
## SDK Code Examples
```python import requests
url = "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json()) ```
```javascript const url = 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ```
```go package main
https://docs.rightbrain.ai/llms-full.txt
198/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
import (
"fmt" "net/http" "io"
)
func main() {
url := "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456-
426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
} ```
```ruby require 'uri' require 'net/http'
url = URI("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run")
http = Net::HTTP.new(url.host, url.port) http.use_ssl = true
request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>'
response = http.request(request) puts response.read_body ```
```java HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run") .header("Authorization", "Bearer <token>") .asString(); ```
```php <?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/org/123e4567-e89b- 12d3-a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596- da54-4756-28af46917e74/run', [ 'headers' => [ 'Authorization' => 'Bearer <token>', ], ]);
echo $response->getBody();
https://docs.rightbrain.ai/llms-full.txt
199/200
17/12/2025, 15:08
docs.rightbrain.ai/llms-full.txt
```
```csharp var client = new RestClient("https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3- a456-426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54- 4756-28af46917e74/run"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer <token>"); IRestResponse response = client.Execute(request); ```
```swift import Foundation
let headers = ["Authorization": "Bearer <token>"]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/org/123e4567-e89b-12d3-a456- 426614174000/project/123e4567-e89b-12d3-a456-426614174001/task/01909843-3596-da54-4756- 28af46917e74/run")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers
let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } })
dataTask.resume() ```
https://docs.rightbrain.ai/llms-full.txt
200/200
Generated Output
Tokens
105.0 credits
Input: 103,830
Output: 217
Timing
23.03s total
Rightbrain: 13.6732s
LLM: 9.36s