Skip to main content
The Solmyr Workflow system is a powerful tool for defining and managing AI-driven workflows. It allows you to create complex, state-based processes that can interact with AI models, external tools, and respond to various events.

Key Concepts

  1. Workflow Container: A wrapper that includes the workflow definition along with metadata like the URL and initial prompt.
  2. Workflow: The core structure that defines the entire process, including server configuration, available tools, event handlers, and the state machine.
  3. State Machine: The heart of the workflow, defining various states and transitions between them.
  4. Transitions: Rules for moving between states, which can be triggered by events or conditions.
  5. Guards: Conditional checks that control state transitions.
  6. Tools: External functions or services that can be invoked within the workflow.
  7. Events: Triggers that can cause state transitions or other actions within the workflow.
This documentation will guide you through each of these components, helping you understand how to create and manage workflows effectively using the Solmyr system.

XState Integration

The Solmyr Workflow system’s state machine is built on top of XState, a popular state management library. Our workflow types are a subset of XState’s types, tailored for AI-driven workflows. This means that while our API is simplified for specific use cases, it’s backed by the robust and well-tested XState library.