flowfiREST API instructions for FlowFi—authorization, smart accounts, workflows (AI generate, edit, deploy, undeploy, delete, pause, resume, stop), execution (list...
Install via ClawdBot CLI:
clawdbot install devarogundade/flowfiInstructions for FlowFi REST endpoints. Base URL is the backend API root (e.g. https://api.example.com). Workflow and smart-account endpoints require JWT (see Authorization).
Examples of what you can do with the API:
GET /smart-accounts to get the user’s smart accounts, then use an id as smartAccountId when generating workflows.POST /ai/generate-workflow with { "prompt": "Alert me when ETH > 3000", "smartAccountId": "..." } to create a new draft workflow.GET /ai/workflow/:id/suggestions to receive a few short AI suggestions (e.g. “Add a delay”, “Add a notification”).POST /ai/workflow/:id/prompt with { "prompt": "Add a 5 second delay before the notification" } to change an existing draft workflow.POST /workflows/:id/deploy to make a draft workflow active and runnable.POST /workflows/:id/undeploy to stop it and set it back to draft so it can be edited.Generate workflow (POST /ai/generate-workflow body prompt):
Edit workflow (POST /ai/workflow/:id/prompt body prompt):
The user generates a JWT (e.g. via the app) and sends it to OpenClaw. Use that token for all API calls below.
Long-lived API token (bearer): POST /auth/bearer-token
Requires existing JWT in Authorization: Bearer .
| Field | Type | Required | Description |
|--------------------|--------|----------|--------------------|
| expiresInSeconds | number | yes | 60–31536000 (1 yr) |
Response: new JWT to use as Authorization: Bearer for API clients.
Revoke all bearer tokens: POST /auth/bearer-token/revoke (with JWT). Session sign-in tokens are not affected.
Using the token: For all protected routes, send header:
Authorization: Bearer .
List smart accounts: GET /smart-accounts
Requires JWT. Returns smart accounts for the authenticated user. Supports pagination: page, limit, sortBy, sortOrder, search (query params).
Get one smart account: GET /smart-accounts/:id
Requires JWT. User must own the smart account.
Get workflow count for a smart account: GET /smart-accounts/:id/workflows/count
Response: { "count": number }.
Use a smart account id from these endpoints as smartAccountId when calling POST /ai/generate-workflow or creating workflows.
POST /ai/generate-workflow
Creates a new workflow from a natural-language prompt using AI. The workflow is created in the database with status draft.
Request body (JSON):
| Field | Type | Required | Description |
|----------------|--------|----------|--------------------------------------|
| prompt | string | yes | User description of the workflow |
| smartAccountId | string | yes | Smart account ID to attach |
Example:
{
"prompt": "When ETH price drops below 2000, send a Telegram notification",
"smartAccountId": "0x..."
}
Response: 200 — workflow object with id, name, nodes, connections.
GET /ai/workflow/:id/suggestions
Returns AI-generated edit suggestions for a workflow (e.g. four short actionable edit ideas). Used by “Edit workflow with AI” UI.
Path: id = workflow ID (owner must match authenticated user).
Response: 200 — { "suggestions": string[] } (e.g. 4 suggestion strings).
POST /ai/workflow/:id/prompt
Edits an existing workflow using a natural-language prompt. Updates name, nodes, connections, and variables. Workflow must be draft (undeploy first if deployed).
Path: id = workflow ID.
Request body (JSON):
| Field | Type | Required | Description |
|--------|--------|----------|--------------------------------|
| prompt | string | yes | Edit instruction (e.g. “Add a 5s delay”) |
Response: 200 — { "message": string, "workflow": Workflow }.
POST /workflows/:id/deploy
Deploys a workflow so it can run (schedule/triggers). Workflow must be draft or ended; must have a smart account assigned.
Path: id = workflow ID.
Response: 200 — updated workflow (e.g. status: 'active').
Errors: 400 if already deployed or missing smart account.
POST /workflows/:id/undeploy
Stops a deployed workflow and sets status back to draft. Required before editing a deployed workflow.
Path: id = workflow ID.
Response: 200 — updated workflow (status: 'draft').
Errors: 400 if workflow is not deployed (e.g. already draft or archived).
POST /ai/generate-workflow and POST /workflows both create workflows with status draft.GET /workflows?status=draft (optional query).POST /ai/workflow/:id/prompt or PATCH /workflows/:id for draft workflows.POST /workflows/:id/deploy to move from draft to active.| Action | Method | Endpoint |
|-----------------------|--------|----------------------------------------|
| Bearer token | POST | /auth/bearer-token |
| List smart accounts | GET | /smart-accounts |
| Get smart account | GET | /smart-accounts/:id |
| Workflow count | GET | /smart-accounts/:id/workflows/count |
| Generate workflow | POST | /ai/generate-workflow |
| Get suggestions | GET | /ai/workflow/:id/suggestions |
| Edit by prompt | POST | /ai/workflow/:id/prompt |
| Deploy | POST | /workflows/:id/deploy |
| Undeploy | POST | /workflows/:id/undeploy |
Protected routes require Authorization: Bearer . User is inferred from JWT; workflow and smart-account ownership is enforced by smartAccountAddress / userId.
AI Usage Analysis
Analysis is being generated… refresh in a few seconds.
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.
Advanced desktop automation with mouse, keyboard, and screen control
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.