Skip to main content

FlyMy.AI Agents

Build and deploy autonomous AI agents on FlyMy.AI. Agents execute complex multi-step tasks in the cloud -- searching the web, processing files, calling APIs -- and deliver results without human intervention.

Two Ways to Use Agents

Build Agents for Yourself

Create agents that automate your workflows. Define a goal, equip the agent with tools, start a run, get results.

from flymyai import AgentClient

client = AgentClient(api_key="fly-***")

# Register tools first — each returns a Tool object with an integer .id
web_search = client.tools.create(mcp_tool="tavily")
browser = client.tools.create(mcp_tool="browser")

agent = client.agents.create(
name="Competitor Monitor",
goal="Track competitor pricing changes and alert me about significant shifts.",
tools=[web_search.id, browser.id]
)

run = client.runs.create(agent_id=agent.id)

result = client.runs.wait(run.id)
print(result.output)
Planned Feature — Coming Soon

Publish Agents for Others

Build agents and publish them to the FlyMy.AI marketplace. Other users discover your agent, fill in an input form, and pay per run. You earn revenue from every execution.

Marketplace features -- including visibility, pricing, input_schema, output_schema, and client.agents.publish() -- are not yet available in the API. This section describes planned functionality.

# Planned API — not yet available
agent = client.agents.create(
name="SEO Audit Agent",
goal="""Perform a comprehensive SEO audit of {{ website_url }}.
{{#if focus_areas}}Focus specifically on: {{#each focus_areas}}{{this}}, {{/each}}.{{/if}}
Return structured findings with severity ratings and actionable recommendations.""",
tools=[web_search.id, browser.id],
input_schema={
"type": "object",
"properties": {
"website_url": {
"type": "string",
"description": "Website URL to audit"
},
"focus_areas": {
"type": "array",
"items": {"type": "string"},
"description": "Specific areas to focus on (e.g., performance, meta tags, mobile)"
}
},
"required": ["website_url"]
},
output_schema={
"type": "object",
"properties": {
"score": {"type": "number"},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"severity": {"type": "string", "enum": ["critical", "warning", "info"]},
"category": {"type": "string"},
"description": {"type": "string"},
"recommendation": {"type": "string"}
}
}
}
}
},
visibility="public",
pricing={"per_run": 0.50}
)

# Publish to marketplace
client.agents.publish(agent_id=agent.id)

When published, FlyMy.AI will automatically generate an input form at app.flymy.ai/agents/{your-agent} -- buyers fill it in, click "Run", and get results. No code required on their side.

Key Capabilities

CapabilityDescription
Autonomous ExecutionDefine a goal -- agent plans, executes, iterates until done
Handlebars TemplatingUse {{ variable }} syntax in the goal for reusable, configurable agents
MCP ToolsWeb search, news, browser, and more via client.tools.create(mcp_tool="...")
Real-Time EventsStream every tool call and reasoning event via client.runs.stream_events()
Run LifecycleRuns progress through statuses: pending, running, completed, failed, cancelled

How It Works

┌─────────────────────────────────────────────────────────────┐
│ FlyMy.AI Cloud │
│ │
│ ┌───────────┐ ┌──────────┐ ┌────────────────────┐ │
│ │ Agent │───>│ Runner │───>│ MCP Tools │ │
│ │ Config │ │ Engine │ │ tavily │ │
│ │ (goal + │ │ │ │ browser │ │
│ │ tools) │ │ │ │ github │ │
│ └───────────┘ └──────────┘ │ slack, etc. │ │
│ │ │ └────────────────────┘ │
│ │ ┌────v────┐ │
│ │ │ Logs │ │
│ │ │ (Events)│ │
│ │ └─────────┘ │
│ ┌────v──────────────────────────────┐ │
│ │ Execution Result │ │
│ │ status: completed / failed │ │
│ │ agent_result: { ... } │ │
│ └───────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘

Use Cases

Use CasePersonalMarketplace
Research AssistantResearch topics for your teamSell research-on-demand to anyone
SEO AuditorAudit your own sitesOffer SEO audits as a service
Data ProcessorClean and transform your datasetsProvide data cleaning tools
Content GeneratorGenerate content for your brandSell content generation
Code ReviewerReview your team's PRsOffer code review as a service
Lead ProfilerProfile your sales leadsSell lead intelligence

Next Steps

  • Quickstart -- build and run your first agent in 5 minutes
  • Tools & MCP -- add tools and external services