Blog Writer
Build a blog writer with OpenAI that uses URLs for reference content.
Prerequisites
Blog Writer
Create the Blog Writer project
- From the Langflow dashboard, click New Project.
- Select Blog Writer.
- A workspace for the Blog Writer is displayed.
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 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
- 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.