Back to Orchestration
Workflow Builder Guide

Professional Guide: Building & Operating Multi‑Agent Workflows

This is the definitive reference for the LayerLogic Workflow Builder: drag‑and‑drop nodes, solid link lines with arrowheads, hierarchical auto‑layout, JSON import/export, and execution details.

Visual Builder

Handles, snap‑to‑grid, solid links, and live previews

Fast Execution

Parallel branches, timeouts, and resilient retries

Guardrails

Cost caps, policies, and secret hygiene

Overview

The Workflow Builder composes specialized agents (YouTube, Twitter, WhatsApp, Notion, Sheets, etc.) with AI‑powered nodes (e.g., OpenAI Brain) into a directed acyclic graph (DAG). Nodes can be freely moved, linked in your preferred hierarchy, and executed with policies for cost, latency, and reliability. Export and import let you share or version workflows as JSON.

Workflow Builder UI

  • Agent Library: Click any agent to add it; use the quick‑add dropdown for speed.
  • Canvas: Drag nodes to reposition. Snap‑to‑grid keeps lines tidy and readable.
  • Linking: Drag from an output handle and drop on a target node (or its input handle). A dashed preview shows while linking.
  • Toolbar: Arrange (auto‑layout), Save, Export (JSON), Import (JSON), Execute.
  • Node actions: Hover to Configure or Remove. Config fields are agent‑specific.

Linking & Canvas Behavior

  • Solid, arrow‑tipped lines render beneath nodes and never block pointer events (dragging stays smooth).
  • Links are always Output → Input; self‑links and duplicate edges are ignored.
  • Press Esc to cancel link mode at any time.

Import & Export (JSON)

  • Export: Downloads { name, description, nodes, connections, version }.
  • Import: Accepts either a root object or { "workflow": { ... } }. Invalid edges are skipped.
  • Positions are normalized and snapped for cleanliness on load.
{
  "name": "Research & Publish",
  "description": "Fetch, analyze, and publish with a Slack notification",
  "nodes": [
    { "id": "yt", "name": "YouTube Agent", "type": "social", "position": { "x": 60, "y": 60 } },
    { "id": "brain", "name": "OpenAI Brain", "type": "ai", "position": { "x": 300, "y": 60 } },
    { "id": "notion", "name": "Notion Content Creator", "type": "content", "position": { "x": 540, "y": 60 } },
    { "id": "slack", "name": "Slack Standup Bot", "type": "social", "position": { "x": 300, "y": 180 } }
  ],
  "connections": [
    { "id": "yt-brain", "from": "yt", "to": "brain" },
    { "id": "brain-notion", "from": "brain", "to": "notion" },
    { "id": "brain-slack", "from": "brain", "to": "slack" }
  ],
  "version": 1
}

Agent Catalog & Settings

These are the built‑in agents in your builder. Each table lists the configuration fields exactly as supported by the Configuration dialog.

YouTube Agent

social

Reads channel/video metadata and content; supports videos, comments, and live streams.

  • Channel monitoring
  • Comment mining
  • Livestream alerts
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
channelIdtextNoUC_x5XG1OV2P6uZZ5FSM9Ttw
contentTypeselectNoVideos, Comments, Live Streams
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Twitter Agent

social

Searches or streams posts via Twitter/X API for downstream analysis.

  • Brand monitoring
  • Trend detection
  • Influencer tracking
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
bearerTokenpasswordYes
OAuth 2.0 token
searchQuerytextNo"LayerLogic" lang:en
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Instagram Agent

social

Fetches posts, stories, or reels for analytics and content pipelines.

  • UGC research
  • Campaign analytics
  • Competitor tracking
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
usernametextNoyour_brand
contentTypeselectNoPosts, Stories, Reels
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

OpenAI Brain

ai

General LLM node for generation, analysis, and transformation with OpenAI models.

  • Summarization
  • Content generation
  • Tool-augmented reasoning
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
modelselectYesgpt-4, gpt-3.5-turbo, text-davinci-003
temperaturenumberNo0.2
0–1
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Real Estate Analyzer

analysis

Evaluates property data, comps, and trends to score opportunities.

  • Deal screening
  • Market research
  • Portfolio reports
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Medical Data Processor

healthcare

Processes structured/unstructured clinical data securely.

  • De-identification
  • Clinical summarization
  • Cohort extraction
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Alpha Signal Curator

finance

Generates trading/alpha signals with configurable risk/temporal horizons.

  • Signal synthesis
  • Backtests
  • Daily outlooks
KeyTypeRequiredOptions / FormatExample / Notes
riskToleranceselectNoLow, Medium, High
timeframeselectNo1H, 4H, 1D, 1W
minConfidencenumberNo70
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Smart Contract Auditor

blockchain

Scans Solidity/Vyper contracts for patterns and potential vulnerabilities.

  • Static analysis
  • Standard checks
  • Auto-notes for reviewers
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

SEO Optimizer

marketing

Optimizes content for search visibility and on-page best practices.

  • Brief generation
  • Keyword expansion
  • On-page audits
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Customer Support Bot

support

Automates tier-1 responses, captures context, and routes escalations.

  • FAQ deflection
  • Triage
  • CRM enrichment
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Data Processor Pro

data

Transforms batches/streams and emits JSON/CSV/XML payloads.

  • ETL
  • Feature engineering
  • Statistics
KeyTypeRequiredOptions / FormatExample / Notes
dataSourceselectNoAPI, Database, File
processingModeselectNoBatch, Stream, Real-time
outputFormatselectNoJSON, CSV, XML
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Content Wizard

content

Creates/rewrites content to spec with tone and length controls.

  • Blog drafts
  • Email copy
  • Social posts
KeyTypeRequiredOptions / FormatExample / Notes
contentTypeselectNoArticle, Blog Post, Social Media, Email
toneselectNoProfessional, Casual, Friendly, Formal
wordCountnumberNo800
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Social Media Manager

social

Generic social posting/reading adapter for multiple platforms.

  • Cross-posting
  • Bulk scheduling
  • Inbox triage
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
platformselectNoFacebook, LinkedIn, TikTok
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

WhatsApp Broadcast Agent

social

Sends templated broadcasts via Twilio WhatsApp or Meta Cloud API.

  • Announcements
  • Onboarding nudges
  • Transactional alerts
KeyTypeRequiredOptions / FormatExample / Notes
providerselectYesTwilio WhatsApp, Meta Cloud API
accountSidtextYes
authTokenpasswordYes
businessNumbertextYes+15551234567
defaultTemplatetextYes
mediaUrltextNo
contactListUrltextNo
rateLimitPerMinnumberNo60
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Telegram Community Moderator Agent

social

Moderates chats, enforces link policy, and posts announcements.

  • Anti-spam
  • Auto-responses
  • Scheduled announcements
KeyTypeRequiredOptions / FormatExample / Notes
botTokenpasswordYes
chatIdtextYes
moderationLevelselectNoLenient, Balanced, Strict
spamSensitivitynumberNo60
linkPolicyselectNoAllow, Warn, Delete
announcementChannelIdtextNo
announcementPrefixtextNo[ANN]
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Discord Server Manager Agent

social

Manages roles, moderation, and lightweight automations in a guild.

  • Auto-moderation
  • Role sync
  • Channel updates
KeyTypeRequiredOptions / FormatExample / Notes
botTokenpasswordYes
guildIdtextYes
moderationChannelstextNo
moderationLevelselectNoLenient, Balanced, Strict
autoRespondKeywordstextNo
updatesChannelIdtextNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Slack Standup Bot

social

Collects daily standups; reminds stragglers; posts rollups.

  • Team updates
  • Async standups
  • Lightweight status reports
KeyTypeRequiredOptions / FormatExample / Notes
botTokenpasswordYes
channelIdtextYes
standupTimetextYes09:30
timezonetextNoAustralia/Sydney
questionstextNoWhat did you do?, What will you do?, Blockers?
reminderMinutesnumberNo30
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Email Sequence Agent

marketing

Runs drip sequences using SendGrid, Postmark, Resend, or SES.

  • Welcome series
  • Onboarding
  • Reactivation
KeyTypeRequiredOptions / FormatExample / Notes
providerselectYesSendGrid, Postmark, Resend, AWS SES
apiKeypasswordYes
fromEmailtextYesnoreply@yourdomain.com
replyToEmailtextNo
sequenceNametextYesWelcome Series
stepstextYeswelcome-1, onboarding-2, nudge-3
delayHoursBetweenStepsnumberNo24
contactListUrltextNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Google Sheets Data Logger

data

Appends structured rows to a worksheet using a service account.

  • Telemetry
  • Audit trails
  • Simple dashboards
KeyTypeRequiredOptions / FormatExample / Notes
serviceAccountEmailtextYes
serviceAccountKeypasswordYes-----BEGIN PRIVATE KEY-----
spreadsheetIdtextYes
worksheetNametextNoSheet1
appendModeselectNoRAW, USER_ENTERED
rangetextNoA:Z
batchSizenumberNo100
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Notion Content Creator

content

Creates or updates Notion pages in a database or under a parent page.

  • Knowledge base
  • Content calendar
  • Runbooks
KeyTypeRequiredOptions / FormatExample / Notes
notionApiKeypasswordYes
databaseIdtextYes
parentPageIdtextNo
publishStatusselectNoDraft, Published
propertyMappingtextNo{"Title":"title","Summary":"rich_text"}
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Trello Task Creator

productivity

Creates cards with labels and due dates on a chosen board and list.

  • Intake → ticket
  • Sprint planning
  • Ops runbook items
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
tokenpasswordYes
boardIdtextYes
listIdtextYes
labelstextNo
positionselectNotop, bottom
dueInDaysnumberNo7
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Airtable Sync Agent

data

Push/pull or bidirectionally sync records in a base/table.

  • CRM-lite
  • Back-office ops
  • Partner directories
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordYes
baseIdtextYes
tableNametextYes
modeselectNoPush, Pull, Bidirectional
primaryKeyFieldtextNoid
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

CRM Updater Agent

crm

Upserts objects in HubSpot or Salesforce using an upsert key.

  • Lead enrichment
  • Contact sync
  • Pipeline updates
KeyTypeRequiredOptions / FormatExample / Notes
providerselectYesHubSpot, Salesforce
accessTokenpasswordYes
instanceUrltextNohttps://your-instance/
objectTypeselectYesLeads, Contacts, Accounts, Opportunities
upsertKeytextYesemail
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Zapier Bridge Agent

integration

Emits events to a Zapier Catch Hook with optional auth header.

  • Notify downstream apps
  • Integrate long-tail SaaS
  • One-off automations
KeyTypeRequiredOptions / FormatExample / Notes
zapUrltextYeshttps://hooks.zapier.com/hooks/...
authHeadertextNoBearer xxx
eventNametextYesworkflow_completed
retriesnumberNo2
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Webhook Listener Agent

integration

Receives external events and injects them into the workflow.

  • Inbound triggers
  • 3rd-party callbacks
  • Event-sourced starts
KeyTypeRequiredOptions / FormatExample / Notes
apiKeypasswordNo
priorityselectNoLow, Medium, High
Scheduling hint
timeoutnumberNo30

Example Canvas Snapshot

This snapshot mirrors a simple flow: YouTube → OpenAI Brain → Notion, with a side branch to Slack for notifications.

YouTube AgentOpenAI BrainNotion ContentSlack Standup Bot

Execution Model

  • Execute: Triggers /api/orchestration/execute (or template endpoint) with current nodes and connections.
  • Policies: Timeouts, retries, and concurrency are enforced per node. Use priority and timeout as hints.
  • Parallelism: Independent branches run concurrently; explicit reducers or joins are recommended where aggregation is required.

Troubleshooting

Links not visible after dragging

Ensure the lines layer has pointer-events: none and sits beneath nodes. The shipped builder enforces both.

Can't finish a link by dropping on the node body

Start the link from the output handle on the source. Drop on the target node body or its input handle.

Import shows fewer edges than the file

Importer skips edges that reference non-existent nodes or duplicate links. Verify 'from' and 'to' IDs.

FAQ

Are cycles allowed?

The runtime expects DAGs. The Arrange tool groups unresolved nodes so you can locate and fix cycles quickly.

Can I extend the agent library?

Yes. Follow the same config contract (fields & handles) and add your agent to the library array used by the builder.

How should I handle secrets?

Use a server-side vault. The UI masks secret fields and should avoid logging sensitive values.
Questions or feedback on this guide?
Back to Orchestration