What is the Swarms Marketplace?
The Swarms Marketplace provides:- One-Line Prompt Loading: Load prompts instantly using a UUID
- Community Sharing: Discover prompts created by other developers
- Monetization: Publish paid prompts and earn from your expertise
- Version Control: Track and manage prompt versions
- Rich Metadata: Comprehensive descriptions, use cases, and tags
- Direct Integration: Seamless integration with Swarms agents
Quick Start
Loading a Marketplace Prompt
Load a prompt from the marketplace in one line:When you provide a
marketplace_prompt_id, the agent automatically fetches the prompt from the marketplace and sets it as the system prompt.Fetching Prompts Programmatically
Fetch by Prompt ID
Fetch a prompt using its unique UUID:Fetch by Prompt Name
Fetch a prompt using its name:Get Full Response
Retrieve the complete prompt data:Publishing to the Marketplace
Publishing a Prompt
Share your prompts with the community:Publishing from an Agent
Automatically publish an agent’s configuration:API Configuration
Setting Up Your API Key
API Key Validation
Advanced Usage
Custom Timeout Configuration
Error Handling
Publishing Paid Prompts
Monetize your expertise with paid prompts:Real-World Examples
Example 1: Quantitative Trading Agent
Load a sophisticated trading agent from the marketplace:Example 2: Medical AI Assistant
Example 3: Publishing a Research Agent
Marketplace Categories
Organize your prompts by category:research- Research and analysiscontent- Content creation and writingcoding- Software development and programmingfinance- Financial analysis and tradinghealthcare- Medical and health applicationsmarketing- Marketing and advertisingeducation- Educational and traininglegal- Legal analysis and documentationcustomer-service- Customer supportdata-science- Data analysis and ML
Best Practices
Clear Descriptions
Write comprehensive descriptions explaining what your prompt does
Detailed Use Cases
Provide specific use cases with clear titles and descriptions
Relevant Tags
Use descriptive tags to make your prompt discoverable
Test Thoroughly
Test prompts extensively before publishing to ensure quality
Troubleshooting
API Key Issues
Prompt Not Found
Authentication Errors
API Reference
fetch_prompts_from_marketplace
prompt_id: UUID of the prompt to fetchname: Name of the prompt (alternative to prompt_id)timeout: Request timeout in secondsreturn_params_on: If True, returns (name, description, prompt) tuple; if False, returns full dict
add_prompt_to_marketplace
name: Unique name for the promptprompt: The prompt content/templatedescription: Description of what the prompt doesuse_cases: List of dicts with ‘title’ and ‘description’ keystags: Comma-separated tagsis_free: Whether the prompt is free or paidprice_usd: Price in USD (for paid prompts)category: Category for organizationtimeout: Request timeout in seconds
Next Steps
Browse Marketplace
Explore available prompts on the marketplace
Get API Key
Get your API key to publish prompts
Model Providers
Configure LLM providers for your agents
Tools
Add custom tools to enhance agents