Guides Langflow

Build a Custom Blog Writing Agent With No Code (Langflow)

In this guide, you will build a no-code blog-writing subagent in Langflow that writes posts in your website’s style.

intermediate 5 steps

Introduction

In this guide, you will build a no-code blog-writing subagent in Langflow that writes posts in your website’s style. It runs locally, is free besides LLM calls, and can be triggered by Claude, Codex, or another coding agent once exported. The setup is a simple local flow, so you can get started without writing code or setting up a server.

Pick a reference post that already sounds how you want future posts to sound. If the source post is weak, the draft will be weak too.

Step-by-step 5 steps

Instructions

  1. Step 1 of 5

    Open Langflow and start from the Blog Writer template

    Download Langflow and open it on your computer. It runs locally, so you can build a custom subagent without setting up a server or writing code just to get started.

    In the project area, click New Flow, go to the content generation section, and choose the Blog Writer template.

    image-2190
    Pro tip: Templates are the fastest way to learn Langflow.
  2. Step 2 of 5

    Add your style reference and topic input

    Change the reference URL first. Use one of your best blog posts so the flow has something real to imitate.

    The built-in crawler can also follow more than one page. If you want a broader writing sample, point it at your blog index and increase the crawl depth to 2.

    Then add a text input called topic. The reference content shapes the style, and the topic input tells the model what to write next.

    image-2191
    Pro tip: Pick a reference post that already sounds how you want future posts to sound. If the source post is weak, the draft will be weak too.
  3. Step 3 of 5

    Add your model provider and choose a model

    Open the language model settings and click Manage model providers. Add your OpenAI or Anthropic API key, then pick the model you want to run.

    image-2192

    In the source test, Anthropic and OpenAI were used. You could also run a model locally with Ollama and use it in Langflow.

  4. Step 4 of 5

    Test the flow in Playground

    Once the reference URL and topic input are wired up, click Playground and test the flow with a topic.

    A simple topic prompt is enough for the first run:

    Prompt
    how to use AI for marketing

    Langflow will pull the reference content, feed the style and topic into the prompt, and return a first draft.

    Use the first draft to tighten the flow. If the draft is too generic, add clearer instructions into the prompt template.

    Prompt
    No em dashes. Keep it concise. Sound like our site.
    Pro tip: Add voice guardrails early. Short lines like the examples above usually do more than a big abstract style paragraph. If you want better output later, add more sources or drop files into a knowledge base. You can also batch multiple article runs once the basic flow is working.
  5. Step 5 of 5

    Export the flow as an MCP server

    If you want Claude to use this as a subagent, open Share and choose MCP Server.

    image-2193

    From there, connect it to Claude. Once it loads, Claude can call the flow as a tool whenever you need a blog draft in that style.

    The larger workflow is to use Langflow for the repetitive subagent, then let Claude save its context for the higher-level work.

You're done

That's the whole workflow

Mark it complete to save your progress. Background and answers to common questions follow below.

Keep going

Keep learning with Rundown Pro

A guide shows you one workflow. Pro opens the full course library, so you can learn the whole system behind it.

  • Every on-demand course
  • Certifications on completion
  • Group office hours and member perks

$29/mo, cancel anytime

Overview Back to the steps

Background and context

Who This Is Useful For

  • Marketers and creators who write repeat blog posts and want the same structure every time
  • Anyone using Claude or another coding agent across multiple projects who wants to stop wasting context on the same writing task
  • People curious about AI agents who want a simple local tool to understand how subagents and MCP tools work

What You Will Build

You will build a reusable blog-writing subagent that takes a topic, looks at one of your existing posts for style, and returns a new draft in that voice.

image-2189
  • A URL input for the reference post
  • A text input for the new topic
  • A prompt template that combines the style reference and topic
  • A language model node
  • A chat output

What You Need

  • Langflow installed locally
  • An OpenAI or Anthropic API key
  • One strong blog post you want the agent to use as a style reference
  • A test topic for the first draft

Going Further

  • Once the flow works, you can export it as an MCP server and connect it to Claude. Claude can then call the flow as a tool whenever you need a blog draft in that style, while saving its context for higher-level work.