41  Sample Workspace and Demo Flows

41.1 Overview

Status: This page is technical reference for the Automations 0.92.1 implementation. It does not claim customer availability; staging verification and production enablement are separate gates.

This guide describes prerequisites and examples for trying Sophea Automations in a configured sample Workspace. Use the examples to configure triggers, actions, and mappings, then inspect step outputs and flow runs.

41.2 Sample Workspace Configuration

41.2.1 Prerequisites

  • An operator-provisioned Automations platform with the dedicated workload and Portal launch integration configured.
  • An active Portal Workspace with Automations enabled, and an active member who can open the selected Workspace.
  • A visible CHAT model and Workspace default configured through platform model governance.
  • Real indexed documents accessible to the user who will run the knowledge flows.
  • An enabled, invokable Nous agent for the agent example.
  • Nous SMTP configured, plus a recipient mailbox you can read to check actual delivery.

41.3 Demo Flows

41.3.1 Demo 1: Create your first flow (5 minutes)

Goal: Search the knowledge base and display the answer.

  1. Open Automations and choose Start from scratch or Create New > New Flow.
  2. Add a Manual Trigger and the ask_nous_knowledge action.
  3. Set the question to: “What is our remote work policy?”
  4. Test the step and inspect the answer and its citations against the actual indexed policy that the runner can access.
  5. Review the draft and publish it when ready.
  6. For a published manual-trigger flow, choose Run Flow and inspect the actual run in Runs.

What this demonstrates: configuring a knowledge action and inspecting its answer and citations. Knowledge search uses indexed documents accessible to the flow runner.

41.3.2 Demo 2: Create a flow with AI (3 minutes)

Goal: Create a draft flow graph from a natural-language description.

  1. Open the Automations home page and choose Create with AI.
  2. Choose Workspace default or a currently visible explicit CHAT model.
  3. Enter: “Every day at 9 AM in the intended Workspace timezone, search the knowledge base for recent updates and email a summary to the flow runner.”
  4. Review the generated draft graph and correct its trigger, actions, mappings, and recipient.
  5. Test the steps with the prepared Workspace data, then publish only after review.
  6. Inspect the actual run and verify receipt in the runner’s mailbox.

What this demonstrates: AI-assisted draft creation and review, with schedule, knowledge, and email steps. Review and test the generated draft before publishing, using the intended Workspace timezone, accessible content, a configured model, and a readable mailbox.

41.3.3 Demo 3: Set up an approval workflow (5 minutes)

Goal: Use AI to review content before publishing.

  1. Open Automations and create a manual-trigger flow.
  2. Add Review with AI (llm_approval); enter the review rules in Review instruction and the material being evaluated in Review target.
  3. Set Confidence threshold (confidenceThreshold) to 0.8 for this example; the action default is 0.75.
  4. Add a Router with explicit branches for APPROVED, REJECTED, and NEEDS_HUMAN_REVIEW.
  5. Route NEEDS_HUMAN_REVIEW through request_human_approval, configured with active Portal Workspace Approvers and a Decision deadline. Route its decision (APPROVED or REJECTED) explicitly too; rejection does not automatically stop later steps.
  6. Put any notification email only on the intended branch, configure its recipients, and verify actual delivery separately.
  7. Test the branches, review the draft, then publish and inspect the actual run.

What this demonstrates: explicit routing for AI review and human approval outcomes; the example value 0.8 is not the action default.

41.3.4 Demo 4: Run a research agent (5 minutes)

Goal: Use a Nous agent to research a topic and summarize results.

  1. Open Automations and create a manual-trigger flow.
  2. Add start_agent_run, select the enabled agent available to the Workspace, and enter: “Research the top 3 competitors in enterprise AI platforms.”
  3. Map its returned agent_service_run_id to Get agent run status, selecting the same Agent.
  4. Check status until it is terminal: completed, failed, or cancelled. A configured Agent Run Completed polling watcher can also signal a terminal state for its selected agent run.
  5. Only on completed, add Get agent run artifacts with the same agent and service-run handle, then email the artifact output if that is the intended path. Handle failed or cancelled separately; do not request or email completed-run artifacts before terminal completion.
  6. Review and publish the flow, then inspect its actual run.

What this demonstrates: tracking an asynchronous agent run by its service-run handle, retrieving artifacts after completed, and handling failed or cancelled outcomes separately.

41.3.5 Demo 5: Batch knowledge search (3 minutes)

Goal: Search multiple queries in one step.

  1. Open Automations and choose Start from scratch or Create New > New Flow.
  2. Add a Manual Trigger and batch_search_knowledge.
  3. Supply the actual query array: ["current sprint goals", "open customer issues", "recent deployment notes"]; confirm the indexed corpus is accessible to the flow runner.
  4. Test the step and inspect the result for each query.
  5. Add ask_workspace_model to summarize the results, using Workspace default or a visible explicit CHAT model.
  6. Review and publish the draft, then inspect the actual run.

What this demonstrates: a multi-query knowledge action and a model summary, subject to accessible indexed content and current model configuration.

41.5 Troubleshooting

41.5.1 Flow does not start

  • Confirm that the trigger settings are complete.
  • For schedules, verify the configured timezone and time.
  • For webhooks, use the Live/Test URL shown in trigger settings and verify the configured authentication method, header name, and secret/algorithm/encoding as applicable. HMAC signs the raw request body; a timestamp header is not required by this trigger.
  • Open Runs in the builder header and inspect the actual run.

41.5.2 Knowledge search returns no results

  • Confirm the queried content is indexed and accessible to the user who runs the flow.
  • Check the actual query and, if using a model action, the visible Workspace model/default and its provider.
  • Try a more specific query and inspect the action output.

41.5.3 Email not sent

  • Confirm Nous SMTP has SMTP_SERVER, SMTP_USER, and SMTP_PASS configured.
  • Check that RUN_USER or the selected active Portal Workspace members are the intended recipients.
  • Inspect the action result and any refused recipients, then verify actual receipt in a mailbox you can read.

41.5.4 AI model returns an error

  • Confirm that a currently visible CHAT model and Workspace default are configured through platform model governance; do not substitute an arbitrary LiteLLM alias.
  • For model failures, check that the selected model is visible, is available to the Workspace, and that its configured provider is reachable.