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

# Job Workflow Auto Generator • AI Agents Framework

> JobWorkflowAutoGenerator: Auto-generates job workflow YAML files with agent-centric steps.

# JobWorkflowAutoGenerator

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

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

Auto-generates job workflow YAML files with agent-centric steps.

Generates workflows with `type: job` that include:

* agent: steps for AI agent execution
* judge: steps for quality gates
* approve: steps for approval gates
* run: steps for shell commands
* action: steps for built-in actions

## Constructor

<ParamField query="topic" type="str" required={false} default="'Automate a task'">
  No description available.
</ParamField>

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

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

## Methods

<CardGroup cols={2}>
  <Card title="generate()" icon="function" href="../functions/JobWorkflowAutoGenerator-generate">
    Generate a job workflow YAML file.
  </Card>

  <Card title="agenerate()" icon="function" href="../functions/JobWorkflowAutoGenerator-agenerate">
    Async version of generate() - Generate a job workflow YAML file.
  </Card>
</CardGroup>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
generator = JobWorkflowAutoGenerator(topic="Generate changelog and publish")
    path = generator.generate()
```

## Source

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

***

## Related Documentation

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

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

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

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

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