// Install the SDK
npm install @flowscribe/sdk
// Initialize in your app
import { FlowScribe } from '@flowscribe/sdk'
const scribe = new FlowScribe({ apiKey: process.env.FLOWSCRIBE_API_KEY })
// Start recording a process
const flow = scribe.startFlow("checkout-process")
flow.step("validate-payment", { amount: 99.99 })
flow.step("create-order", { orderId: "4782" })
flow.complete()
// Flow Scribe automatically generates documentation!