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

# In-Memory Storage for Workflows

Example using `InMemoryDb` with workflows for multi-step processes.

## Usage

```python theme={null}
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai import OpenAIResponses
from agno.team import Team
from agno.tools.hackernews import HackerNewsTools
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow

# Setup in-memory database
db = InMemoryDb()

# Create agents and team
research_agent = Agent(
    name="Research Agent",
    model=OpenAIResponses(id="gpt-5.2"),
    tools=[HackerNewsTools()],
)

content_agent = Agent(
    name="Content Agent",
    model=OpenAIResponses(id="gpt-5.2"),
)

# Define workflow steps
research_step = Step(name="Research", agent=research_agent)
content_step = Step(name="Content", agent=content_agent)

# Create workflow
workflow = Workflow(
    name="Content Workflow",
    db=db,
    steps=[research_step, content_step],
)

workflow.print_response("AI trends in 2024")
```
