English | δΈζ
APIs for Lovable Β· Webhooks for Slack/Lark Β· Skills for Claude Code
Skills are not prompts. They are durable infrastructure.
Refly is the first open-source platform for building stable, atomic, and versioned agent skills. Skills are deterministic agent capabilitiesβreusable across workflows, teams, and runtimes.
TL;DR: Refly compiles your enterprise SOPs into executable agent skills. Built in 3 minutes. Shipped anywhere.
-
π Self-Deployment Guide
(Recommended for Developers) Step-by-step guide to deploying Refly on your own server using Docker. -
π API Reference
Complete API documentation for integrating Refly into your applications.
After deployment, choose your path based on your use case:
| I want to... | Start here | Time |
|---|---|---|
| π§ Build my first workflow | Create a Workflow | 5 mins |
| π Call workflows via API | API Integration | 10 mins |
| π¬ Connect to Lark | Webhook Setup | 15 mins |
| π€ Export for Claude Code | Export Skills | 15mins |
| π¦ Build a ClawdBot | Build Clawdbot | 20 mins |
Note: This section assumes you have completed self-deployment and can access Refly at
http://localhost:5700
- Open
http://localhost:5700in your browser - Register with your email and password
- Configure your first model provider:
- Click the account icon (top right) β Settings
- Add a provider (e.g., OpenAI, Anthropic)
- Add your first chat model
- Set it as default
π Detailed setup with screenshots: Self-Deployment Guide
- Click "New Workflow" on the home page
- Choose a template or start from scratch:
- Blank Canvas: Build with visual nodes
- Vibe Mode: Describe your workflow in natural language
Example - Product Research Workflow:
1. Add "Web Search" node - searches for product information
2. Add "LLM" node - analyzes search results
3. Add "Output" node - formats the report
4. Connect the nodes
5. Click "Save"
- Click "Run" button
- Enter test input (e.g., a product URL)
- View execution results in real-time
- Check logs if something fails
Goal: Call your workflow from your application via REST API
- Go to Settings β API Keys
- Click "Generate New Key"
- Copy your API key (keep it secure!)
curl -X POST https://your-refly-instance.com/api/v1/workflows/{WORKFLOW_ID}/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product_url": "https://example.com/product"
}
}'Response:
{
"execution_id": "exec_abc123",
"status": "running"
}curl https://your-refly-instance.com/api/v1/executions/{execution_id} \
-H "Authorization: Bearer YOUR_API_KEY"π Full API Documentation: API Reference
Goal: Trigger your workflow when someone sends a message in Lark
- A Lark workspace with admin access
- A workflow created in Refly
-
In Refly:
- Open your workflow
- Click "Settings" β "Triggers"
- Enable "Webhook Trigger"
- Copy the Webhook URL
-
In Slack:
- Go to api.feishu.com/apps
- Create a "Custom App"
- Navigate to "Event Subscriptions"
- Paste the Refly Webhook URL into "Request URL"
- Click "Add Event" and select "Receive Message"
- Go to "Version Management" and publish the app
-
Test:
- In Feishu, find your bot in the search barSend a message (e.g.,
analyze report.pdf) - Your workflow executes and returns results via the webhook
- In Feishu, find your bot in the search barSend a message (e.g.,
β οΈ Note: Detailed Slack integration guide coming soon. For now, see API Reference for webhook configuration.
Goal: Export your Refly workflows as Claude Code skills
- Install CLI
npm install -g @refly-ai/refly-skills- Export Workflow
refly-skills export --workflow-id <your-workflow-id>This generates a .refly skill file in the skills/ directory.
- Use in Claude Code
The exported skill is automatically available in Claude Code. Claude can now invoke your workflow as a tool!
# Export your product research workflow
refly-skills export --workflow-id wf_product_research
# Claude Code can now use it:
User: "Research this product and analyze competitors"
Claude: [Uses product_research skill] β Returns detailed analysisπ Documentation: refly-ai/refly-skills
π Tutorial: (https://powerformer.feishu.cn/wiki/YxMRwsQFriAMNukKr5Yc9OjMnnf)
Most AI Agents fail in production because they rely on "Vibe-coded" scripts and fragile, black-box logic. As the ecosystem moves toward agentic frameworks like Claude Code, AutoGen, and MCP, the bottleneck is no longer the LLMβit's the lack of standardized, reliable actions.
Refly bridges the gap between raw APIs and intelligent agents. We allow you to codify messy business logic into structured, version-controlled Agent skills that any agent can invoke with 100% reliability.
Stop hard-coding tools. Build modular skills once in Refly's visual IDE and deploy them as MCP servers, standard APIs, or portable SDKs to any agent framework.
Describe your business logic in natural language, and Refly's Model-Native DSL compiles your intent into a high-performance skill.
- Intent-Driven Construction: Describe the work once; Refly turns intent into deterministic, reusable, and composable skills.
- Efficiency at Scale: Streamlined DSL optimized for LLMs, ensuring fast execution and significantly lower token costs.
- 3-Minute Deployment: Transition from a static enterprise SOP to a production-ready agent skill in under 3 minutes.
Break the "black box" of AI execution with a stateful runtime designed for deterministic reliability.
- Intervenable Runtime: Pause, audit, and re-steer agent logic mid-run to ensure 100% operational compliance.
- Deterministic Guarantees: Enforce strict business rules that minimize hallucinations and handle failure recovery.
Unify MCP integrations, tools, models, and reusable skills into a single execution layer.
- Universal Delivery: Export as APIs for Lovable, webhooks for Slack, or native tools for Claude Code and Cursor.
- Stable Scheduling: Run workflows reliably on schedule with managed execution.
Transform fragile scripts into governed, shared infrastructure across your organization.
- Central Skill Registry: Securely manage, version, and share agent capabilities.
- Team Workspace Collaboration: Build together with native version control and audit logs.
Refly is designed to be the universal bridge between your existing enterprise toolchain and the next generation of agentic runtimes.
Bring your own data and logic into Refly with zero friction.
- 3,000+ Native Tools: Seamlessly integrate with Stripe, Slack, Salesforce, GitHub, etc.
A full list of supported model and tools providers can be found here

- MCP Support: Full compatibility with Model Context Protocol servers
- Private Skill Connectors: Connect to your databases, scripts, and internal systems
Export your deterministic skills to any environment where work happens.
- AI Coding Tools: Native export for Claude Code and Cursor (coming soon)
- App Builders: Power Lovable or custom frontends via stateful APIs
- Automation Hubs: Deploy as webhooks for Slack or Microsoft Teams
- Agent Frameworks: Compatible with AutoGen, Manus, LangChain, and custom Python stacks
Most agent tooling today falls into two categories:
- Workflow builders (n8n, Dify): Great for orchestration, but workflows are fragile, trigger-only "black boxes," and hard to reuse.
- Agent frameworks (LangChain): Powerful primitives, but require heavy engineering, manual boilerplate, and high maintenance to keep running. Refly eliminates the friction of manual configuration, giving you the fastest path from a "vibe" to a usable agent tool. By using our Streamlined DSL, you get the speed of a GUI with the precision of code.
| Dimension | Legacy Automation (n8n, Dify) |
Code-First SDKs (LangChain) |
Refly Skills |
|---|---|---|---|
| Interaction Depth | Trigger-only Black box |
Programmatic Code changes |
Intervenable runtime Steer logic mid-run |
| Construction | Manual API wiring & JSON | Manual Python/TS boilerplate | Copilot-led Describe intent β skills generated |
| Recovery | Fail = restart from scratch | Debug β redeploy β rerun | Hot-fix Repair workflows during execution |
| Portability | Hard to reuse across environments | Framework-specific | Export everywhere To Claude Code, Cursor, Manus |
| Deployment | Limited function tools | Custom microservices | Production Ready Stateful, validated APIs |
Workflow tools like n8n are great for basic connectivity, and frameworks like LangChain offer powerful primitives β but neither provides the governed, production-ready capability layer required for enterprise agent infrastructure.
Refly acts as the Agent skills builder, providing the governance and reliability infrastructure required to deploy AI across the entire organization.
| Enterprise Requirement | Legacy Tools (Workflow-first) |
SDKs (Code-first) |
Refly (Skill OS) |
|---|---|---|---|
| Governance & Reuse | Templates are copied and reconfigured per instance |
No native registry for sharing logic |
Central skill registry Versioned, shareable capability assets |
| Operational Reliability | Trigger-based limited recovery |
Custom handling required | Stateful runtime With validation + failure recovery |
| SOP Enforcement | Workflows drift across copies |
Depends on manual engineering discipline |
SOP-grade deterministic skills With controlled execution |
| Deployment | Instance-bound workflows | Code maintained manually per team |
Local-first, on-prem ready Open-source infrastructure |
| Total Cost (TCO) | Overhead grows with workflow complexity |
High engineering maintenance costs |
Minimal DSL Reduces token spend |
- π Star us on GitHub: It helps us keep building!
- π¬ Discord: Join our community
- π¦ Twitter: Follow us for updates
- π Documentation: Full guides and tutorials
- π Issues: Report bugs or request features
For those who'd like to contribute code, see our Contribution Guide. At the same time, please consider supporting Refly by sharing it on social media and at events and conferences.
We are looking for contributors to help translate Refly into languages other than Mandarin or English. If you are interested in helping, please see the Contribution Guide for more information.
This repository is licensed under the ReflyAI Open Source License, which is essentially the Apache 2.0 License with some additional restrictions.