WorkflowContainer is a wrapper that encapsulates a workflow along with its associated metadata. This structure is used to package a workflow for deployment or execution.
Structure
Properties
The URL where the workflow JSON can be accessed.
The initial prompt or instructions for the AI model that will be executing this workflow. This should provide context and guidelines for the AI’s behavior throughout the workflow.
The actual workflow definition. This includes the entire structure of the workflow, including its server configuration, tools, events, and state machine.
Usage
TheWorkflowContainer is typically used when you want to deploy or share a complete workflow package. It combines the workflow definition with necessary metadata to ensure that the workflow can be properly initialized and executed.
Example: