On this page
Workflow reference
Workflow Studio connects model calls, tools, HTTP requests, user interactions, and local transformations into an executable workflow. Use it to build a solution visually, inspect each handoff in Preview, and export its definition or package it for a supported host.
In Benchius, choose Documentation above About to open this reference at /docs. Search the contents, select a topic, and use On this page to jump to a section. Both hosting modes include the same bundled reference and execution guides.
This reference describes the implemented workflow schema, version 1. JSON property names use camelCase; step kinds, protocols, and modes use the exact enum names shown here. Workflow Studio is experimental. Review provider requests, generated code, resource permissions, and costs before running a workflow.
Start with Build your first workflow, choose a step from the step catalog, and use the expression reference to select, validate, encode, compare, and transform data.
Automations covers the 20 automation templates, persistent server scheduling, unattended credentials, and completion notifications.
Azure workflow deployments covers the Webfrontend-only Azure dialog, service principals, resource groups and regions, ARM/container orchestration, and browser-local deployment history.
Socrates and cached product search covers profile-card model recommendations, Retail and Hospitality scenarios, original synthetic product images, shared IndexedDB caches, and the Synthetic Data and Vector DB widgets.
Agents & Factories
The starter gallery and Properties template picker include 20 Agents & Factories samples. Expand Show more, search by scenario, or ask workflow chat for a named sample. Every example uses the existing playground-backed Agent step and includes an editable setup guide on its entry step.
| Sample | Architecture and useful outcome |
|---|---|
| Incident command constellation | Parallel signal, impact, and recovery specialists prepare an incident-command brief. |
| Adaptive research factory | A planner assigns reviewed research workers to the supplied questions. |
| Product launch readiness council | Engineering and enablement leads face an independent launch challenge before revision. |
| Supply disruption response room | Inventory, logistics, and sourcing specialists compare constrained contingency options. |
| Customer escalation handoff | Diagnostics, policy review, and escalation writing share a sequential evidence trail. |
| Cloud efficiency review board | Usage and capacity proposals face a reliability challenge before FinOps review. |
| Evidence-first RFP response studio | Requirements, architecture, and proposal specialists carry an evidence matrix through a relay. |
| Data product quality constellation | Schema, quality, and consumer-impact agents reconcile a remediation brief. |
| Product discovery evidence panel | Research, accessibility, and experiment specialists propose the next measured study. |
| Release migration rehearsal team | Contract and rollout specialists face a compatibility and rollback challenge. |
| Operations handoff constellation | Maintenance, capacity, and communication specialists prepare a shift handoff. |
| Document dossier agent factory | Reviewed document workers surface source facts and unresolved scope contradictions. |
| Component test-design factory | Two-turn workers refine component test proposals and recovery checks. |
| API migration specialist factory | Contract-area workers prepare a consumer migration matrix. |
| Catalog enrichment agent factory | Item specialists refine supported attributes, copy, and editorial questions. |
| Localization review factory | Locale workers refine terminology, placeholders, and native-review questions. |
| Audience learning-path factory | Audience specialists prepare objectives, exercises, and assessment proposals. |
| Resilience tabletop agent factory | Service-specific workers refine clearly simulated exercise cards and observer checks. |
| Project workstream agent factory | Workstream specialists reconcile dependencies, verification, and owner acceptance. |
| Reusable agent workflow factory | A reviewed roster becomes portable Agent workflow JSON for explicit inspection and later execution. |
Constellations use parallel councils, specialist relays, or challenge-and-revise handoffs. Factories first generate a structured roster from an authored role library. Local checks require exactly one assignment per supplied work item, known roles and item IDs, unique coverage, bounded task text, and at most four workers. Review the exact factory roster gates worker creation. Each ForEach iteration owns a fresh specialist conversation; refining factories use two model turns per worker. Factory iterations execute sequentially within their bound.
Open an Agent's model to use its existing playground editor. Defaults use gpt-6-astra at the OpenAI Responses endpoint with AGENT_MODEL_API_KEY and the optional AGENT_MODEL_ENDPOINT binding. Use distinct credential bindings when switching roles to different providers. Model use is billable; provider conversation storage and external tools start off. New samples select Local in the server designer and Browser in the PWA. Choose Local before running a browser-authored sample in a packaged .NET host.
Every brief is synthetic and needs authorized replacement facts for real use. Analysis consent precedes model calls. An independent evidence review checks the final candidate and source citations; final acceptance also requires human review. A revision verdict keeps the exact candidate held even when a person chooses Accept. These examples prepare proposals and leave source systems unchanged. Separately configured data access and explicit action authorization are needed for operational integrations.
Use Agents to inspect participating steps, state, telemetry, safe-boundary pause/resume, and run-local deletion. Factory workers are visible in their nested loop and retained iterations. The reusable-workflow sample's accepted output is a workflow JSON document with fixed connection bindings, authored permissions, and a reviewed assignment packet in Preview input. Copy that result into a JSON file and open it explicitly after checking every generated role and model configuration.
Cloud (Azure) Video Samples
The starter gallery and Properties template picker include 15 media and entertainment workflows: trailer previsualization, localized promo pickups, audio-description rehearsals, episodic recaps, streaming key art, sports bumpers, editorial explainer graphics, documentary archive-gap references, children's promos, vertical social cutdowns, continuity pickups, product-placement alternates, FAST interstitials, distribution QC repair references, and music visualizer cue sheets.
Every model call uses Grok: grok-4.7, grok-imagine-image-2.0, grok-imagine-video-1.5, and grok-voice-3.0. These model IDs were checked against the xAI model catalog on November 3, 2026. Supply XAI_MEDIA_API_KEY and configure the Azure resource widgets with a shared service-principal credential binding.
A production planner creates an evidence-linked plan. An independent Grok critic checks its factual, rights, and production constraints. A local condition and explicit producer approval gate billable image, video, and voice generation. The pipeline archives separate draft assets and a review manifest in private Blob Storage and enqueues a reference-only producer review ticket. Final human picture, audio, factual, and rights review gates the Media.ReviewApproved Event Grid event.
Default briefs are fictional. Replace them with authorized source facts, confirm rights, and use a unique jobId. Generated reference footage, separate narration, cue-sheet proposals, and repair targets support real editorial preparation. Final editing, audio/video muxing, actual master QC, accessibility verification, rights sign-off, broadcast delivery, Event Grid subscriptions, and queue consumers remain downstream integrations.
The intake gate limits jobId to 128 characters and rejects slash, backslash, and .. path segments before model calls. sourceFacts is limited to 12,000 characters; objective and reviewChecklist are each limited to 4,000.
Preview uses selected existing resources and can incur Azure and model charges. Deploy to Azure provisions a separate resource set, assigns scoped managed-identity permissions, and initializes the container app's resource environment variables. Existing Preview contents remain unchanged.
Build your first workflow
- Open Tools > Workflow Studio at
/workflow-studio. Start with Add a model, a template, or an entry in My workflows. - Add steps from the toolbox. Select each step to configure it in Properties. Apply changes made in a hosted playground before previewing or saving that configuration.
- Connect an output port to an input port. Give connections descriptive input names when a step has several inputs.
- Enter Preview input, then start Preview. Inspect the output and activity for every step, including skipped branches and individual loop iterations.
- Use Save to keep a named workflow in the browser library, or Export to download its JSON. Configure the target host before running an exported package.
The Save dropdown ends with Save with results. It stays visible and is disabled until the current workflow has a finished run and the composer is idle. Choosing it saves all retained runs, their outputs, media, costs, and execution checkpoints alongside the workflow in IndexedDB. Opening that entry restores the results and selected preview without starting provider calls. A results icon identifies these entries in both My workflows and its full management list. Ordinary Save and Save as save the definition and protected preview credentials; saving an existing entry normally removes its saved results. JSON exports and library imports contain definitions only.
Opening an entry in My workflows shows the designer immediately, displays the definition as it loads, and then restores saved results asynchronously. A progress bar reports the current stage. Cancel loading stops the operation and keeps your previous workflow, input, and run results. Editing and execution stay disabled until loading finishes or is canceled.
Saved results use the same 512 MiB archive limit as downloadable result archives. Remote media must be downloaded successfully before the workflow and results are saved together. An unavailable artifact, storage failure, or conflicting edit preserves the previous saved entry. Preview credentials are encrypted separately from the definition and results; inputs and outputs can still contain sensitive data, so protect this browser's stored data.
Model API-key fields in Preview credential offer a popup of saved Vault connections. Click the field and choose a connection to fill or replace the key without changing the endpoint. Save, Save as, and Save with results retain preview API keys, Entra access tokens, and preview service-principal fields using the same protection as saved playground API keys. Opening the saved workflow restores them. Acquired tokens retain their audience and expiry metadata and still require renewal when expired. Custom-authority trust remains session-only. JSON exports, library exports, result archives, and packages exclude preview credentials. Encrypted credentials remain tied to this browser's encryption key or the server host's data-protection keys.
Model steps preserve Service Principal authentication when you apply changes and save the workflow in either host. Applying and saving can proceed with incomplete preview credentials. For execution, select the Foundry reader in Vault or supply the model's tenant ID, Application ID, and client secret; a manually entered preview access token is optional. The PWA uses its host's Entra authentication backend to acquire tokens. Workflow JSON retains the authentication type, tenant ID, Application ID, and token scope while excluding API keys, client secrets, and access tokens.
Opening a workflow from My workflows, JSON, or chat starts the Properties / Preview pane at its smallest supported width. Its width controls restore or expand the pane, and switching tabs preserves your chosen width. Canceling an open confirmation preserves the current workflow and pane width.
Choosing New workflow while unsaved work is loaded opens a confirmation modal. Cancel is focused by default, and Escape keeps the current workflow. Start new workflow clears the document, unapplied settings, preview input, credentials, runs, and undo/redo history. Apply pending settings and save first to keep a copy. A pristine workspace or a saved workflow with no pending changes starts a new document immediately.
On the initial Make the connection view, the header's New, Open, Save, Export, Package, Preview, and Automate controls are disabled. Add a step or load a workflow to enable them, including an opened empty draft. The landing page's template and saved-workflow controls remain available. An empty nested canvas keeps its parent workflow's header controls enabled, and Stop remains available during an active preview.
Toolbox widgets use light category colors that also identify their canvas headers and minimap thumbnails. Azure uses pale blue, Microsoft 365 productivity and communication presets use soft orange and pink, and GitHub developer presets use light charcoal gray. Labels and icons identify each step, while selection, focus, and run-status outlines retain their existing meanings.
Configured model steps have a lower-right type icon for chat, image, video, document, speech, retrieval, or decision models. Its tooltip identifies the type, and the icon updates when applied model settings change. The type remains visible alongside run status.
Loop, Multi-turn, Synthetic Data, and Vector DB Index containers have an icon-only Open step contents button in the lower-right corner. It opens the contained steps on the design surface using the same action as the container's Properties button, including applying the selected container's pending settings and confirming before discarding another step's unapplied changes. The shortcut is disabled while the workflow is busy.
The canvas toolbar's icon-only Fluent toggle starts on by default. It draws smooth cubic Bezier connections, favors clear gutters, and minimizes shared paths and crossings. Curves keep their output and input ports, and labels and the minimap follow the routed paths. Routing refreshes after edits and completed drags, including inside nested workflows. This workspace-only view preference preserves step positions, settings, selection, and undo history. Turn it off to restore standard connections. Crowded or overlapping manual placements can still require crossings; Arrange and Cluster provide more space.
Hover or focus a sample under Start from a template to open its white preview card. The header names the workflow, the footer shows its description, and a read-only snapshot pans through every step, including nested workflow bodies. Steps include their category and type icons, configuration descriptions, model names and vendor logos, contained-model indicators, and initial cost notes. Connections show input names, conditions, and transforms with the same ports as the editor. Configuration-dependent error and warning icons are omitted. Pause the tour, fit the complete workflow, or drag and use arrow keys to explore it. Escape dismisses the card. Reduced motion shows the complete snapshot without automatic panning. Previewing a sample leaves the current document unchanged and makes no provider calls.
Hover or focus a designer widget to reveal its floating contextual toolbar. Copy to clipboard copies its applied configuration and contained steps, with preview credentials excluded. Paste before and Paste after place a fresh copy beside the selected widget and preserve existing connections. Nested node IDs and internal connections are remapped, and each paste is one undoable edit. Clipboard access requires a secure browser context and permission; invalid or unavailable clipboard contents produce a visible error.
The toolbar's colored Add note icon creates a light-yellow Markdown note connected to the step by a wiggly fifth-order Bezier curve. It becomes Delete note while the note exists. New notes open in Edit mode with heading, bold, italic, list, link, and code controls. Opening a workflow starts all existing notes in View mode while preserving their minimized state. Hover or focus the pane to reveal the View and Edit icons just outside its upper-right corner. View renders Markdown with raw HTML and unsafe links disabled.
Every built-in sample includes an expanded Markdown guide attached to its entry step and positioned below the graph. The guide explains the scenario, gives setup and Preview tips, and suggests concrete extensions with the relevant evidence, approval, and cost considerations. Both hosting modes retain these editable guides when saving, copying, exporting, or packaging a workflow.
Drag a note's title bar to move it, or its bottom-right handle to resize it. Both handles support arrow keys, Shift for larger increments, and Home to restore defaults. Minimize hides the pane and connector behind a light-yellow note button, just outside the step's upper-right corner. The button rests at 50% opacity, becomes fully opaque on hover or keyboard focus, and restores the note when clicked. Notes follow their steps and retain their content, relative position, size, and minimized state in saved, exported, and copied workflows. Preview and packaged application graphs show notes in View mode; note annotations do not change execution or invalidate a resumable run.
Model widgets have an external pink-red cost note with blue text showing their running estimated USD cost. Loop, conversation, and generator notes sum the tracked requests in their contained widgets. Repeated usage reports replace the same request's previous estimate; loop iterations and conversation turns accumulate. A + indicates unpriced requests, so the displayed estimate can be incomplete. Each note follows the selected run and saved results.
Aspire application packages and Deploy to Azure offer Include interactive workflow player, unchecked by default. Enabling it adds Show interactive workflow player to the deployed dashboard in both Simple and Pro styles. The player shows live step states, nested graphs, per-widget costs, and movable, resizable output popups for text, images, video, audio, and interactive results. Pin popups across workflow levels, inspect retained iterations, respond to pending input, or open the player in a modal. It uses the dashboard's owner-scoped run and existing media authorization.
The icon-only Magic layout dropdown opens a compact, colored 3-by-3 pattern palette. Hover or focus an icon for its description. Choose Hub and spoke, Golden ratio, Concentric orbits, Cascade, Serpentine, Twin helix, Constellations, Radial fan, or Honeycomb to rearrange every step on the active canvas, including inside a loop or generator. Patterns use connectivity-aware ordering, crossing reduction, and card clearance; they preserve connections, settings, pending edits, and selection. Each arrangement is one undoable edit, and its positions are included when saving or exporting the workflow. The picker requires at least two steps and is unavailable while the workflow is busy.
Applying a pattern enables Fluent with genuine fifth-order Bezier connections. Six-control-point curves are adaptively sampled to within 0.25 canvas pixels because SVG has no native fifth-order path command. Routing favors clear paths around cards and separates shared handoffs where space permits; dense graphs can still require crossings. Labels, hit targets, fit bounds, and the minimap follow the same geometry. Each pattern has its own brief rearrangement motion; reduced motion applies positions immediately. The selected pattern and connection style remain workspace view preferences, and the Fluent toggle can restore standard connections.
The empty-canvas illustration shows a continuous dashed flow from the input through the central step to both outputs. It respects reduced-motion preferences and pauses when the illustration is offscreen or the browser tab is hidden.
Live model output panes
Model cards have always-visible, icon-only output buttons outside their right edge. Text models offer Text and Images viewers; image models offer an image carousel; video and voice models offer native playback and download controls. Transcription results use the Transcription icon and text viewer. Document models also use the text viewer. Both Raw and Markdown tabs have a right-aligned floating Copy to clipboard button that appears on hover or keyboard focus.
Output panes are modeless, so you can keep editing and inspecting the workflow while they are open. Each starts at 600 by 360 pixels, bounded by the viewport on smaller screens, and resizes down to 300 by 300 pixels. Drag its title bar to move it or its bottom-right handle to resize it. Focus either handle and use arrow keys for keyboard movement or resizing; Shift increases the increment, and Home restores its position or default size. Escape and clicks outside the pane leave it open. Use the title-bar Close button to close it.
Cubic Bezier curves connect each visible model card to its open output panes. Routes choose exposed boundary anchors and favor shorter paths with clearance from other cards, panes, and output connections. Overlapping manual placements use the least cluttered available route. Connections follow canvas pan and zoom, card movement, pane movement and resizing, and page scrolling. Lines disappear when the model leaves the visible canvas, is fully covered by a pane, or its output pane is hidden, and return when both are visible again.
Panes follow the selected preview run and update with streamed output and completed media. Image carousels append images produced by the attached step across loop iterations and conversation turns, keeping previous images visible while the next image is generated. Image history is cleared when its loop restarts or a new workflow run begins; resuming an interrupted loop preserves its existing images. Saved results retain this image history. Each viewport fits one complete image as the pane resizes; multiple images add horizontal scrolling with Previous and Next controls and arrow-key navigation. Enlargement and downloading remain available. Video players resize within the pane while preserving their intrinsic aspect ratio, with no scrollbars. Multiple videos use Previous and Next controls. Video panes include an Auto-playback toggle that starts the visible retrieved video when browser playback permissions allow; if playback is blocked, use the video's Play control. The Pin toggle keeps a pane visible and interactive when you move between levels of the same workflow. Unpinned panes reappear when you return to their original level. Pane preferences remain in the current workspace session; generated content can be retained with Save with results.
The following complete workflow needs no provider credentials. Save it as a JSON file. Once a workflow is on the canvas, use the toolbar's Open action to replace it with this example. Preview with the included input to produce Task: LAUNCH PLAN from the Format task step.
{
"schemaVersion": 1,
"id": "normalize-task",
"name": "Normalize a task",
"description": "Trim and normalize a task before sending it to another step.",
"timeoutSeconds": 600,
"previewInput": " Launch plan ",
"nodes": [
{
"id": "normalize",
"name": "Trim input",
"kind": "Expression",
"outputName": "task",
"expression": {
"function": "trim",
"arguments": [
{ "function": "input", "value": "input" }
]
}
},
{
"id": "format",
"name": "Format task",
"kind": "Expression",
"expression": {
"function": "concat",
"arguments": [
{ "function": "literal", "value": "\"Task: \"" },
{
"function": "upper",
"arguments": [
{ "function": "input", "value": "task" }
]
}
]
}
}
],
"edges": [
{ "source": "normalize", "target": "format", "inputName": "task" }
]
}
The other JSON examples in the step reference are node fragments. Add them to a workflow's nodes array and create the indicated connections. Examples that use external services require real endpoints, permissions, and runtime credentials. Deployment consent remains disabled in infrastructure examples until the operator approves execution.
Work IQ and Fabric IQ samples
The starter gallery and Properties template picker include Work IQ with 20 samples and Fabric IQ with 10 samples. Workflow chat can reference every sample. The toolbox includes dedicated Work IQ and Fabric IQ MCP presets alongside the generic MCP step.
These workflows read live, authorized work data. Before any MCP discovery or model request, Authorize data access and model use presents the exact brief. Read authorized data permits scoped reads and sharing the returned data with the configured model. Cancel reaches a local receipt with no provider calls. Check organizational data-handling rules first: model usage is billable and Responses conversation storage is enabled.
Work IQ setup and samples
Configure WORK_IQ_MCP_ENDPOINT with an administrator-approved remote Work IQ MCP endpoint. A local stdio CLI and an A2A endpoint use different protocols. Supply WORK_IQ_IDENTITY using delegated authorization with the native api://workiq.svc.cloud.microsoft/.default audience and preconsented permissions. Native Work IQ does not support application-only tokens.
The initial MCP step calls fetch with a typed entityUrls array of relative Microsoft Graph v1.0 resource paths. The two-turn research model can use the explicitly selected fetch, get_schema, and search_paths tools for focused follow-ups. Grounding scenarios also expose retrieve, which is in public preview. Configure IQ_MODEL_API_KEY in the conversation model; its endpoint can be changed through the model playground or IQ_MODEL_ENDPOINT.
| Sample | Resources and result |
|---|---|
| SharePoint knowledge map | Followed sites, document libraries, and a source-linked knowledge map. |
| SharePoint list exception review | List schemas, item fields, and exception candidates. |
| SharePoint publication readiness | Document grounding, versions, and publication-review questions. |
| OneDrive file discovery | File metadata, supported search paths, and a ranked review queue. |
| OneDrive version comparison brief | Observed version metadata and available content comparisons. |
| Planner personal task triage | Assigned tasks, due dates, completion state, and review priorities. |
| Planner plan health review | Observed plans, buckets, task details, and checklist gaps. |
| Outlook inbox triage | Bounded inbox evidence and response priorities. |
| Outlook reply preparation | Message context and unsent reply proposals. |
| Calendar focus planning | An editable UTC calendar window and proposed focus time. |
| Meeting preparation packet | Calendar details and related document grounding. |
| Teams channel decision digest | Joined teams, a selected channel, and cited decision evidence. |
| Teams chat follow-up review | Chat messages and explicit action-item references. |
| To Do and Planner reconciliation | Personal lists, Planner assignments, and possible overlaps. |
| OneNote research handoff | Notebooks, sections, pages, and cited research notes. |
| People stakeholder map | Returned work-profile fields and ownership questions. |
| Microsoft 365 group onboarding map | Memberships, discovered collaboration resources, and access gaps. |
| Microsoft 365 project readiness | SharePoint, Planner, email, and a cited readiness matrix. |
| Meeting action-to-task proposals | Meeting evidence and proposed tasks checked against existing work. |
| Grounded enterprise work answer | Graph metadata and Work IQ retrieval citations. |
Edit the question, resource paths, and example dates before running. The brief accepts 1-4 paths and a question of up to 2,000 characters. The model checks schemas and observed IDs before follow-up reads. Tenant policy can restrict paths, including Teams, groups, Planner, and OneNote. A valid Graph path does not grant access. Work IQ collection limits and blocked $skip or $skiptoken pagination can leave gaps; the draft must disclose them. File metadata cannot establish document contents.
Fabric IQ setup and samples
Native Fabric IQ uses https://fabriciq.svc.cloud.microsoft/v1/mcp/fabriciq. Organizations using private links can configure https://api.fabric.microsoft.com/v1/mcp/fabriciq, subject to the host's endpoint-access policy. Supply FABRIC_IQ_IDENTITY with delegated Power BI authorization for Item.Read.All, Item.Execute.All, and Dataset.Read.All; the default token scope is https://analysis.windows.net/powerbi/api/.default. Service-principal and application-only authentication are unsupported.
Replace the example artifacts with 1-2 report or semantic-model names or supported browser URLs you can access. Supply IQ_MODEL_API_KEY on the conversation model. The model discovers the server's actual tool schemas during Run, then combines artifact discovery, report metadata, semantic-model schemas, value search, and executed DAX.
| Sample | Analysis |
|---|---|
| Sales variance investigation | Comparable-period regional sales changes. |
| Margin bridge review | Compatible revenue, cost, and margin measures. |
| Inventory aging review | Snapshot dates, age bands, and stock concentrations. |
| Fulfillment service-level investigation | On-time rates, eligibility, and denominators. |
| Customer retention cohort review | Cohort definitions and comparable retention windows. |
| Support demand and backlog analysis | Ticket arrivals, unresolved stock, and age measures. |
| Budget and actuals variance review | Budget versions, periods, currencies, and actual spending. |
| Aggregate workforce capacity review | Authorized team-level demand and capacity aggregates. |
| Supplier delivery risk review | Delivery and quality exceptions with sample-size context. |
| Cross-model KPI reconciliation | Separate queries and explicit measurement-definition comparisons. |
Native Fabric IQ is read-only and supports Power BI reports and semantic models. Ontologies and data agents have separate MCP integrations. Each query targets one semantic model. Cross-model comparisons require separate queries with compatible periods, units, definitions, and grain. RLS and OLS remain effective, and results reflect the latest successful model refresh. The samples request focused aggregates and at most 100 returned rows per query; incomplete results and unknown freshness must remain visible.
Evidence and review boundaries
Both categories use two bounded model turns: investigate, then verify the complete draft against observed evidence. The existing runtime limits each turn to eight tool-handoff rounds and each invocation to 64 tool calls. Sample instructions request at most eight focused tool calls per turn.
Human evidence review presents the exact final draft. Mark reviewed and Hold for review produce separate receipts that retain the brief, draft, decision, and initial Graph evidence where applicable. Both report externalWritesExecuted=false. No sample sends mail, changes meetings, creates tasks, updates files, refreshes semantic models, or executes business decisions. A proposed action needs separate authorization and execution.
See the Work IQ MCP tool reference, Work IQ MCP overview, and Fabric IQ MCP documentation for current service contracts and permission requirements.
Grok Voice 3 industry rehearsals
The Voice & Speech industry workflows section includes 12 Grok Voice 3 samples in the starter gallery and Properties template picker. Workflow chat can also reference every sample. They use grok-voice-3.0 through the Model step's native text-turn adapter, with XAI_VOICE_API_KEY supplied at runtime.
The scenarios are informed by xAI's October 14, 2026 launch announcement, Speech to Speech API documentation, and prompting guide, checked October 15, 2026. The announcement emphasizes responsive support resolution, spoken reasoning, multilingual conversations, and natural turn-taking. These workflow samples exercise grounded responses, corrections, clear readbacks, pronunciation, and speech-speed controls. Live audio interruption and latency measurements belong in the live playground.
| Industry | Sample focus |
|---|---|
| Contact Center | Correct a case number, preserve failed troubleshooting, explain replacement review, and prepare a specialist handoff. |
| Telecommunications | Combine an outage snapshot with troubleshooting history and preserve an unknown restoration estimate. |
| Retail | Keep order lines separate and explain replacement evidence without changing the unaffected item. |
| Financial Services | Explain authenticated lost-card support while avoiding collection of account secrets. |
| Insurance | Preserve a corrected incident date and prepare first-notice evidence for adjuster review. |
| Healthcare Administration | Acknowledge access and scheduling needs with slower speech and a reception handoff. |
| Hospitality | Read back room and night counts, identify missing dates, and explain reservation prerequisites. |
| Travel | Explain a disruption snapshot and prepare rebooking questions while keeping the itinerary unchanged. |
| Logistics | Confirm a corrected tracking code and explain authenticated redelivery prerequisites. |
| Utilities | Explain an interruption snapshot and prepare a staffed service-desk escalation. |
| Public Services | Explain library membership confirmation in Spanish, with bilingual audio review. |
| Education | Offer one focused practice prompt and preserve teacher assessment authority. |
Contact Center walkthrough
- Validate authorized support intake requires
authorized=true, a case ID, caller text, and reference text. Caller and reference text are each limited to 12,000 characters. Default data is fictional. - Read case history and replacement policy creates a read-only evidence packet. The default case includes a corrected case number, two failed restarts, and a replacement request awaiting review.
- Review context and choose handling pauses for a person. Generate response and Prepare specialist handoff each authorize one billable voice turn; Hold without generation reaches a local receipt with no provider call.
- Keep the handling decision with its evidence joins the exact reviewed context and choice. Conditions then select the resolution or specialist-handoff brief.
- Grok Voice 3: speak the selected response runs one fresh native realtime text turn with high reasoning. It produces a transcript and WAV; no microphone or phone call is connected.
- Assemble transcript, audio, and proposed next step keeps the source, selected handling, and exact response together, and rejects blank or oversized spoken drafts.
- Human audio, factual, and language review asks a person to listen and check corrected codes, policy facts, authority limits, and language quality.
- Rehearsal accepted? routes to a reviewed case packet or a hold-for-correction packet. Both state
actionsExecuted=false.
The remaining templates use the same explicit approval and review boundaries with their own intake, evidence, resolution, escalation, and prompting details. Healthcare uses slower speech, telecommunications includes a pronunciation replacement, and public services specifies Spanish (Mexico). Any requested real action requires separate authenticated, authorized integration and confirmation. Default samples perform no identity verification, refunds, bookings, shipping changes, CRM writes, or call transfers.
Step catalog
| Step | JSON kind |
Use it to |
|---|---|---|
| Agent | Agent |
Run and manage a playground-backed Benchius agent with bounded tools, selectable hosting, state, and telemetry. |
| Model | Model |
Call a configured text, image, video, document, retrieval, or speech model, including bounded Grok Voice 3 text turns. |
| Chat Completions | ChatCompletions |
Call a model through the Chat Completions protocol. |
| Responses | Responses |
Call a model through the Responses protocol. |
| MCP | Mcp |
Execute one configured MCP tool or WebIQ search. |
| REST call | RestCall |
Send an HTTP request and consume its completed response body. |
| Entra ID Auth | EntraIdAuth |
Acquire an access token for a configured resource audience. |
| Azure resource | AzureResource |
Read or archive media, enqueue review work, and publish lifecycle events using Azure identity bindings. |
| Variable | Variable |
Set or read a named, run-scoped JSON value. |
| Synthetic Data | SyntheticData |
Seed or generate a shared synthetic collection only when empty or explicitly rebuilt. |
| Vector DB | VectorDb |
Cache embeddings, upsert vectors, run filtered cosine search, read records, and remove selected data. |
| Expression | Expression |
Compute a new value with the built-in expression functions. |
| Condition | Condition |
Route the incoming data through true and false branches. |
| Loop | Loop |
Process an array, repeat a body, refine until a condition, or poll. |
| Multi-turn | MultiTurn |
Maintain a bounded model conversation with feedback and optional tools. |
| User input | UserInput |
Wait for a person's choice or text response. |
| Just-in-Time Tool | JitTool |
Expose model-callable code tools in an approved server-side environment. |
| Local Just-in-Time Tool | LocalJitTool |
Expose bounded JavaScript tools in an isolated browser worker. |
| ACA Sandbox | AcaSandbox |
Create a run-owned sandbox shared by referencing code-tool steps. |
| Stitch Video | StitchVideo |
Concatenate an ordered collection of compatible MP4 clips. |
| Add Image Watermark | ImageWatermark |
Composite visible text or a logo onto a PNG or JPEG image. |
| Add Video Watermark | VideoWatermark |
Embed and verify an experimental pixel-based copy identifier. |
Workflow configuration
| Property | Default | Meaning |
|---|---|---|
schemaVersion |
1 |
Required in imported JSON, including every loop body. |
id |
Generated ID | Workflow identifier: 1-64 ASCII letters, digits, hyphens, or underscores; begins with a letter or digit. |
name |
"Untitled workflow" |
Readable name, 1-128 characters without control characters. |
description |
"An agentic solution composed with Benchius." |
Optional descriptive text, up to 4,096 characters. |
type |
Default |
Default or ModelEvaluationAndScoring; configure this on the root workflow. Default exports omit this field. |
sampleId |
Unset | Optional stable built-in sample identifier on the root workflow. |
timeoutSeconds |
600 |
Overall execution deadline, 1-3,600 seconds. A loop body's deadline is also enforced for each execution of that body. |
budgetUsd |
Unset | Optional nonnegative USD budget on the root workflow. A positive budget includes nested steps and model turns and requires a host that supports approval when it is exceeded. Zero disables budget pausing. |
previewInput |
"" |
Text used by the editor's Preview. Runtime callers supply their own input separately. |
automation |
Unset | Optional root recommendation with runType (OneTime, Recurring, or LongRunning), intervalMinutes, notifyOnCompletion, and delivery. Recommendations never create schedules automatically. |
nodes |
[] |
Steps in this graph. Runnable workflows and loop bodies need at least one step. |
edges |
[] |
Connections between steps in this graph. |
traderDashboard |
Unset | Optional root-level trader presentation configuration. Its quote and insight sources must reference distinct polling loops. |
orchestration |
Unset | Optional root-level native multi-agent presentation and run controls for a configured OpenAI Responses model. Start from a compatible template. |
traderDashboard and orchestration are specialized presentation configurations with different input contracts. They cannot be enabled together.
Shared step configuration
All steps use the following envelope. Each step page describes its matching configuration object.
| Property | Default | Meaning |
|---|---|---|
id |
Generated node ID | Globally unique across the complete hierarchy, including loop bodies and multi-turn model children. Uses the same identifier format as workflow IDs. |
name |
"Model" |
Display name, 1-128 characters without control characters. Use descriptive names for activity and joined text. |
kind |
Model |
Step kind from the catalog. Set it explicitly in authored JSON. |
timeoutSeconds |
180 |
Step deadline, 1-3,600 seconds. Container deadlines cover their entire operation. |
outputName |
"" |
Suggested binding name for outgoing connections that have no explicit inputName. |
x, y |
80, 80 |
Canvas position only. Finite coordinates with absolute values no greater than 100,000. |
note |
Unset | Optional Markdown annotation with its saved position, size, and minimized state. |
breakpoint |
Unset | Optional debugging breakpoint with enabled, which defaults to true. |
agent |
Unset | Agent hosting, instructions, and tool limits. Agent also uses multiTurn for its playground model and conversation. |
sandboxNodeId |
Unset | Optional ACA Sandbox node ID for an Agent, JitTool, or LocalJitTool. The referenced sandbox must be in the same graph or a containing graph. |
The note object contains text (Markdown), x and y canvas offsets relative to the step, width and height in pane pixels, and minimized. Its position must be finite, with offsets between -100,000 and 100,000. Width ranges from 220 to 10,000 pixels; height ranges from 160 to 10,000 pixels. Note content shares the workflow's 1 MiB document limit. Panes retain readable text and controls when the graph zoom changes, and temporarily fit smaller viewports without rewriting saved geometry. View and Edit are workspace modes; preview and packaged graphs always render visible notes in View mode.
Set only the configuration object that matches the kind. Model, ChatCompletions, and Responses all use model. Other kinds use mcp, rest, entraIdAuth, azureResource, variable, syntheticData, vectorDb, expression, condition, loop, multiTurn, userInput, jitTool, localJitTool, acaSandbox, stitchVideo, imageWatermark, or videoWatermark.
Agent pairs agent with the existing multiTurn conversation configuration. Its model child remains a regular playground-backed Model step with its own globally unique ID.
Debugging with breakpoints
Every step has an octagonal breakpoint control in its canvas header and Properties. Click it to add an enabled breakpoint, click again to disable it, and use Remove breakpoint in Properties to remove it. Disabled breakpoints remain saved. Breakpoint edits participate in undo/redo, clipboard copies, JSON exports, and packages.
An enabled breakpoint pauses immediately before that step executes. Skipped branches and reused completed checkpoint outputs do not stop. Nested loop steps stop on each actual iteration; conversation-model children stop before each turn. The green Resume button beside the reached breakpoint continues that exact request. A persistent pause strip also exposes reached steps in other workflow levels. Disable for this run and resume suppresses subsequent hits at that step without changing the saved breakpoint.
Workflow and step execution timers suspend during the pause. Caller cancellation, host shutdown, and external resource lifetimes continue to apply. In-flight requests can finish; subsequent model calls, tool calls, and workflow transitions wait. Concurrent reached breakpoints must each be resumed. Resuming a breakpoint preserves any separate budget-approval pause. Stop cancels a paused preview without starting its blocked steps.
Saved results retain reached-breakpoint and agent history as read-only snapshots. Start a new preview for live debugging controls. Breakpoints do not invalidate otherwise reusable checkpoint outputs.
Programmatic execution with enabled breakpoints requires an explicit WorkflowRunControl. Read its Breakpoints and call ResumeBreakpointAsync(requestId, disableForRun) with the actual pending ID. The Benchius HTTP SDK exposes the same operation through Workflows.ResumeBreakpointAsync; snapshots use WaitingForBreakpoint. Aspire dashboards and hubs expose reached-breakpoint controls, and headless API and Foundry packages expose authenticated resume operations. Unattended schedules and the Store publishing profile require enabled breakpoints to be disabled first.
Binding names are case-sensitive, 1-128 characters, begin with an ASCII letter or underscore, and contain only ASCII letters, digits, underscores, and hyphens. Credentials and endpoint references use environment-style names: the same format with hyphens excluded.
Connections and input bindings
A connection is a workflow edge:
{
"source": "search",
"target": "summarize",
"inputName": "research",
"transform": {
"function": "trim",
"arguments": [
{ "function": "input", "value": "input" }
]
}
}
| Property | Meaning |
|---|---|
source |
Source node ID. |
target |
Destination node ID in the same graph. |
inputName |
Optional destination binding name. |
condition |
Optional true or false branch filter. Only a Condition step can be its source. Omit it for an unfiltered connection. |
transform |
Optional expression evaluated against this source's output before the destination receives it. |
Input names are assigned in this order: explicit connection inputName, source outputName, then input for a single unnamed connection or input_1, input_2, and so on for multiple connections. The numbered names follow incoming-edge order. Every incoming binding at a join must have a unique name; input is reserved for the combined value when there are multiple connections.
One input: the destination's input is the source's typed value after any connection transformation. A named connection also exposes that value under its assigned name.
Several active inputs: each named binding retains its own JSON type. The combined input is text formatted as ### <source name> sections in workflow node order. Use named paths such as quote.total or research.results[0] for structured processing.
Branches and joins: a join waits for all predecessors to settle. Inactive branch bindings are null. A step with data connections runs when at least one incoming connection is active; it is skipped when all are inactive. An unfiltered Condition connection receives the input on either branch. Inferred variable and sandbox dependencies also participate in scheduling.
Root steps: a step with no incoming data connections receives the graph's original input. Independent steps can execute concurrently. Canvas position and node-list order do not establish dependencies.
A transformation sees the source value as input and under the connection's assigned name. Use those bindings or established variables in a transform. Perform operations that combine multiple source outputs in the destination Expression step.
Templates and typed values
Templates use placeholders such as {{input}}, {{quote.total}}, and {{research.results[0].title}}. The path rules are documented in Expressions. A placeholder reads an available input; expression functions are configured as expression trees.
| Location | Rendering behavior |
|---|---|
| Text templates | Strings remain text. Objects and arrays become compact JSON text; null becomes null. Replacements are inserted once. |
| JSON request bodies and MCP arguments | Placeholders are resolved in string values; property names stay unchanged. A whole named placeholder preserves its JSON type. Embedded placeholders become escaped string content. |
Exact {{input}} in model or MCP JSON |
Preserves the rendered input as a string for prompt compatibility. |
| Exact placeholders in REST JSON | Preserve typed input, including objects, arrays, numbers, and booleans. |
| Endpoint placeholders | Each replacement is URL-escaped automatically. Put placeholders in path or query values under a fixed public HTTPS origin. |
| Header values | Use text rendering and are revalidated for safe header content. |
Runtime text that is valid JSON is parsed into a typed value. Other text remains a string. Expression and Variable steps preserve typed values directly. User input always produces a string, even when a person types JSON; apply jsonParse explicitly when structured input is required.
Use urlEncode when constructing URL text in an expression. Keep endpoint-template input unencoded because the endpoint renderer already encodes it.
Preview, limits, and failures
Preview shows streamed deltas, completed outputs, loop or conversation revisions, user-input requests, usage, and activity. Downstream steps receive completed results. A partial provider stream cannot substitute for a final result.
The workflow assistant uses this bundled reference and can read its step, expression, and execution-guide pages as needed. Each chat turn includes the selected retained preview run's step statuses, outputs, recent activities and revisions, together with visible composer and validation errors. The snapshot is limited to 64 KiB of UTF-8 text, prioritizes failed steps, and marks truncated excerpts or omitted history.
Preview context is sent to the selected chat model. Known runtime credentials are redacted, and raw HTTP debug payloads stay outside chat context. Review your preview data before sending a message. Assistant edits require a new explicit Preview to verify the result.
Validation rejects unknown properties, duplicate JSON properties, unsupported enums, dangling or duplicate connections, self-connections, and dependency cycles. Repetition belongs inside a Loop or Multi-turn container. Data edges cannot cross a container boundary.
| Limit | Current value |
|---|---|
| Workflow JSON document | 1 MiB UTF-8 |
| Nodes across the complete hierarchy | 50 |
| Edges across all graphs | 200 |
| Container nesting | 8 levels |
| Node executions in one run | 10,000 |
| Individual configuration JSON or template budget | 256 KiB where specified by the step contract |
| Expression tree | 16 levels, 256 operations, at most 32 arguments per function |
Host resource limits separately bound text, requests, responses, streaming frames, events, and retained run memory. Default text and expression output are limited to 16 MiB UTF-8; hosts can change these limits. Media and code-tool limits are documented on their step pages.
A failed step fails the run and cancels remaining execution. Timeouts, malformed provider results, missing bindings, and unsupported hosts produce explicit errors. Cancellation stops local waiting and initiates cleanup; external services can have their own cancellation or cleanup limitations.
Paused budget approval does not undo requests already submitted to a provider. In custom hosts, supply WorkflowRunControl for positive budgets and a fresh WorkflowUserInputSession for workflows requiring human input. Resume reuses compatible completed outputs, while authentication and run-scoped tool capabilities can require a fresh run.
Credentials, storage, and packaging
Keep credentials in Vault, session memory, or the target host's protected configuration. Workflow JSON carries references such as MODEL_API_KEY, together with non-secret connection settings. Authentication headers must be configured through their dedicated fields. Custom headers cannot carry credentials or transport overrides.
Provider connections require public HTTPS endpoints. Local, private, reserved, credential-bearing, or fragmented URLs are rejected unless the specific endpoint-secret consent mechanism permits the credential-bearing portion. Confirmed secret-bearing URLs are still sensitive and are excluded from persisted workflow libraries.
Saving permits incomplete drafts, but Preview requires runnable configuration. Browser libraries are local to that browser. Export a copy before moving to another browser or host.
Packaging targets include Aspire, Foundry Agent, Microsoft 365 Copilot, and Copilot Studio. Host capabilities differ: browser-local tools need an interactive browser host, infrastructure steps need authorized identities, and media processing needs its configured FFmpeg backend. Review packaging validation for the selected target.
The Package dialog shows a Benchius-to-Package transfer pane while it saves files to a chosen folder or prepares the ZIP download. With reduced motion enabled, the pane shows a static transfer illustration. Deploy to Azure has its own progress view.