Skip to main content

Apify Integration

The Newsletter AI Agent is implemented as an Apify Actor, which means it runs on the Apify platform and can be accessed through Apify’s API.

Setting Up Apify

To use the Newsletter AI Agent, you’ll need an Apify account and API key:
  1. Sign up for an Apify account if you don’t have one
  2. Navigate to your Account Settings to find your API key
  3. Store your API key securely

Required Environment Variables

The Newsletter AI Agent requires the following environment variables:

Running the Actor

You can run the Newsletter AI Agent in several ways:

Using the Apify Console

  1. Navigate to the Newsletter AI Agent on the Apify platform
  2. Configure the input parameters (topic for the newsletter)
  3. Click “Run” to start the actor

Using the Apify API

You can also run the actor programmatically using the Apify API:

Input Parameters

The Newsletter AI Agent accepts the following input parameters:

Output Format

The actor outputs the generated newsletter in Markdown format, along with metadata:

Error Handling

If an error occurs during newsletter generation, the actor will output an error message:

Rate Limiting

Usage of the Newsletter AI Agent is subject to Apify’s rate limiting and pricing. Please refer to the Apify pricing page for more information.

Next Steps