Package Information
Documentation
n8n-nodes-cotlet
This is an n8n community node for Cotlet.
Cotlet is a cloud browser for AI agents and a Custom API creator. You build your own API endpoint for any web app in the Cotlet console at cotlet.dev, then call it from anywhere. This node calls those endpoints from n8n.
Endpoints are built in the Cotlet console, not in n8n. The node only calls the endpoints that already exist in your Cotlet account.
Installation
In n8n: Settings > Community nodes > Install, then enter n8n-nodes-cotlet.
See the n8n community nodes guide for details.
Credentials
- Sign in to the Cotlet console at cotlet.dev.
- Open API keys and create a key.
- In n8n, create a "Cotlet API" credential and paste the key into API Key.
n8n tests the credential with GET https://cotlet.dev/api/v1/custom.
Operations
Endpoint > Call
Calls one of your Custom API endpoints.
- Endpoint: pick it from the list (loaded from your account) or choose "By Name" and type the name, for example
jobs_for_day. - Input: "Fields" shows one field per input of the endpoint, built from its input schema (required fields are marked). "JSON" sends a raw JSON object instead and replaces the fields.
- Output: the endpoint's
dataobject becomes the item JSON. The run id is added as_cotlet.run_id. - Calls that take longer than about 30 seconds are followed automatically: the node checks the run every 3 seconds, for up to 120 seconds, then returns the data. Calls over 90 seconds fail with
TIMEOUTon the Cotlet side. - Errors show the Cotlet error code and message (for example
UNKNOWN_ENDPOINT,INVALID_INPUT,ENDPOINT_BROKEN). If the answer is not JSON, the node shows the HTTP status and the raw text.
Endpoint > List
Returns one item per endpoint in your account: name, description, url, input_schema, output_schema.
Run > Get
Takes a run id and returns the status (running, succeeded, failed, expired) and, when finished, the result. Useful when a long call outlives the 120 second wait in Endpoint > Call.
Example workflow
examples/endpoint-call.json: a Manual Trigger runs Endpoint > Call on jobs_for_day, and a Set node keeps the fields you need. Import it in n8n, select your Cotlet credential on the Cotlet node and replace the endpoint name with one of yours.
Compatibility
Tested with n8n 2.x. The node can also be used as a tool by the n8n AI Agent.