# workflows.do > Define business workflows in TypeScript with automatic execution, retries, and state persistence. AI agents read, modify, and optimize your workflows autonomously. Durable execution for long-running processes. Business Workflows That Optimize Themselves. Declarative TypeScript workflows with automatic execution, intelligent retry logic, and AI-powered optimization. Build complex multi-step processes with durable execution and automatic state persistence. workflows.do is one of the primitives of Platform.do, in the Workflows layer (triggers, steps and functions). Every .do shares one grammar, Business-as-Code, and one SDK. ## Page - [workflows.do](https://workflows.do/): Workflows.do - Build Declarative Workflows | AI-Optimized Business Logic at the Edge ([Markdown](https://workflows.do/index.md)) ## Business-as-Code - [What is Business-as-Code?](https://platform.do/business-as-code): the grammar every .do shares ([Markdown](https://platform.do/business-as-code.md)) - [Platform.do](https://platform.do/): infrastructure for autonomous business ([llms.txt](https://platform.do/llms.txt)) ## Docs - [Documentation](https://docs.platform.do): guides and reference for the whole platform - [SDK](https://docs.platform.do/sdk): TypeScript SDK, `import { on, send, db, $ } from 'sdk.do'` - [CLI](https://docs.platform.do/cli): the `do` command - [MCP](https://docs.platform.do/mcp): one MCP tool, `do`, that runs a script - [API](https://docs.platform.do/api): REST API ## Other Workflows primitives - [functions.do](https://functions.do) - [actions.do](https://actions.do) - [triggers.do](https://triggers.do) - [webhooks.do](https://webhooks.do) - [tasks.do](https://tasks.do) - [rpa.do](https://rpa.do) - [transform.do](https://transform.do) ## Optional - [Full text](https://workflows.do/llms-full.txt): this index plus the page in full