Robo Connector Integration Guide

Context & Orchestration Standard Documentation

3. Internal Addressation System

Motivation

As the volume and diversity of context data grows — with time-expired info, dynamic workflows, AI-driven decisions, and Robo Assistant tasks — a structured addressing scheme inside the Context Engine is crucial for:

Addressing Scheme Principles

4. Data Queues & Messaging Channels

Overview

In addition to static context data, the system supports dynamic, message-oriented data flows organized as named queues with typed channels and messages. These serve as the communication backbone for task distribution, event propagation, and state synchronization among services.

Example queue key namespaces:

Data:Queue:<queue_id>:In:<data_type>:<field>
Data:Queue:<queue_id>:Out:<message_type>:<field>
Data:Queue:<queue_id>:Chat:History:<history_id>:<type>
Data:Queue:<queue_id>:Object:<object_id>
Data:Queue:<queue_id>:Providers:<provider_id>
Data:Queue:<queue_id>:Result:<status_field>

Roles

5. Integration with Context Engine, AI Module, Robo Assistant

6. Subscription Channel — events_channel

Purpose

The events_channel is a pub/sub mechanism designed for modules and services to subscribe to real-time events and their payloads emitted by the Context Engine, AI Module, Robo Assistant, or any other system component.

Features

Example Event Key Pattern

events_channel:<scope_type>:<scope_id>:<event_type>

Example:

events_channel:user:1234:task_completed
events_channel:organization:5678:inventory_update

Typical Payload Structure

{
  "timestamp": "2025-05-27T10:00:00Z",
  "source": "robo_assistant",
  "event_type": "task_completed",
  "context": {
    "user_id": "1234",
    "project_id": "9876"
  },
  "data": {
    "task_id": "abcd-1234",
    "result": "success",
    "details": "Welding operation finished"
  }
}

Usage

7. Template System

Overview

The Template System is a core feature used across multiple modules for generating dynamic content such as emails, communications, payment notices, documents, and website content. It allows templates to be populated automatically with context-aware data fields.

Placeholder Syntax

Default Values

Templates support setting default values to fallback on when no data is found. Currently, defaults are stored in the database, but there is a plan to move this logic into the Context Engine with persistent storage (no expiration).

Arrays Handling

For array-type fields, you can loop or access elements with the syntax:

@@array_field@@%%element_of_array%%@@array_field@@

This allows iteration over elements or direct access to specific items inside array fields.

Complex Objects

Complex nested objects like user, project, or product can be accessed using a delimiter notation to extract nested fields:

Example:


  Template field: -P-project-P--Pr-name-Pr-
  Resolves to: the name field inside the project object in context.
  

If the field is missing, the system uses a default fallback value such as the Product cost for product objects.