Skills flow-crm
Interact with FlowDeck CRM API (clients, deals, proposals, receivables, expenses, contacts). Use for all CRM operations via the FlowDeck REST API through Supabase Edge Functions.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/araujodgdev/flow-crm" ~/.claude/skills/openclaw-skills-flow-crm && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/araujodgdev/flow-crm" ~/.openclaw/skills/openclaw-skills-flow-crm && rm -rf "$T"
skills/araujodgdev/flow-crm/SKILL.mdFlowDeck CRM API
Interact with the FlowDeck CRM module via the REST API gateway (base URL:
https://<supabase_url>/functions/v1/api-gateway).
Usage
Run the script using the absolute path (do NOT cd to the skill directory):
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py <action> <resource> [options]
Important: Always run from the user's current working directory so any output files are saved where the user is working.
Actions
| Action | Description | Example |
|---|---|---|
| List resources (paginated) | |
| Get single resource | |
| Create resource | |
| Update resource | |
| Delete resource | |
Client Creation Workflow (mandatory)
When creating a client (
create clients), the API only requires name. However, you MUST proactively ask the user about every available field BEFORE calling the API. Collect as much data as possible, then build the payload. Even if the user skips many fields, you must have asked.
Ask about these fields (use the Portuguese/Portuñol terms the user will recognize):
- Tipo —
,client
, orsupplier
(default:both
)client - Empresa — Company name
- Email — Main contact email
- Email financeiro — Finance department email (
)finance_email - Telefone — Phone number
- CPF/CNPJ — Document (Brazilian tax ID)
- Website — Company website
- Endereço — Physical address
- País — Country (
)country - Código IBGE da cidade —
city_ibge_code - Status —
,active
, orinactive
(default:lead
)active - Observações — Notes
Present these as a single structured block of questions (not one-by-one), e.g:
Antes de criar o cliente, preciso preencher algumas informações. Me diga o que souber:
- Tipo: [client/supplier/both]
- Empresa:
- Email:
- Email financeiro:
- Telefone:
- CPF/CNPJ:
- Website:
- Endereço:
- País:
- Código IBGE:
- Observações:
(Pule os que não souber.)
If the user responds with partial data, use what they gave and leave the rest blank — but never skip asking first. Then build the
--data JSON with all collected fields and create the client.
CRM Resources
| Resource | Endpoint | Notes |
|---|---|---|
| | Clients & suppliers (finance_parties) |
| | Project-scoped contacts |
| | CRM opportunities (crm_deals) |
| | Commercial proposals |
| | Accounts receivable |
| | Expenses |
Filters for list
listCommon query parameters (supported varies by resource):
(default 50, max 200)--limit N
(default 0)--offset N
— filter by status enum--status
— filter by type (clients: client/supplier/both)--type
— filter by deal stage (deals: lead/qualified/proposal/negotiation/won/lost)--stage
— filter by client/supplier (party UUID)--party-id
— parent project ID for scoped resources (contacts, cycles, tasks)--project-id
— filter task priority--priority
— filter tasks by cycle--cycle-id
— filter tasks by assignee--assignee-id
/--due-date-from
— date range for receivables--due-date-to
/--date-from
— date range for expenses--date-to
Status/Stage Enums
Clients (PartyStatus)
active, inactive, lead
Deals (CrmDealStage)
lead -> qualified -> proposal -> negotiation -> won / lost
Proposals (CrmProposalStatus)
draft -> sent -> viewed -> accepted / rejected / expired
Receivables (ReceivableStatus)
pending, paid, partial, overdue, cancelled
Expenses (ExpenseStatus)
pending, paid, partial
API Key
The script checks for API key in this order:
argument (use if user provided key in chat)--api-key
environment variableFLOWDECK_API_KEY
If neither is available, the script exits with an error message.
API Key + Base URL Environment Variables
— Bearer API keyFLOWDECK_API_KEY
— API base URL (default:FLOWDECK_BASE_URL
)https://mycivgjuujlnyoycuwrz.supabase.co/functions/v1/api-gateway
Preflight + Common Failures
- Preflight:
(must exist)command -v uv
(or passtest -n "$FLOWDECK_API_KEY"
)--api-key
- Common failures:
→ setError: No API key provided.
or passFLOWDECK_API_KEY--api-key
→ invalid/revoked keyHTTP 401
→ resource not found or doesn't belong to workspaceHTTP 404
→ wrong key, no access, or quota exceeded"quota/permission/403"
Examples
List active clients:
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py list clients --status active --limit 20
Create a deal:
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py create deals \ --data '{"title":"Website Redesign","client_id":"<uuid>","value":50000,"stage":"lead"}'
Create a proposal:
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py create proposals \ --data '{"title":"Proposta — Website Redesign","client_id":"<uuid>","deal_id":"<uuid>","currency":"BRL"}'
Update a deal stage to won:
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py update deals \ --id <uuid> --data '{"stage":"won"}'
List overdue receivables for a client:
uv run ~/.codex/skills/flow-crm/scripts/flow_api.py list receivables \ --status overdue --party-id <uuid>