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

# Merge With Existing Workflow • AI Agents Framework

> merge_with_existing_workflow: Merge new workflow data with existing workflow file.

# merge\_with\_existing\_workflow

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**WorkflowAutoGenerator**](../classes/WorkflowAutoGenerator) class in the [**auto**](../modules/auto) module.

Merge new workflow data with existing workflow file.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def merge_with_existing_workflow(new_data: Dict) -> Dict
```

## Parameters

<ParamField query="new_data" type="Dict" required={true}>
  The new workflow data to merge
</ParamField>

### Returns

<ResponseField name="Returns" type="Dict">
  Merged workflow data
</ResponseField>

## Uses

* `yaml.safe_load`
* `logging.warning`

## Used By

* [`WorkflowAutoGenerator.generate`](../functions/WorkflowAutoGenerator-generate)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1155">
  `praisonai/auto.py` at line 1155
</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>
