Knowledge base · 3TL Bridge

3TL Bridge: AI Assistant

By Donovan Kinney · Updated

AI Assistant

3TL Bridge includes two AI interfaces, both powered by the same backend engine with access to 30+ tools across 9 categories:

  • Studio Assistant — embedded in the Transform Studio sidebar, guides users through script creation, testing, and deployment one step at a time. Cannot write or save directly — the user clicks Insert and saves manually.
  • AI Agent — a standalone page with direct write access. Can create, stop, restart, and delete pipelines, manage services, and modify artifacts without UI interaction.

Both share the same LLM provider, conversation history, and tool catalogue. The difference is scope: the Studio Assistant is workspace-aware and UI-oriented; the Agent operates at the platform level.


Studio Assistant

The Studio Assistant is embedded in the Transform Studio sidebar. It receives the current workspace context automatically — input document, schema, scripts, test cases, and pipeline configuration — and generates responses scoped to that workspace.

The assistant cannot save or persist artifacts directly. It presents scripts, schemas, pipeline configs, and test cases as insertable code blocks. The user clicks Insert to load them into the editor, then saves manually.

Workflow guidance

The assistant guides users through Transform Studio workflows one step at a time:

  1. Script creation — reads the input document and schema in context, generates a Rhai transformation script, suggests running it against the input to verify
  2. Test generation — generates assertion-based test cases for the current script and input, presents them for insertion into the Guardrails panel
  3. Error diagnosis — reads the error and script in context, states what went wrong, shows the fix
  4. Pipeline building — helps construct pipeline configurations with correct encoding rules, schema wiring, and checkpoint settings

The assistant references UI panels by their Studio names (Explorer, Script Editor, Guardrails Panel, Pipeline Editor) so the user can follow along.


AI Agent

The AI Agent is a standalone page accessible outside Transform Studio. It has direct write access to the platform and executes operations without requiring manual UI steps.

The Agent can:

  • List, create, stop, restart, and delete pipelines
  • Manage services, scripts, schemas, workspaces, and test suites
  • Inspect pipeline metrics, system stats, logs, and audit records
  • Build and deploy complete pipeline configurations

When asked to perform an action, the Agent executes it directly and reports the result — it does not suggest curl commands or API calls.

Example prompts

Understand the platform:

  • “What sources and sinks are available? Explain how a MongoDB CDC pipeline works.”
  • “What is a checkpoint and when should I enable it?”
  • “Explain the difference between batch and single-document processing.”

Explore system state:

  • “List all running pipelines and show their metrics.“
  • “Which services are registered? Is the LLM provider active?”
  • “Show me the last 10 audit log entries.”

Observability:

  • “What’s the throughput and error rate on the cdc-orders pipeline?”
  • “Show me the worker metrics for all pipelines in HA mode.”
  • “Are any pipelines in a failed state?”

Create and manage artifacts:

  • “Create a pipeline that reads from the people collection on source-db, masks the email field, and writes to sink-db.”
  • “Generate a test suite for the mask_pii.rhai script using the current workspace input.”
  • “Save an Avro schema for the orders collection based on the introspection result.”

Write access and conversation modes

Write operations in the Agent are controlled by the conversation mode (Ask or Act) and the allow_writes flag. See Conversation Modes below.


Conversation Modes

The mode field controls how the backend engine handles write tools. Both the Studio Assistant and the Agent use the same mode system, though the Studio Assistant cannot execute writes regardless of mode.

Mode Behaviour
Ask (default) Write tools require user confirmation. The engine emits a confirmation prompt via SSE and waits up to 30 seconds for approval.
Act Write tools execute immediately when allow_writes is enabled, except for high-impact tools (e.g. create_job) which always require confirmation.

Mode can be switched mid-conversation. Each request’s mode takes effect immediately.


Available Tools

Both interfaces share the same tool catalogue. Write tools are gated behind allow_writes and subject to confirmation in Ask mode.

Category Tools
Pipelines list_jobs, get_job_metrics, get_worker_metrics, list_checkpoints
System list_services, get_system_stats, get_logs, get_audit_log
Resources list_service_resources, get_resource_content
Schemas list_schemas, get_schema, introspect_schema, fill_schema, convert_schema, save_schema
Transforms validate_transform, get_rhai_completions, run_transform, run_tests, generate_tests, save_script, update_script
Test Suites save_test_suite, delete_test_suite
Workspaces list_workspaces, get_workspace, save_workspace, update_workspace
Pipelines (write) stop_job, restart_job, create_job, delete_job
Services (write) create_service, delete_service

Supported LLM Providers

Provider configuration is managed in the system configuration — not per user session. Exactly one LLM service is active at any time:

Provider Auth mechanism
Anthropic Direct API with ANTHROPIC_API_KEY
AWS Bedrock Explicit credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)

The active provider can be switched at runtime without restarting the pipeline engine.


Context Items

The Studio Assistant receives structured context from the workspace automatically. The Agent can also receive context when invoked via the API. Each item has a kind discriminator:

Kind Description
scripts Rhai scripts from the pipeline middleware chain
input Sample input document
schema Avro or JSON Schema definition
output Transform output
test_cases Test cases with optional last run results
error Error message from a failed transform or test run

Limitations

  • Script generation targets Rhai only
  • Script correctness depends on the quality of the sample input and schema in the workspace — load real collection data via the Service Explorer for best results
  • Provider support is currently limited to Anthropic and AWS Bedrock
  • The Studio Assistant cannot save artifacts directly — the user must click Insert and save manually in the UI

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes, including personalized advertising (“performance”), to provide you with additional functions (“functional”), and to show content from social media platforms, such as embedded videos (“social media”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in section 9 of our Privacy Policy.

Manage consent preferences