> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# agenerate • AI Agents Framework

> agenerate: Async version of generate() - Generate a workflow YAML file.

# agenerate

AsyncMethod

> This is a method of the [**WorkflowAutoGenerator**](https://praison.ai/docs/sdk/reference/praisonai/classes/WorkflowAutoGenerator.md) class in the [**auto**](https://praison.ai/docs/sdk/reference/praisonai/modules/auto.md) module.

Async version of generate() - Generate a workflow YAML file.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def agenerate(pattern: str, merge: bool) -> str
```

## Parameters

**pattern** `str` (default: 'sequential')

Workflow pattern - "sequential", "routing", "parallel", "loop", "orchestrator-workers", "evaluator-optimizer"

**merge** `bool` (default: False)

If True, merge with existing workflow file instead of overwriting

### Returns

**Returns** `str`

Path to the generated workflow file

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1838)
>
> `praisonai/auto.py` at line 1838


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.