Pricing
Pay per usage
Go to Apify Store
Google
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
7 months ago
Last modified
Share
Professional Prompt Improver with Groq AI
An Apify Actor that takes your basic prompt and transforms it into a detailed, professional, and highly effective prompt optimized for your target AI model using Groq AI.
๐ Features
-
Multi-Model Support: Optimizes prompts for popular AI models including:
- GPT-4 & GPT-3.5 Turbo (OpenAI)
- Claude 3 (Opus, Sonnet, Haiku) (Anthropic)
- Gemini Pro & Ultra (Google)
- Llama 3 (Meta)
- Mixtral (Mistral AI)
-
Intelligent Optimization: Uses Groq AI to craft prompts that:
- Maintain your original intent and goals
- Add relevant context and background
- Include clear, specific instructions
- Define desired output format and structure
- Leverage model-specific strengths
- Follow best practices for each model
-
Model-Aware: Understands each model's characteristics:
- Context window sizes
- Strengths and capabilities
- Best practices and optimization techniques
๐ Quick Start
Running Locally
- Install dependencies:
$pip install-r requirements.txt
- Run the Actor:
$apify run
Deploy to Apify
- Log in to Apify:
$apify login
- Push to Apify Platform:
$apify push
๐ Input
The Actor accepts the following input parameters:
| Field | Type | Required | Description |
|---|---|---|---|
user_prompt | string | Yes | Your original prompt that you want to improve |
target_model | string | Yes | The AI model you plan to use (e.g., "gpt-4", "claude-3-opus") |
groq_api_key | string | Yes | Your Groq API key (get one here) |
Example Input
{"user_prompt":"Write a blog post about AI","target_model":"gpt-4","groq_api_key":"gsk_..."}
๐ค Output
The Actor outputs a dataset with the following structure:
{"original_prompt":"Write a blog post about AI","improved_prompt":"You are an expert technology writer specializing in artificial intelligence...","target_model":"gpt-4","model_characteristics":{"strengths":"advanced reasoning, complex tasks, creative writing, code generation","context_window":"8K-32K tokens","best_practices":"Use clear instructions, provide examples, break complex tasks into steps"},"prompt_length":1247,"improvement_ratio":45.6,"timestamp":"2025-12-12T10:12:26.000Z"}
๐ฏ Use Cases
- Content Creation: Transform simple content requests into detailed briefs
- Code Generation: Create comprehensive coding prompts with examples and constraints
- Analysis Tasks: Craft detailed analytical prompts with specific frameworks
- Creative Writing: Develop rich creative prompts with style guides and context
- Research: Build thorough research prompts with methodology and scope
๐ง How It Works
- Input Processing: Receives your basic prompt and target model selection
- Model Analysis: Identifies the characteristics and best practices for your chosen model
- Prompt Engineering: Uses Groq AI (Mixtral-8x7B) to craft an optimized prompt that:
- Expands on your original idea
- Adds relevant context and structure
- Incorporates model-specific optimizations
- Includes clear instructions and formatting
- Output Generation: Returns the improved prompt ready to use with your target model
๐ Supported Models
OpenAI
- GPT-4: Advanced reasoning, complex tasks (8K-32K tokens)
- GPT-3.5 Turbo: Fast responses, general tasks (4K-16K tokens)
Anthropic
- Claude 3 Opus: Nuanced understanding, long-form content (200K tokens)
- Claude 3 Sonnet: Balanced performance, creative tasks (200K tokens)
- Claude 3 Haiku: Speed and efficiency (200K tokens)
- Gemini Pro: Multimodal understanding, reasoning (32K tokens)
- Gemini Ultra: Advanced reasoning, complex problem-solving (32K tokens)
Meta
- Llama 3 70B: Strong reasoning, code generation (8K tokens)
- Llama 3 8B: Efficient, fast inference (8K tokens)
Mistral AI
- Mixtral 8x7B: Mixture of experts, multilingual (32K tokens)
๐ Getting a Groq API Key
- Visit console.groq.com
- Sign up or log in
- Navigate to API Keys section
- Create a new API key
- Copy and use it in the Actor input
๐ Project Structure
.actor/โโโ actor.json # Actor configurationโโโ input_schema.json # Input validation schemaโโโ output_schema.json # Output data schemasrc/โโโ main.py # Main Actor logicrequirements.txt # Python dependenciesDockerfile # Container definition
๐ ๏ธ Technical Details
- Runtime: Python 3.11+
- Framework: Apify SDK for Python
- AI Provider: Groq AI (using Mixtral-8x7B-32768)
- Temperature: 0.7 (balanced creativity and consistency)
- Max Tokens: 2048 (detailed prompts)
๐ Resources
๐ก Tips for Best Results
- Be Specific: Even basic prompts benefit from some specificity
- Choose the Right Model: Select the model that matches your task complexity
- Review Output: The improved prompt is a starting point - customize as needed
- Iterate: Run multiple times with different models to compare approaches
- Combine: Use improved prompts as templates for similar tasks
๐ค Support
๐ License
This Actor is provided as-is under the Apache 2.0 License.
