> For the complete documentation index, see [llms.txt](https://craft-agent.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://craft-agent.gitbook.io/home/getting-started/your-first-workflow.md).

# Your First Workflow

Let's build a simple workflow that takes a topic and generates a blog post outline using AI.

## Step 1: Create a New Workflow

1. Open [app.craftagent.io](https://app.craftagent.io) or the iOS app
2. Click the **"+"** button to create a new workflow
3. Give it a name like "Blog Outline Generator"

## Step 2: Add a User Prompt Node

1. Tap/click on the canvas to open the node picker
2. Select **"User Prompt"**
3. In the node settings, enter your topic (e.g., "The Future of AI in Healthcare")

## Step 3: Add an AI Agent

1. Tap/click on the canvas again
2. Select **"Agent"** from the AI section

## Step 4: Add a Model Node

1. Add a **"Model"** node
2. Select a model (e.g., **GPT-4o Mini**)
3. Connect the Model node to the Agent

## Step 5: Add a Persona Node

1. Add a **"Persona"** node
2. Select a pre-built persona or write a custom prompt:

```
You are a professional content strategist. Given a topic, create a detailed 
blog post outline with:
- A compelling title
- 5-7 main sections with descriptions
- Key points for each section
- A conclusion summary
```

3. Connect the Persona node to the Agent

## Step 6: Connect Everything

1. Connect the **User Prompt** output to the **Agent** input
2. Connect the **Model** and **Persona** to the **Agent**
3. Add a **Response** node and connect the **Agent** output to it

## Step 7: Run Your Workflow

1. Click the **▶ Run** button
2. Watch the AI generate your blog post outline in real-time!

## Your Canvas Should Look Like

```
[User Prompt] → [Agent] ← [Model: GPT-4o Mini]
                         ← [Persona: Content Strategist]
                [Agent] → [Response]
```

## What's Next?

Now that you've built your first workflow, try these:

* **Add a Tool node** (e.g., `search_web`) so the agent can research online
* **Use a different model** (Claude, Gemini, etc.)
* **Browse templates** for more complex workflow ideas
* **Share to community** to help others

***

> **Pro tip:** You can duplicate any workflow and modify it, so experiment freely!
