Apify Integration
Learn how to use the Newsletter AI Agent with Apify
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:
- Sign up for an Apify account if you don’t have one
- Navigate to your Account Settings to find your API key
- 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
- Navigate to the Newsletter AI Agent on the Apify platform
- Configure the input parameters (topic for the newsletter)
- 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:
Parameter | Type | Description | Required |
---|---|---|---|
topic | string | The topic for the newsletter | Yes |
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
- Learn about the agents that power the Newsletter AI Agent
- Explore the tools used by the agents
- See how the Newsletter AI Agent generates newsletters