Skip to main content

Blog Writer

Build a Blog Writer flow for a one-shot application using OpenAI.

This flow extends the Basic Prompting flow with the URL and Parse data components that fetch content from multiple URLs and convert the loaded data into plain text.

OpenAI uses this loaded data to generate a blog post, as instructed by the Text input component.

Prerequisites


Create the blog writer flow

  1. From the Langflow dashboard, click New Flow.
  2. Select Blog Writer.
  3. The Blog Writer flow is created.

This flow creates a one-shot article generator with PromptOpenAI, and Chat Output components, augmented with reference content and instructions from the URL and Text Input components.

The URL component extracts raw text and metadata from one or more web links. The Parse Data component converts the data coming from the URL component into plain text to feed the prompt.

To examine the flow's prompt, click the Template field of the Prompt component.


_10
Reference 1:
_10
_10
{references}
_10
_10
---
_10
_10
{instructions}
_10
_10
Blog:

The {instructions} value is received from the Text input component, and one or more {references} are received from a list of URLs parsed from the URL component.

Run the blog writer flow

  1. Click the Playground button. Here you can chat with the AI that has access to the URL content.
  2. Click the Lighting Bolt icon to run it.
  3. To write about something different, change the values in the URL component and adjust the instructions on the left side bar of the Playground. Try again and see what the LLM constructs.

Hi, how can I help you?