Skip to main content

Blog Writer

Build a blog writer with OpenAI that uses URLs for reference content.

Prerequisites


Blog Writer


Create the Blog Writer project

  1. From the Langflow dashboard, click New Project.
  2. Select Blog Writer.
  3. A workspace for the Blog Writer is displayed.

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

The Template field of the Prompt looks like this:

The {instructions} value is received from the Instructions component. One or more {references}  are received from a list of URLs.

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

Run the Blog Writer

  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?