Some Agency - production
Ripliq Content Agency (Agency Swarm)
A production-ready Agency Swarm agency for content strategy, with Docker and deployment to Agencii.
π Agencii - Cloud platform for Agency Swarm
π GitHub App - Automated deployment
For this agency: Setup and credentials β DOCUMENTATION.md, ENV_CREDENTIALS.md, DEPLOYMENT_GUIDE.md.
No .env after clone or merge? Copy from the template: cp .env.template .env then fill in values (see ENV_CREDENTIALS.md). .env is gitignored and never committed.
π Quick Start
1. Use This Template
Click "Use this template" to create your own repository, or:
git clone https://github.com/your-username/agency-github-template.git cd agency-github-template
π For Production: Sign up at agencii.ai and use this template for automated cloud deployment
2. Install Dependencies
pip install -r requirements.txt
3. Set Up Environment Variables
Create a .env file in the root directory:
# Required OPENAI_API_KEY=your_openai_api_key_here # Optional - Add any additional API keys your agents need # EXAMPLE_API_KEY=your_api_key_here
4. Test the Example Agency
python agency.py
This runs the example agency in terminal mode for testing.
π‘ Pro Tip: For creating your own agency, open this template in Cursor IDE and use the AI assistant with the
.cursor/rules/workflow.mdcfile for automated agency creation!
ποΈ Project Structure
agency-github-template/ βββ agency.py # Main entry point βββ requirements.txt # Python dependencies βββ Dockerfile # Container configuration βββ .env # Environment variables (create this) βββ example_agent/ # Your agency folder βββ __init__.py βββ example_agent.py βββ instructions.md βββ files/ # Local files accessible to the agent (via files_folder) βββ tools/ βββ ExampleTool.py βββ example_agent2/ βββ agency_manifesto.md # Shared instructions βββ requirements.txt βββ .env βββ...
π§ Creating Your Own Agency
π€ AI-Assisted Agency Creation with Cursor
This template includes AI-powered agency creation using Cursor IDE:
-
Open this project in Cursor IDE
-
Use the AI Assistant to create your agency by referencing:
π .cursor/rules/workflow.mdc -
Simply ask the AI:
"Create a new agency using the .cursor workflow"
The AI will guide you through the complete 7-step process:
- β PRD Creation
- β Folder Structure Setup
- β Tool Development
- β Agent Creation
- β Agency Configuration
- β Testing & Validation
- β Iteration & Refinement
π What the AI Will Do For You
The AI assistant will automatically:
- Create proper folder structures
- Generate agent classes and instructions
- Build custom tools with full functionality
- Set up communication flows
- Create the main agency file
- Test everything to ensure it works
π Manual Alternative (Advanced Users)
If you prefer manual setup, replace the ExampleAgency/ folder with your own agency structure following the Agency Swarm conventions.
Agency Structure Requirements
Your agency must follow this structure:
- Agency Folder: Contains all agents and manifesto
- Agent Folders: Each agent has its own folder with:
AgentName.py- Agent class definitioninstructions.md- Agent-specific instructionstools/- Folder containing agent tools
- agency_manifesto.md - Shared instructions for all agents
π Production Deployment with Agencii
π Deploy to Agencii Cloud Platform
For production deployment, use the Agencii platform:
Step 1: Create Account & Use Template
- Sign up at agencii.ai
- Use this template to create your repository
- Develop your agency using Cursor IDE with
.cursorworkflow
Step 2: Install GitHub App
- Install the Agencii GitHub App
- Grant permissions to your repository
- Configure environment variables in Agencii dashboard
Step 3: Deploy
- Push to main branch - Agencii automatically detects and deploys
- Monitor deployment in your Agencii dashboard
- Access your live agency via provided endpoints
π Automatic Deployments
- Auto-deploy on every push to
mainbranch - Zero-downtime deployments with rollback capability
- Environment management through Agencii dashboard
π¨ Development Workflow
π― Recommended: AI-Assisted Development
- Open Cursor IDE with this template
- Ask the AI: "Create a new agency using the .cursor workflow"
- Follow the guided process - the AI handles everything automatically
- Test your agency:
python agency.py - Deploy to production: Install Agencii GitHub App and push to main
βοΈ Manual Development (Advanced)
If you prefer hands-on development:
- Create Tools: Build agent tools in
tools/folders - Configure Agents: Write
instructions.mdand agent classes - Test Locally: Run
python agency.py - Deploy: Push to your preferred platform
The .cursor/rules/workflow.mdc file contains the complete development specifications for manual implementation.
π Key Features
- π Agencii Cloud Deploy: One-click deployment to Agencii platform
- π€ AI-Assisted Creation: Built-in Cursor IDE workflow for automated agency development
- π Auto-Deploy: Automatic deployment on push to main branch
- π Ready-to-Deploy: Dockerfile and requirements included
- π§ Modular Structure: Easy to customize and extend
- π οΈ Example Implementation: Complete working example
- π¦ Container Ready: Docker configuration for any platform
- π Environment Management: Secure API key handling via Agencii dashboard
- π§ͺ Local Testing: Terminal demo for development
- π Guided Workflow: 7-step process with AI assistance
π Integration Details
Notion Integration
This agency uses a custom NotionTool that connects directly to the Notion API via the notion-client library. This approach was chosen for:
- Simplicity: Direct API integration with just an API key (no OAuth flow required)
- Control: Full control over API operations and error handling
- Flexibility: Customizable to specific workflow needs
Current Setup:
- Uses
NotionTool(custom tool) in bothcontent_strategistandcontent_produceragents - Requires
NOTION_INTERNAL_INTEGRATION_SECRETin.envfile - Uses existing "Internal - SoMe Agent" Notion integration
Future Consideration: This could be migrated to use the official Notion MCP server in the future if:
- OAuth authentication becomes preferred
- Standardized MCP interface is needed
- Additional MCP features are required
See SWITCHED_TO_NOTION_API.md for more details on the current implementation.
π Learn More
π€ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
β‘ Quick Tips
- Start Small: Begin with 1-2 agents and expand
- Test Tools: Each tool should work independently
- Clear Instructions: Write detailed agent instructions
- Environment Setup: Always use
.envfor API keys - Documentation: Update instructions as you develop
Ready to build your AI agency? π€β¨
π Production Route (Recommended)
- Sign up at agencii.ai
- Use this template to create your repository
- Install Agencii GitHub App
- Push to main β Automatic deployment!
π οΈ Development Route
Open this template in Cursor IDE and ask the AI to create your agency using the .cursor workflow. The AI will handle everything from setup to testing automatically!
For manual development, replace the ExampleAgency with your own implementation and start deploying intelligent agent systems!
Ripliq
https://www.ripliq.euRipliq makes marketing and pr finally efficient, affordable and measurable β powered by a team of AI agents that do the work, guided by a strong strategic narrative and your data in one central hub.