Skip to main content
This guide provides practical examples for integrating Simplex into your applications using the TypeScript or Python SDK.

Installation

Initializing the client

Configuration options

Running workflows

Basic workflow execution

With webhook callback

Editor sessions

Create a workflow and start an interactive browser session in one call. Optionally pass a prompt to automatically send instructions to the agent once the session is ready.
Without prompt, you can send instructions after the session starts using send_message:

Handling webhook responses

Next.js App Router

Express

Polling session status

Resuming paused flows

When a flow script calls pause(), you can resume it programmatically:

Streaming live events

Live event streaming is not yet available in the TypeScript SDK. Use webhooks or polling instead.

Closing a session

Stop a running session programmatically. This saves agent state and sets the session status to “Stopped”.

Retrieving session data

Get session replay

Get session logs

Download session files

Recording browser actions

Capture user interactions during an editor session for replay or script generation.

Batch processing

Running multiple workflows

With rate limiting

Searching workflows

Error handling

Environment configuration

Next steps