Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Advanced Agents ·Intermediate

AI Journalist Agent

About this app

This Streamlit app is an AI-powered journalist agent that generates high-quality articles using OpenAI GPT-4o. It automates the process of researching, writing, and editing articles, allowing you to create compelling content on any topic with ease.

  • Complete open-source code
  • Step-by-step tutorial

Technical sheet

Category
Advanced Agents
Difficulty
Intermediate
Models
OpenAI
Frameworks
Agno
Runs locally?
Needs cloud APIs
Required keys
None

License Apache-2.0 · content curated and maintained by Doutor AI.

Full tutorial

🗞️ AI Journalist Agent

This Streamlit app is an AI-powered journalist agent that generates high-quality articles using OpenAI GPT-4o. It automates the process of researching, writing, and editing articles, allowing you to create compelling content on any topic with ease.

Features

  • Searches the web for relevant information on a given topic
  • Writes well-structured, informative, and engaging articles
  • Edits and refines the generated content to meet the high standards of the New York Times

How to get Started?

  1. Clone the GitHub repository
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd advanced_ai_agents/single_agent_apps/ai_journalist_agent
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Get your OpenAI API Key
  • Sign up for an OpenAI account (or the LLM provider of your choice) and obtain your API key.
  1. Get your SerpAPI Key
  1. Run the Streamlit App
streamlit run journalist_agent.py

How it Works?

The AI Journalist Agent utilizes three main components:

  • Searcher: Responsible for generating search terms based on the given topic and searching the web for relevant URLs using the SerpAPI.
  • Writer: Retrieves the text from the provided URLs using the NewspaperToolkit and writes a high-quality article based on the extracted information.
  • Editor: Coordinates the workflow between the Searcher and Writer, and performs final editing and refinement of the generated article.

From the same category

Advanced AgentsIntermediate

AI Agent Governance - Policy-Based Sandboxing

Policy-Based Sandboxing: Define what your AI agent can and cannot do using declarative policies - Action Interception: Catch and validate agent action…

  • OpenAI
Advanced AgentsIntermediate

AI Consultant Agent with Google ADK

A powerful business consultant powered by Google's Agent Development Kit that provides comprehensive market analysis, strategic planning, and actionab…

  • Gemini
Advanced AgentsIntermediate

AI Customer Support Agent

This Streamlit app implements an AI-powered customer support agent for synthetic data generated using GPT-4o. The agent uses OpenAI's GPT-4o model and…

  • OpenAI

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans