> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rightbrain.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rightbrain.ai/_mcp/server.

# Templates for Operations

> 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 details.

#### Document Processing

#### 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. 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

**Try it now**

#### 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 or clauses for review. 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

**Try it now**

#### Form Processing

**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}. 
Normalise data formats, check completeness 
against, 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

**Try it now**

#### Quality Control

#### Compliance Verification

**Purpose:** Ensure operational processes and documentation meet regulatory 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

**Try it now**

#### Workflow Orchestration

#### Request Routing

**Purpose:** Classify and route requests to appropriate teams based on content, urgency, and capacity

**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. 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

**Try it now**

#### 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 {policy}. Determine if request 
meets auto-approval thresholds or requires manual review.
```

**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

**Try it now**

## Resources

#### [Create a Task](/api-reference/api-reference/tasks/tasks/list-tasks)

Complete API reference for task execution

#### [API Integration](/docs/quickstart/create-a-task)

Create and configure a Task over the API

#### [Internal tool patterns](/docs/patterns/tools)

Place Tasks and agents inside existing team workflows