When to build a custom component
With HTTP components and code steps you can connect almost anything. But if your company has an internal API used by many flows, or you want non-technical people to use it comfortably, it is worth turning it into a custom component. Instead of copying the same HTTP request into twenty flows, the team picks clear actions such as "Create work order" or "Get customer balance" with well-explained fields.
The component SDK
flooows provides a TypeScript SDK for building components. A component defines:
- Authentication: how it connects to the service (API key, OAuth, username and password). Credentials are stored like any other connection, encrypted and shareable within the project.
- Actions: operations that can be used as steps, with their input properties (text, number, dropdowns, checkboxes) and the code that runs them.
- Triggers: events that can start a flow, either instantly through a webhook or by periodic polling.
- Metadata: name, description and icon that users see in the editor.
Example: connector for an internal logistics API
A distribution company has its own shipping API. The tech team builds a component with API key authentication, a "Create shipment" action with address, weight and order reference fields, a "Get status" action and a "Shipment delivered" polling trigger.
From then on, the operations team builds flows on its own, such as: when the POS records a sale with home delivery, create the shipment and notify the customer; and when the shipment is delivered, ask for a review by email. References work as usual, for example {{create_shipment.tracking_number}}.
Best practices
- Design actions with the business user in mind: clear names, descriptions on every field and sensible defaults.
- Use dynamic dropdowns to pick items (warehouses, rates) instead of asking for identifiers.
- Return clean, flat outputs where possible to make the data selector easy to use.
- Prefer instant triggers if your API can send webhooks; polling adds minutes of latency.
- Handle API errors with understandable messages, and version the component when you change properties so existing flows do not break.
Common errors
- Renaming or removing properties of an action that published flows already use.
- Polling triggers that return already processed items and create duplicate runs; store a marker for the last item seen.
- Generic error messages that do not help whoever is reviewing the run history.