VOOZH about

URL: https://apify.com/valid_headlamp/ai-content-processor

โ‡ฑ AI Content Processor ยท Apify


Pricing

from $0.29 / 1,000 results

Go to Apify Store

AI Content Processor

Unlock powerful text processing with this AI actor. Using GPT-4o-mini, it handles summarization, sentiment, NER, and translation. Offers dual modes: batch for bulk tasks and standby server for real-time API use. Scalable and fast, it streamlines your content automation workflows with high precision.

Pricing

from $0.29 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Rod G.

Rod G.

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

0

Monthly active users

6 months ago

Last modified

Share

AI Content Processor Actor

This Apify Actor provides a comprehensive suite of AI-powered text processing and content generation tools. It is designed to be high-availability, scalable, and easy to integrate via REST API or as a standalone batch processor.

How It Works

The AI Content Processor leverages OpenAI's GPT-4o-mini model via LangChain to perform complex NLP tasks and content generation efficiently. It operates in two distinct modes:

1. Run-Once Mode (Batch Processing)

In this mode, the Actor reads input configuration, processes the text according to the specified tasks, pushes the results to the Apify Dataset, and then exits. This is ideal for:

  • Processing a single document or a batch of text from the Apify Console.
  • Scheduled jobs (e.g., summarizing daily news).
  • Integration with other Actors in a workflow.

Workflow:

  1. Input: Receives input_text and tasks from the input configuration.
  2. Process: The AIContentProcessor (powered by LangChain) executes each task sequentially or in parallel.
  3. Output: Results are validated against schemas and pushed to the default Apify Dataset.

2. Standby Mode (Web Server)

In this mode, the Actor starts a high-performance FastAPI server and listens for HTTP requests. This keeps the container warm, allowing for instant responses without cold-start delays. This is ideal for:

  • Real-time applications (e.g., a chatbot backend).
  • High-volume processing where you want to avoid spinning up a new container for every request.
  • Integrating via REST API with external systems.

Workflow:

  1. Start: The Actor starts a web server on the port defined by ACTOR_WEB_SERVER_PORT.
  2. Request: Clients send POST /process requests with a JSON body containing a batch of texts and tasks.
  3. Response: The server processes the requests asynchronously and returns the results immediately.

Features

Core NLP Processing

  • Summarization: Extractive and abstractive summarization with style controls.
  • Translation: Multi-language translation with quality assessment.
  • Classification: Multi-label content categorization and tagging.
  • Named Entity Recognition (NER): Extracts entities and relationships.
  • Sentiment Analysis: Analyzes sentiment score and emotion.
  • Note Generation: Converts unstructured text into structured notes.
  • Formatting: Standardizes text format and normalization.

Content Generation

  • Email Drafting: Generates professional email drafts.
  • Marketing Copy: Creates variations of marketing copy.
  • Report Summaries: Generates executive-level report summaries.
  • Content Normalization: Unifies tone and style.

Usage

Input Schema

The Actor accepts the following input:

{
"openai_api_key":"YOUR_OPENAI_API_KEY",
"input_text":"Text to process...",
"tasks":["summarization","sentiment"],
"standby":false
}
  • openai_api_key: Your OpenAI API Key (required).
  • input_text: The raw text to process (for Run-Once mode).
  • tasks: A list of tasks to perform.
  • standby: If true, runs as a long-running web server (API mode).

Output (Run-Once Mode)

The results are stored in the default Apify Dataset.

[
{
"task":"summarization",
"result":"Summary text...",
"processing_time_ms":1200,
"status":"success"
},
{
"task":"sentiment",
"result":{
"sentiment":"positive",
"score":0.8,
"emotion":"joy"
},
"processing_time_ms":500,
"status":"success"
}
]

API Integration (Standby Mode)

When running in standby mode, the Actor exposes a REST API.

Endpoints

  • POST /process: Process a batch of content.
  • GET /health: Health check.

Request Body (/process)

{
"requests":[
{
"text":"Content to process",
"tasks":["ner","classification"],
"options":{
"target_language":"Spanish"
}
}
]
}

Development

Local Setup

  1. Clone the repository.
  2. Install dependencies:
    $pip install-r requirements.txt
  3. Configure your environment: Create a .env file in the root directory:
    OPENAI_API_KEY=your_api_key_here

Running Locally

Run Once Mode:

# Mock Apify input (or rely on defaults/env vars)
exportAPIFY_DEFAULT_KEY_VALUE_STORE_ID="local"
python -m src.main

Server Mode:

$uvicorn src.server:app --reload

Deployment

This Actor is containerized and ready for deployment on the Apify Platform.

  1. Push the code to Apify.
  2. Build the Actor.
  3. Run via API or Scheduler.

You might also like

AI Resume / CV Optimizer

jungle_synthesizer/ai-resume-cv-optimizer

Paste your CV and a job description to get instant AI-powered feedback. Scores keyword alignment, identifies skill gaps, highlights structural issues, and returns ready-to-use rewrite suggestions. Supports GPT-4o-mini and GPT-4o via your OpenAI API key.

๐Ÿ‘ User avatar

BowTiedRaccoon

2

Quickgpt - Unlimited Lightweight Ai Api

dxbear/quickgpt

Unlimited, fast, and affordable AI API for web scraping and text extraction. Run GPT-4 prompts for automation, summarization, and data analysis with no token limits.

AI Lead Scout: Global Google Maps Scraper with GPT-4o

panzerhans/ai-lead-qualifier-google-maps-scraper

Stop exporting messy spreadsheets with thousands of dead leads. AI Lead Scout doesn't just scrape Google Maps; it thinks like a sales assistant. It finds businesses anywhere in the world and uses GPT-4o mini to instantly qualify them for you.

Python standby template

ellustar/my-actor-82

Python Standby is a reliable automation actor designed to stay idle until triggered, then execute Python-based tasks efficiently. It handles scripts, data processing, API calls, and background jobs with stability, accuracy, and minimal resource usage, ideal for scalable workflows.

Website Content Text Extractor

smart-digital/website-content-text-extractor

Extract visible text content from websites as structured JSON blocks. Supports multi-URL batch processing, header/footer/cookie exclusion, and optional form extraction. Perfect for content analysis and translation workflows.

My Smart Digital

81

5.0

Google Translation AI API

dev00/google-translator-ai-api

Lightning-fast Google translation supporting text, HTML, batch arrays, and direct JSON object translation.

dev00

2

AI Lead Scout Pro: Google Maps Scraper & AI Qualifier

panzerhans/ai-lead-scout-pro-google-maps-scraper-ai-qualifier

Stop exporting messy spreadsheets with thousands of dead leads. AI Lead Scout pro doesn't just scrape Google Maps; it thinks like a sales assistant. It finds businesses anywhere in the world and uses GPT-4o mini to instantly qualify them for you.

Related articles

How to automate sentiment analysis (plus the best sentiment analysis tools)
Read more
12 open-source LangChain alternatives
Read more
Best low-code and no-code AI agent builders in 2025
Read more