Skip to main content

Use Samples

SharpOMatic includes sample workflows you can load into your workspace.

Samples are useful for exploring the editor, exploring different features and seeing recommended patterns. Samples include AG-UI conversation patterns and basic orchestration patterns such as fan-out/fan-in, batch processing, loops and more.

If a sample needs to use a model then you will need to create a connector and then model. Once added you can edit the ModelCall in the workflow and select the model you just defined. To test AG-UI samples over the browser protocol, use the Sharpy client sample.

Choose a sample

The Samples menu lists Basic samples first, then AG-UI samples, then any other samples.

SampleDescription
Basic: Switching paths logicUses the Switch node to run different paths.
Basic: Looping around pathShows how to loop for a defined number of times.
Basic: Parallel paths logicUses FanOut and FanIn to run parallel paths.
Basic: Batch processing of itemsParallel processing of items in batches.
Basic: Call backend codeUses backend classes in the Code node.
AG-UI: Stateless simple chatbotSimplest chatbot with a stateless workflow.
AG-UI: Stateful simple chatbotSimplest chatbot with a stateful workflow.
AG-UI: Stateful human in the loopHuman-in-the-loop chatbot.
AG-UI: Stateful agent with customizationStateful agent that uses tools and streaming events.
AG-UI: Example activity events outputUses activity events to show progress in the frontend.
AG-UI: Example tool call event outputUses tool events to show custom rendering in the frontend.
AG-UI: Code only event streamMulti-turn workflow with hand-crafted output.

Create a workflow from a sample

  1. Open the Workflows page in the editor.
  2. Select Samples from the top right, then choose a sample from the list.
  3. The sample is copied into your workspace as a new workflow.
Custom model setup

Where samples come from

Sample workflows are embedded in the engine and surfaced by the editor. If no samples are available, the Samples menu is hidden.