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
- From the Langflow dashboard, click New Flow.
- Select Blog Writer.
- The Blog Writer flow is created.
This flow creates a one-shot article generator with Prompt, OpenAI, 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.
_10Reference 1:_10_10{references}_10_10---_10_10{instructions}_10_10Blog:
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
- Click the Playground button. Here you can chat with the AI that has access to the URL content.
- Click the Lighting Bolt icon to run it.
- 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.