What You’ll Learn
| Topic | Description |
|---|---|
| Loading Prompts | Fetch and use prompts from the marketplace with one line of code |
| Publishing Agents | Share your agents with the community and monetize your creations |
| Marketplace Discovery | Browse and discover community-created prompts, agents, and tools |
| API Integration | Programmatically interact with the marketplace |
Marketplace Integration
The Swarms Marketplace (https://swarms.world) is a community hub where developers share and discover:
- 🤖 Agents: Ready-to-use agents for specific tasks and industries
- 💡 Prompts: Production-ready system prompts for various use cases
- 🛠️ Tools: APIs, integrations, and utilities that extend agent capabilities
Key Features
| Feature | Description |
|---|---|
| One-Line Prompt Loading | Load marketplace prompts directly into agents using marketplace_prompt_id |
| Direct Publishing | Publish agents to the marketplace with minimal configuration |
| Automatic Integration | Seamlessly integrates with marketplace API |
| Monetization Ready | Set pricing for your shared agents and prompts |
| Community Discovery | Browse and discover community-created resources |
Marketplace Examples
Loading Prompts from Marketplace
| Example | Description | Link |
|---|---|---|
| Loading Prompts | Load production-ready prompts from the marketplace into your agents | View Tutorial |
https://swarms.world/prompt/75fc0d28-b0d0-4372-bc04-824aa388b7d2) or in the Metadata section of the prompt listing page.
Publishing to Marketplace
| Example | Description | Link |
|---|---|---|
| Agent Publishing | Publish your agents to the marketplace for community use | View Tutorial |
Prerequisites
Before using marketplace features, ensure you have:- Swarms installed:
- A Swarms API key - Get yours at https://swarms.world/platform/api-keys
- Set your API key as an environment variable:
How It Works
Loading Prompts
When you provide amarketplace_prompt_id to an agent:
- Fetches the prompt from the Swarms Marketplace API during initialization
- Sets the system prompt from the marketplace data
- Optionally updates agent metadata - Agent name and description are populated from marketplace data if not set
- Logs the operation - Confirmation message when prompt is loaded successfully
Publishing Agents
When you publish an agent to the marketplace:- Validates configuration - Ensures required fields are present
- Uploads to marketplace - Sends agent configuration to marketplace API
- Generates marketplace listing - Creates a discoverable listing on swarms.world
- Enables monetization - Optional pricing configuration for your agent
Use Cases
For Consumers
- Rapid Prototyping: Quickly test different prompts without manual copy-pasting
- Best Practices: Use community-validated prompts for production systems
- Discovery: Find specialized agents for specific industries or tasks
- Learning: Study how others structure their agents and prompts
For Publishers
- Community Contribution: Share your expertise with the Swarms community
- Monetization: Earn revenue from your agent creations
- Visibility: Get your agents discovered by developers worldwide
- Collaboration: Build on top of community-created resources
Related Resources
- Swarms Marketplace Platform - Marketplace overview and features
- Share and Discover - Marketplace browsing guide
- Monetization Guide - How to monetize your agents
- API Key Management - Managing your API keys
- Agent Reference - Full agent documentation
Next Steps
- Get Started: Load your first marketplace prompt
- Publish: Share your agent with the community
- Explore: Browse the marketplace
- Learn More: Marketplace platform documentation