PY

Agentfy

by Agentfy-io/Agentfy

0 views

๐Ÿค– Agentfy is a modular microservices architecture designed to process user requests and execute workflows across multiple social media platforms. ASK ONCE, LET THE AGENT DO THE REST!

automationpythonSocial Media

logo

๐Ÿง  Agentfy โ€“ Multi-Agent System for Social Media

Python GitHub stars GitHub forks GitHub issues PRs Welcome License Made with โค๏ธ

๐Ÿ“‹ Overview

Agentfy is a modular, multi-agent coordination system purpose-built for automating tasks across social media ecosystems. Architected with a flexible Model Context Protocol (MCP), the system enables intelligent workflow execution by leveraging LLMs to translate user intents into structured, goal-driven task chains.

Agentfy supports multi-agent communication and collaboration, allowing sub-agents to reason, perceive, and act together in real-time. It dynamically selects and routes requests to the most suitable agents and functions โ€” no manual configuration needed.

๐Ÿงฉ Agentfy Capabilities Table

FeatureExample Prompt
๐ŸŽฏ Buyer Targeting & Outreach"Find me some customers on Instagram and TikTok who are interested in buying a kitchen knife set and DM them my shop's new product: ___."
๐Ÿ“ข Cross-Platform Promotions"I'm hosting a hackathon at USC Viterbi. Here's my event info: ___. Can you send it to people on X and Instagram who may be interested, and also generate and post promo content across my accounts?"
๐Ÿ“ Content Transformation & PostingTransform ideas, videos, or trends into tailored posts, captions, and media across self-authorized accounts.
๐Ÿค– Automated Messaging & Supportโ€œAdd a background task for me that automatically replies to customer DMs on TikTok and Instagram (make sure it's in the customer's language).โ€
๐Ÿง  Creator Discovery & Competitor Monitoringโ€œFind 50 livestreamers or influencers on Instagram and TikTok who would be a good fit to advertise my pillow set, send them a campaign brief.โ€

โš ๏ธ Notes: Agentfy will integrating deeply with platforms like TikTok, Instagram, YouTube, X, Quora, WhatsApp, and more โ€” ready to power the future of digital ops.


๐ŸŽฌ Quick Demos

โ–ถ๏ธ 1๏ธโƒฃ Cross-platform buyer discovery

Demo 1 - Cross-platform buyer discovery

โ–ถ๏ธ 2๏ธโƒฃ Generation & posting with attachments

Demo 2 - Generation & posting with attachments

โ–ถ๏ธ 3๏ธโƒฃ Video performance & audience portrait

Demo 3 - Video performance & audience portrait

๐Ÿšฆ Getting Started

  1. Clone the repository git clone https://github.com/callmeiks/Agentfy.git
  2. Navigate to the project directory cd Agentfy
  3. Install dependencies: pip install -r requirements.txt
  4. If you want to , please follow the instructions in the โž• If You Need to Add New Sub Agents section below.
    • This is optional and not required for basic usage
    • You can skip this step if you are just running the existing agents
  5. Set environment variables in .env file
    • Required API keys and configurations can be found in config.py
    • Example .env file:
      OPENAI_API_KEY=your_key_here
      X_API_KEY=your_key_here
      X_API_SECRET=your_secret_here
      YOUTUBE_API_KEY=your_key_here
      ....
      

โš ๏ธ Notes: You need to obtain API keys for the respective platforms you want to interact with (e.g., TikTok, Twitter, YouTube, etc.) If you are having trouble getting the API keys, please contact us [email protected]

๐Ÿš€ Running the Program

You can interact with the program in two different ways:

1. Command Line Interface (CLI)

python run_agent_cli.py
  • Runs the program in command-line interface mode
  • Useful for quick testing and debugging

2. Streamlit Web Interface

streamlit run run_agent_app.py
  • Runs the program with a Streamlit web interface
  • Access the interface at http://localhost:8501
  • User-friendly graphical interface

โž• If You Need to Add New Sub Agents....

  1. Create a new directory under agents/ for the platform
  2. Implement agent functions in appropriate files (crawler, analysis, interactive), you may reference existing agents for structure and functionality
  3. Update agent_registry.json file to include the new agent
    • Example:
      {
        "AGENT_REGISTRY": {
          "platform_name": {
            "crawlers": [
              {
                "agent_id": "agent_name",
                "function_id": "function_name",
                "description": "Function description",
                "parameters": [
                  {
                    "name": "para1_name",
                    "type": "para1_type",
                    "description": "para1 description",
                    "required": true
                  },
                  {
                    "name": "para2_type",
                    "type": "para2_type",
                    "description": "para2 description",
                    "required": false
                  }
                ],
                "returns": {
                  "type": "return_type",
                  "description": "Return value description"
                }
              }
            ]
          }
        }
      }
      
  4. The system will automatically incorporate these into workflows when appropriate

โš ๏ธ Note: Ensure that the new agent adheres to the existing structure and naming conventions for seamless integration. The system is designed to be modular, so you can easily ADD / DELETE new agents without modifying the core logic. If you have any questions or need assistance, feel free to reach out to the development team.

๐Ÿš€ Why Agentfy?

Agentfy is a modular, AI-first multi-agent system that enables social media automation, user engagement, data intelligence, and content operations across TikTok, Instagram, YouTube, X (Twitter), WhatsApp, and more.

It is built on a flexible agent-based protocol, allowing opaque apps to expose interfaces for agent-to-agent communication โ€” unlocking new levels of productivity, creator support, and commerce automation.

๐Ÿงฌ Agentfy is not just a tool. It's an agent operating protocol for the next generation of LLM-enabled applications.

๐Ÿง  Agentfy as an Open Agent Protocol (Inspired by A2A + MCP)

Agentfy is designed as more than just a workflow engine โ€” it is a prototype of an open agent protocol, enabling seamless interoperability across intelligent systems, opaque apps, and task-oriented agents.

Inspired by:

๐Ÿ”Œ Vision

Agentfy enables inter-agent communication, function discovery, and LLM-to-agent routing by acting as a lightweight social operations protocol layer. Our long-term goal is to establish:

  • ๐Ÿง  Intent-to-action routing: Convert natural language into modular, executable calls to real-world agents
  • ๐Ÿ›ฐ๏ธ Cross-platform orchestration: Let one agent call another โ€” e.g., "TikTok Agent" โ†’ "CRM Agent" โ†’ "Stripe Agent"
  • ๐ŸŒ Interoperability across closed ecosystems: Bridge the gap between siloed platforms like TikTok, WhatsApp, Shopify, YouTube, etc.

Think: an open protocol layer that makes social agents interoperable, extensible, and pluggable โ€” like HTTP for intelligent tools.

๐ŸŒฑ Current Architecture Enables:

  • Dynamic loading of new agents via registry-based architecture
  • Modular sub-agent pipelines (Perception, Reasoning, Action, Memory)
  • Autonomous tool selection based on user input and agent registry functions
  • Early groundwork for exposing agents as callable microservices (via CLI, Streamlit, or FastAPI)

๐Ÿ’ก Join us in prototyping what agent interoperability looks like โ€” from buyer targeting to content transformation to commerce fulfillment.

๐Ÿ™ Sponsorship & Support

This project is sponsor by TikHub, a platform that empower developers and businesses with seamless APIs to transform social media data into actionable insights. They support Data Access to TikTok, Douyin, Instagram, YouTube, X (Twitter), Xiaohongshu, Lemon8, Bilibili, and more.

๐Ÿ“ฌ Contact

Have questions, want to contribute, or need help integrating Agentfy into your stack?

Feel free to reach out:

Install

No configuration available
For more configuration details, refer to the content on the left

Related

Related projects feature coming soon

Will recommend related projects based on sub-categories