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.
What Youβll Build: A Task that analyses customer reviews, extracts sentiment, and validates product images - all in one API call.
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.
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.
The user prompt tells the AI what to do with the input data. Use clear, specific instructions for best results.
Navigate to the user prompt field and enter:
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.
You can add a system prompt to define the AIβs role and behavior:
Now weβll define what data goes in and what structure comes out.
Your Task can accept:
For our Task, the {customer_review} variable is automatically detected from your prompt. You can add additional inputs if needed.
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:
Whether the review is positive, negative, or neutral
A description of the product image. Returns βN/Aβ if no image provided
Whether the image matches the product described in the review
Pro tip: Always provide clear descriptions for your outputs. This helps the model understand exactly what you expect and improves accuracy.
Different models excel at different tasks. For our sentiment analysis with image verification, we need a vision-capable model:
Claude Sonnet 4.5 πΌοΈ
Set to 0.3 for consistent, focused analysis.
Lower values (0.1β0.3) produce more deterministic outputs, ideal for classification tasks.
Congratulations! Youβve created your first Task. Itβs now available via the API endpoint under the Integrate tab.