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

# Recommend Pattern • AI Agents Framework

> recommend_pattern: Recommend the best workflow pattern based on task characteristics.

# recommend\_pattern

Method

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

Recommend the best workflow pattern based on task characteristics.
Shared implementation for AutoGenerator and WorkflowAutoGenerator.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def recommend_pattern(topic: Optional[str]) -> str
```

## Parameters

**topic** `Optional[str]`

The task description (uses self.topic if not provided)

### Returns

**Returns** `str`

Recommended pattern name

## Source

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


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