Skip to main content
The playground provides an interactive testing environment for workflows, featuring a chat interface, session management, and real-time execution feedback.

Try it

In your editor, you can create sessions, send messages, and watch the simulated workflow execute in real time.

Quick start

Mount API

Svelte component

Features

Session management

The playground supports multiple parallel sessions. Each session represents an independent conversation with the workflow:
  • Create new sessions
  • Switch between active sessions
  • View session history
  • Delete sessions via dropdown menu

Chat interface

The chat panel displays messages from both the user and the workflow execution:
  • User messages are shown on the right
  • System/assistant messages on the left
  • Execution logs inline in the conversation
  • Interrupt prompts rendered as interactive UI elements

Real-time polling

The playground polls the backend for new messages during execution. Configure polling behavior:

Configurable lifecycle hooks

The awaiting_input status pauses polling automatically — call playground.startPolling() to resume after an interrupt is resolved.

Push messages

For custom transports (WebSocket, SSE), push poll responses directly:

Human-in-the-loop

The playground integrates with FlowDrop’s interrupt system. See the Human-in-the-Loop guide for details on interrupt types and configuration.

API endpoints

The playground uses these backend endpoints: