← 返回
未分类 Key 中文

Web Star Studio's Flow CRM

Interact with FlowDeck CRM API (clients, deals, proposals, receivables, expenses, contacts). Use for all CRM operations via the FlowDeck REST API through Sup...
通过FlowDeck REST API与FlowDeck CRM API交互,管理客户、交易、提案、应收账款、费用和联系人。用于所有CRM操作。
araujodgdev araujodgdev 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 345
下载
💾 0
安装
1
版本
#latest

概述

FlowDeck CRM API

Interact with the FlowDeck CRM module via the REST API gateway

(base URL: https:///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

ActionDescriptionExample
--------------------------------------------------------------------------------------
listList resources (paginated)uv run ... list clients --limit 50
getGet single resourceuv run ... get clients --id
createCreate resourceuv run ... create clients --data '{"name":"Acme"}'
updateUpdate resourceuv run ... update clients --id --data '{"name":"Acme Inc"}'
deleteDelete resourceuv run ... delete clients --id

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):

  1. Tipoclient, supplier, or both (default: client)
  2. Empresa — Company name
  3. Email — Main contact email
  4. Email financeiro — Finance department email (finance_email)
  5. Telefone — Phone number
  6. CPF/CNPJ — Document (Brazilian tax ID)
  7. Website — Company website
  8. Endereço — Physical address
  9. País — Country (country)
  10. Código IBGE da cidadecity_ibge_code
  11. Statusactive, inactive, or lead (default: active)
  12. 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

ResourceEndpointNotes
---------------------------------------------------------------
clients/clientsClients & suppliers (finance_parties)
contacts/projects/{id}/contactsProject-scoped contacts
deals/dealsCRM opportunities (crm_deals)
proposals/proposalsCommercial proposals
receivables/receivablesAccounts receivable
expenses/expensesExpenses

Filters for list

Common query parameters (supported varies by resource):

  • --limit N (default 50, max 200)
  • --offset N (default 0)
  • --status — filter by status enum
  • --type — filter by type (clients: client/supplier/both)
  • --stage — filter by deal stage (deals: lead/qualified/proposal/negotiation/won/lost)
  • --party-id — filter by client/supplier (party UUID)
  • --project-id — parent project ID for scoped resources (contacts, cycles, tasks)
  • --priority — filter task priority
  • --cycle-id — filter tasks by cycle
  • --assignee-id — filter tasks by assignee
  • --due-date-from / --due-date-to — date range for receivables
  • --date-from / --date-to — date range for expenses

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:

  1. --api-key argument (use if user provided key in chat)
  2. FLOWDECK_API_KEY environment variable

If neither is available, the script exits with an error message.

API Key + Base URL Environment Variables

  • FLOWDECK_API_KEY — Bearer API key
  • FLOWDECK_BASE_URL — API base URL (default: https://mycivgjuujlnyoycuwrz.supabase.co/functions/v1/api-gateway)

Preflight + Common Failures

  • Preflight:
  • command -v uv (must exist)
  • test -n "$FLOWDECK_API_KEY" (or pass --api-key)
  • Common failures:
  • Error: No API key provided. → set FLOWDECK_API_KEY or pass --api-key
  • HTTP 401 → invalid/revoked key
  • HTTP 404 → resource not found or doesn't belong to workspace
  • "quota/permission/403" → wrong key, no access, or quota exceeded

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>

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 15:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,233
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,422
business-ops

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,334