> ## 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.

# Workflow Auto Generator • AI Agents Framework

> WorkflowAutoGenerator: Auto-generates workflow.yaml files from a topic description.

# WorkflowAutoGenerator

> Defined in the [**auto**](../modules/auto) module.

<Badge color="purple">AI Agents Framework</Badge>

Auto-generates workflow\.yaml files from a topic description.

Inherits from BaseAutoGenerator for shared LLM client functionality.

## Constructor

<ParamField query="topic" type="str" required={false} default="'Research and write about AI'">
  No description available.
</ParamField>

<ParamField query="workflow_file" type="str" required={false} default="'workflow.yaml'">
  No description available.
</ParamField>

<ParamField query="config_list" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="framework" type="str" required={false} default="'praisonai'">
  No description available.
</ParamField>

<ParamField query="single_agent" type="bool" required={false} default="False">
  No description available.
</ParamField>

## Methods

<CardGroup cols={2}>
  <Card title="recommend_pattern()" icon="function" href="../functions/WorkflowAutoGenerator-recommend_pattern">
    Recommend the best workflow pattern based on task characteristics.
  </Card>

  <Card title="recommend_pattern_llm()" icon="function" href="../functions/WorkflowAutoGenerator-recommend_pattern_llm">
    Use LLM to recommend the best workflow pattern with reasoning.
  </Card>

  <Card title="generate()" icon="function" href="../functions/WorkflowAutoGenerator-generate">
    Generate a workflow YAML file.
  </Card>

  <Card title="merge_with_existing_workflow()" icon="function" href="../functions/WorkflowAutoGenerator-merge_with_existing_workflow">
    Merge new workflow data with existing workflow file.
  </Card>
</CardGroup>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
generator = WorkflowAutoGenerator(topic="Research AI trends and write a report")
    path = generator.generate()
```

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1018">
  `praisonai/auto.py` at line 1018
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="AgentFlow Concept" icon="diagram-project" href="/docs/concepts/agentflow" />

  <Card title="Workflow Patterns" icon="shuffle" href="/docs/features/workflow-patterns" />

  <Card title="Routing" icon="route" href="/docs/features/routing" />

  <Card title="Workflows Feature" icon="diagram-project" href="/docs/features/workflows" />

  <Card title="YAML Workflows" icon="file-code" href="/docs/features/yaml-workflows" />
</CardGroup>
