Newsletter Agent avatar

Newsletter Agent

Deprecated

Pricing

$750.00 / 1,000 generate newsletters

Go to Apify Store
Newsletter Agent

Newsletter Agent

Deprecated

An AI-powered Apify actor that generates well-structured newsletters using a crew of specialized AI agents. The system uses CrewAI to coordinate multiple agents that research, write, and edit newsletter content based on user input.

Pricing

$750.00 / 1,000 generate newsletters

Rating

0.0

(0)

Developer

Pratik Dani

Pratik Dani

Maintained by Community

Actor stats

1

Bookmarked

8

Total users

1

Monthly active users

a year ago

Last modified

Share

Newsletter AI Agent

An AI-powered Apify actor that generates well-structured newsletters using a crew of specialized AI agents. The system uses CrewAI to coordinate multiple agents that research, write, and edit newsletter content based on user input.

Documentation

Documentation

Features

  • Multi-agent System: Uses CrewAI to coordinate specialized agents for research, writing, and editing
  • Apify Integration: Leverages Apify actors for efficient web scraping and data collection
  • Comprehensive Research: Gathers information from multiple sources:
    • Google Search results
    • Latest news articles
    • Reddit discussions
    • Twitter/X posts
    • YouTube videos
  • Intelligent Processing: Transforms raw data into well-structured newsletters
  • Markdown Output: Delivers clean, formatted content ready for distribution
  • Configurable Sections: Customize newsletter structure and content focus

Architecture

graph TD
subgraph "User Interface"
A[Apify Actor Input] --> B[main.py]
end
subgraph "Core System"
B --> C[NewsletterCrew]
C --> D[Agent Orchestration]
end
subgraph "Agents"
D --> E[Researcher Agent]
D --> F[Writer Agent]
D --> G[Editor Agent]
end
subgraph "Tools"
E --> H[Google Search Tool]
E --> I[Reddit Tool]
E --> J[Twitter Tool]
E --> K[YouTube Tool]
E --> L[Google News Tool]
end
subgraph "Apify Integration"
H --> M[Apify Actors]
I --> M
J --> M
K --> M
L --> M
M --> N[Web Data]
end
subgraph "Output"
G --> O[Newsletter Content]
O --> P[Apify Actor Output]
end
classDef default fill:#F3F4F6,stroke:#D1D5DB,color:#1F2937
classDef core fill:#E5E7EB,stroke:#9CA3AF,color:#111827
classDef highlight fill:#DBEAFE,stroke:#93C5FD,color:#1E40AF
classDef agents fill:#FCE7F3,stroke:#F9A8D4,color:#9D174D
classDef tools fill:#D1FAE5,stroke:#6EE7B7,color:#065F46
classDef apify fill:#E0F2FE,stroke:#7DD3FC,color:#0C4A6E
class B,C,D core;
class E,F,G agents;
class H,I,J,K,L tools;
class M,N apify;

Prerequisites

  • Python 3.10+
  • Apify API key
  • Google API key for Gemini Pro
  • Apify CLI (for local development)

Environment Setup

  1. Clone the repository:
git clone https://github.com/pratik-dani/newsletter-ai-agent.git
cd newsletter-agent
  1. Install Apify CLI:
$npm install -g apify-cli
  1. Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
  1. Install dependencies:
$pip install -r requirements.txt
  1. Configure environment variables in .env:
APIFY_API_KEY=your_apify_api_key_here
GOOGLE_API_KEY=your_google_api_key_here

Usage

Local Development

  1. Run the actor locally:
$apify run
  1. Test with custom input by modifying storage/key_value_stores/default/INPUT.json:
{
"topic": "Your newsletter topic here"
}

Apify Platform Deployment

  1. Login to Apify:
$apify login
  1. Deploy the actor:
$apify push

Input Schema

{
"topic": {
"title": "Newsletter Topic",
"type": "string",
"description": "Topic or requirements for the newsletter",
"editor": "textfield"
}
}

Example input:

{
"topic": "Latest developments in quantum computing, focusing on breakthroughs, industry news, and practical applications"
}

Output Format

The actor outputs a dataset containing:

{
"topic": "string",
"content": "markdown formatted newsletter content",
"status": "success|error",
"timestamp": "ISO 8601 datetime"
}

Project Structure

newsletter-agent/
├── .actor/ # Actor configuration
├── docs/ # Documentation
├── src/
│ ├── agents/ # AI agent implementations
│ │ ├── researcher.py # Research agent
│ │ ├── writer.py # Content writer
│ │ └── editor.py # Editor
│ ├── config/ # Configuration
│ ├── tools/ # Apify integration tools
│ ├── newsletter_crew.py # Agent orchestration
│ └── main.py # Entry point
├── tests/ # Test suite
├── requirements.txt # Python dependencies
└── README.md

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.