# Agent Action Source: https://docs.komos.ai/agent-action A general-purpose AI agent that can browse, process data, call APIs, and more. Agent Action is Komos's most powerful node type. It's a prompt-driven AI agent that can perform complex, multi-step operations in a single node. ## Capabilities Agent Action can: | Capability | Examples | | --------------------- | ---------------------------------------------------- | | **Browse websites** | Navigate, click, fill forms, scroll, extract data | | **Process data** | Transform, filter, summarize, format data with AI | | **Call integrations** | Google Sheets, Slack, CRMs, and 100+ connected tools | | **Search the web** | Look up information, verify facts, find resources | | **Read/write files** | Create reports, parse uploads, manage documents | | **Send emails** | Compose and send via connected email integrations | | **Inspect network** | Capture XHR/Fetch requests to extract hidden data | ## When to use Agent Action **Use Agent Action when:** * The task requires judgment or adaptation * Multiple steps need to happen based on what's found * You need to combine browser automation with data processing * The exact steps depend on page content **Use specialized nodes when:** * You need pure data transformation without browser context (Process Data) * You want to make a direct HTTP call (API Request) * You need to branch or loop (If/Else, Loop) ## Creating an Agent Action node 1. In the builder, click **+ Add Node** and select **Agent Action** 2. Write a **prompt** describing what the agent should do 3. Define **outputs** the agent should produce 4. Optionally attach **skills** and **integrations** ### Writing effective prompts Be specific about the goal and constraints: ``` Extract all invoice numbers and amounts from the current page. 1. Look for a table or list of invoices 2. For each invoice found, capture: - Invoice number (usually starts with "INV-") - Amount (numeric value with currency) - Date if visible 3. If pagination exists, note that more pages are available but don't navigate to them Return the data as a list of objects. ``` **Tips:** * Break complex tasks into numbered steps * Specify what success looks like * Mention edge cases or constraints * Don't over-specify - let the agent adapt ### Defining outputs Declare what variables the agent should produce: | Output Type | Use Case | | ------------- | -------------------------------------- | | `scalar` | Single value (string, number, boolean) | | `list` | Array of values | | `object` | Structured data with named fields | | `object_list` | Array of structured objects | Outputs are available as `${node_id.output_name}` in downstream nodes. For `object` and `object_list` types, you can add an optional `schema` field listing the expected fields (each with `name` and `type`). This helps downstream nodes and API callers understand the shape of the data. ## Advanced features ### Network request inspection When data isn't visible in the DOM (hidden IDs, URLs constructed by JavaScript), use network inspection: ``` The table shows applicant names but the IDs aren't in the HTML. 1. Navigate to the applicants page 2. Use get_network_requests to find the API call that loads the table 3. Use get_network_response_body to get the JSON response 4. Extract the applicant IDs from the API response 5. Build the detail URLs: /applicants/{id} ``` The agent has access to: * `get_network_requests(url_pattern, method)` - Find captured requests * `get_network_response_body(request_id)` - Get response content ### Attaching skills Skills provide reusable guidance. Attach them in the node editor: 1. Open the Agent Action node 2. Find the **Skills** section 3. Select skills that apply to this task The agent reads skill instructions alongside your prompt. ### Toolsets The `toolsets` parameter controls which categories of tools the agent can use during execution. When omitted, the agent has access to all available tool categories. Specify a list of toolset names to restrict the agent to only those capabilities. ### Using integrations Enable connected integrations for API work: 1. In the node editor, find **Integrations** 2. Select which connected accounts to allow 3. Describe the integration work in your prompt ``` Using the connected Google Sheets account: 1. Open the spreadsheet "Monthly Reports" 2. Find the sheet named "January" 3. Add a new row with today's date and the extracted totals ``` ### Visual references Add screenshots to show the agent what to expect: 1. Expand **Advanced > Visual References** 2. Upload or paste screenshots 3. Label them clearly (e.g., "Login page", "Success state") Visual references improve reliability for complex UIs. ## Combining with other nodes Agent Action works best as part of a larger flow: ``` Login → Agent Action → Process Data → File Output ``` * Use **Login** to authenticate with stored credentials * Use **Agent Action** for browser automation, data extraction, and adaptive steps * Use **Process Data** to transform or reformat captured variables * Use **File Output** or **Email Send** to deliver results ## Troubleshooting ### Agent doesn't find elements * Add visual references showing the expected UI * Be more specific about element descriptions * Mention in the prompt that the agent should wait for dynamic content to load ### Outputs are empty * Verify output names match what's declared * Check the run logs for what the agent captured * Ensure the agent prompt asks for the data explicitly ### Integration calls fail * Verify the integration is connected in Settings > Integrations * Check that the task has the integration enabled * Review the integration's required scopes/permissions ## Best practices 1. **Start simple:** Write a basic prompt, run it, then refine 2. **Use skills for patterns:** Extract repeated guidance into skills 3. **Declare all outputs:** Don't rely on implicit variables 4. **Add verification:** Include verification steps in the prompt or use Process Data to validate outputs 5. **Check run logs:** The execution view shows exactly what the agent did # Introduction Source: https://docs.komos.ai/api-reference/introduction Komos public API for triggering and monitoring task runs. ## Overview The Komos public API lets you launch saved tasks, observe their progress, stream execution logs, and cancel them programmatically. Each run executes asynchronously—enqueue a task, poll for status or subscribe via webhooks, and consume the outputs once the run reaches a terminal state. This is our current public integration surface, while Python and TypeScript SDKs are in active development. ## Base URLs * Production: `https://api.komos.ai` Komos does not operate a staging environment; target the production host for all integrations. All endpoints are prefixed with `/public/v1`. When previewing the docs locally, point the API tester to your tunnel (`https://api-komos.ngrok.app`) so browser requests reach your development stack. ## Endpoints ### Tasks * `GET /public/v1/tasks` — list tasks with embedded schedule, owner, and run statistics. * `GET /public/v1/tasks/{taskId}` — fetch full details for a single task including its definition. ### Task Runs * `POST /public/v1/tasks/{taskId}/runs` — queue an asynchronous run for a saved task (idempotent with `clientRequestId`). * `GET /public/v1/task-runs` — list runs across all tasks with status and task filters. * `GET /public/v1/tasks/{taskId}/runs` — list the 50 most recent runs for a specific task. * `GET /public/v1/task-runs/{runId}` — fetch the latest status for a single run. * `GET /public/v1/task-runs/{runId}/logs` — retrieve ordered log entries captured while the run executed. * `POST /public/v1/task-runs/{runId}/cancel` — request cancellation for a pending or running task. ## Authentication Authenticate using an organization-scoped API key issued from the Komos dashboard. Send the secret in the `Authorization` header using the Bearer scheme: ```http theme={null} Authorization: Bearer sk_live_your_api_key ``` Requests without a valid key return `401 Unauthorized`. ## Idempotency `POST /public/v1/tasks/{taskId}/runs` supports idempotent retries via the optional `clientRequestId` field. Repeat the call with the same value to receive `200 OK` and the previously created run instead of launching a duplicate. ## Run resource Successful responses return a run object shaped like the example below. ```json theme={null} { "id": "9c77d908-7bf4-4e7f-9a20-2c5e7fdf2e94", "taskId": "79c6b1aa-24d1-45b3-8c94-9a2e2a2f55bc", "status": "RUNNING", "triggerType": "api", "timestamps": { "createdAt": "2025-10-14T18:21:52.123Z", "startedAt": "2025-10-14T18:22:03.481Z", "finishedAt": null }, "progress": { "currentStep": 2, "stepsTotal": 5 }, "inputs": { "url": "https://example.com/orders/48219" }, "outputs": {}, "error": null, "cancelReason": null } ``` * `status` values: `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`. * `triggerType` is one of `manual`, `schedule`, `api`, or `email`. ## Error handling Errors follow the standard FastAPI structure: * Validation issues return `400 Bad Request` with `{"detail": "invalid_task_id"}`. * Missing resources return `404 Not Found`, e.g., `{"detail": "run_not_found"}`. * Usage limits return `402 Payment Required` with additional details. * Transient queue issues respond with `503 Service Unavailable`; retry with exponential backoff. ## Webhooks Need near-real-time notifications? Configure outbound webhooks from the dashboard to receive run status and log events. Delivery cadence, headers, and payload schemas are detailed in [`api-reference/webhooks/overview`](../api-reference/webhooks/overview). Refer to the endpoint pages for full schemas and examples. # Cancel Task Run Source: https://docs.komos.ai/api-reference/task-runs/cancel POST /public/v1/task-runs/{runId}/cancel Request cancellation for an in-flight run. Submit a cancellation request for a run that is still `PENDING` or `RUNNING`. You can optionally include a reason to help with audit trails. The response returns the current run payload; subsequent polling on `GET /public/v1/task-runs/{runId}` reflects the final status. ## Request ### Path parameters * `runId` — UUID of the run to cancel. ### Body fields * `reason` *(string, optional)* — Free-form text recorded on the run for auditing. ### Example ```bash theme={null} curl -X POST \ https://api.komos.ai/public/v1/task-runs/9c77d908-7bf4-4e7f-9a20-2c5e7fdf2e94/cancel \ -H 'Authorization: Bearer sk_live_example' \ -H 'Content-Type: application/json' \ -d '{ "reason": "User cancelled via dashboard" }' ``` ## Responses * `202 Accepted` — Cancellation was accepted. The response includes the run payload reflecting the latest state. Runs that already reached a terminal status are returned unchanged. * `400 Bad Request` — Invalid run ID. * `401 Unauthorized` — Missing or malformed API key. * `404 Not Found` — The run does not belong to the authenticated organization. # Retrieve Task Run Source: https://docs.komos.ai/api-reference/task-runs/get GET /public/v1/task-runs/{runId} Look up the latest status for a run. Poll this endpoint to follow a specific run until it reaches a terminal state (`COMPLETED`, `FAILED`, or `CANCELLED`). Responses include timestamps, inputs, outputs, and (when configured) a `logsUrl` pointing to the latest execution logs. ## Request ### Path parameters * `runId` — UUID for the run to inspect. ### Example ```bash theme={null} curl -X GET \ https://api.komos.ai/public/v1/task-runs/9c77d908-7bf4-4e7f-9a20-2c5e7fdf2e94 \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "run": Run }` with up-to-date status, progress, outputs, and timestamps. * `400 Bad Request` — Invalid run ID. * `401 Unauthorized` — Missing or malformed API key. * `404 Not Found` — The run does not belong to the authenticated organization. Use the returned `status` to drive polling back-off and surface completion details. # List Task Runs Source: https://docs.komos.ai/api-reference/task-runs/list GET /public/v1/tasks/{taskId}/runs Fetch the most recent runs for a task. Returns the 50 most recent runs for the given task, ordered from newest to oldest. Use this to build dashboards or confirm the run ID returned by the queue endpoint. ## Request ### Path parameters * `taskId` — UUID for the task whose history you need. No query parameters are currently supported; additional values are ignored. ### Example ```bash theme={null} curl -X GET \ https://api.komos.ai/public/v1/tasks/4df7d6f9-56be-4f77-9b18-25ad908a20b7/runs \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "runs": Run[] }` with at most 50 entries. * `400 Bad Request` — Invalid task ID. * `401 Unauthorized` — Missing or malformed API key. * `404 Not Found` — The task is not visible to your organization. Each run object matches the schema described in the [introduction](../introduction). Follow the `logsUrl` field to fetch execution logs for any run in the list. # List All Runs Source: https://docs.komos.ai/api-reference/task-runs/list-all GET /public/v1/task-runs Retrieve a paginated list of runs across all tasks. Returns a paginated list of task runs across your entire organization, ordered from newest to oldest. Use this for cross-task dashboards, monitoring, and audit trails. To list runs for a specific task, you can either use this endpoint with the `taskId` filter or use the task-scoped [List Task Runs](list) endpoint. ## Request ### Query parameters * `limit` *(integer, optional)* — Number of runs to return per page. Min 1, max 100, default 20. * `offset` *(integer, optional)* — Number of runs to skip for pagination. Default 0. * `status` *(string, optional)* — Filter by run status: `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`. * `taskId` *(UUID, optional)* — Filter runs to a specific task. * `since` *(string, optional)* — ISO 8601 timestamp. Only return runs created after this time. Defaults to 7 days ago. * `until` *(string, optional)* — ISO 8601 timestamp. Only return runs created before this time. ### Example ```bash theme={null} curl -X GET \ 'https://api.komos.ai/public/v1/task-runs?limit=10&status=FAILED' \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "runs": Run[], "total": int, "limit": int, "offset": int }`. * `400 Bad Request` — Invalid task ID or status filter. * `401 Unauthorized` — Missing or malformed API key. Each run object matches the schema described in the [introduction](../introduction#run-resource). # Get Task Run Logs Source: https://docs.komos.ai/api-reference/task-runs/logs GET /public/v1/task-runs/{runId}/logs Retrieve ordered log entries captured while a task run executes. Use this endpoint to stream structured log entries produced during automation. Entries are returned in ascending chronological order. New logs become available moments after they are persisted by the runner. ## Request ### Path parameters * `runId` — UUID of the run whose logs you want to inspect. ### Example ```bash theme={null} curl -X GET \ https://api.komos.ai/public/v1/task-runs/9c77d908-7bf4-4e7f-9a20-2c5e7fdf2e94/logs \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "runId": UUID, "logEntries": LogEntry[] }`. * `400 Bad Request` — Invalid run ID. * `401 Unauthorized` — Missing or malformed API key. * `404 Not Found` — The run is not visible to the authenticated organization. ### Log entry schema Each item in `logEntries` contains the following fields: * `id` *(UUID)* — Unique identifier for the log row. * `timestamp` *(string | null)* — ISO 8601 timestamp when the event was recorded. * `level` *("info" | "warning" | "error")* — Normalized severity. * `message` *(string)* — Human-readable summary of the event. Empty strings may appear when the underlying step emits no message. * `nodeId` *(string | null)* — Identifier of the builder node that produced the log, if available. * `nodeName` *(string | null)* — Human-readable name of the node, derived from the task definition. * `inputs` *(object, optional)* — Input values for this step. Only present when the step recorded inputs. * `outputs` *(object, optional)* — Output values from this step. Only present when the step produced outputs. Combine this endpoint with [`task-run.log` webhook deliveries](../webhooks/overview) to monitor runs in near real time. # Queue Task Run Source: https://docs.komos.ai/api-reference/task-runs/queue POST /public/v1/tasks/{taskId}/runs Start executing a saved Komos task. Use this endpoint to queue a new asynchronous run for an existing task. Provide a UUID task ID from the Komos dashboard and optional input overrides that match the task's input schema. ## Request ### Path parameters * `taskId` — UUID for the saved task. ### Body fields * `inputs` *(object, optional)* — Key/value overrides that map to the task's declared inputs. Any keys omitted fall back to defaults defined in the task. * `clientRequestId` *(string, optional)* — Supply a unique value per task to make the request idempotent. Repeating the same value returns `200 OK` with the previously created run. ### Example ```bash theme={null} curl -X POST \ https://api.komos.ai/public/v1/tasks/4df7d6f9-56be-4f77-9b18-25ad908a20b7/runs \ -H 'Authorization: Bearer sk_live_example' \ -H 'Content-Type: application/json' \ -d '{ "clientRequestId": "checkout-48219", "inputs": { "url": "https://example.com/orders/48219", "runHeadless": true } }' ``` ## Responses * `202 Accepted` — The run was created and queued for execution. The payload contains the run resource with `status: "PENDING"`. * `200 OK` — A run with the supplied `clientRequestId` already exists; the response returns the existing run without enqueuing another execution. * `400 Bad Request` — Invalid task ID or payload shape. * `401 Unauthorized` — Missing or malformed API key. * `402 Payment Required` — Your organization exhausted its run allotment; the response includes usage details. * `404 Not Found` — The task does not exist or is not accessible to the current organization. * `503 Service Unavailable` — A transient queue error prevented dispatch; retry with exponential backoff. Once accepted, poll `GET /public/v1/task-runs/{runId}` or subscribe to [`task-run.*` webhooks](../webhooks/overview) to follow execution. # Retrieve Task Source: https://docs.komos.ai/api-reference/tasks/get GET /public/v1/tasks/{taskId} Fetch full details for a single task. Returns complete details for a single task, including the node graph definition and plan summary that are omitted from the list endpoint. Use this to inspect the task configuration or validate inputs before queuing a run. ## Request ### Path parameters * `taskId` — UUID of the task to retrieve. ### Example ```bash theme={null} curl -X GET \ https://api.komos.ai/public/v1/tasks/4df7d6f9-56be-4f77-9b18-25ad908a20b7 \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "task": Task }` with all fields from the list endpoint, plus: * `definition` *(object)* — The full node graph definition for the task. * `planSummary` *(string | null)* — AI-generated summary of the execution plan. * `400 Bad Request` — Invalid task ID format. * `401 Unauthorized` — Missing or malformed API key. * `404 Not Found` — Task not found or not accessible to the authenticated organization. # List Tasks Source: https://docs.komos.ai/api-reference/tasks/list GET /public/v1/tasks Retrieve a paginated list of tasks in your organization. Returns a paginated list of tasks visible to the authenticated organization. Each task includes its current status, owner, schedule summary, and run statistics so you can build dashboards or sync task inventories to external systems without additional calls. ## Request ### Query parameters * `limit` *(integer, optional)* — Number of tasks to return per page. Min 1, max 100, default 20. * `offset` *(integer, optional)* — Number of tasks to skip for pagination. Default 0. * `search` *(string, optional)* — Filter tasks by name (case-insensitive substring match). * `status` *(string, optional)* — Filter by task status: `DRAFT`, `PROCESSING`, `NEEDS_REVIEW`, `READY`, `ERROR`. ### Example ```bash theme={null} curl -X GET \ 'https://api.komos.ai/public/v1/tasks?limit=50&status=READY' \ -H 'Authorization: Bearer sk_live_example' ``` ## Responses * `200 OK` — Returns `{ "tasks": Task[], "total": int, "limit": int, "offset": int }`. * `401 Unauthorized` — Missing or malformed API key. ### Task object Each item in the `tasks` array contains: * `id` *(UUID)* — Unique task identifier. * `name` *(string)* — Task name. * `description` *(string)* — Task description (empty string if not set). * `status` *(string)* — Current status: `DRAFT`, `PROCESSING`, `READY`, or `ERROR`. * `createdAt` *(string)* — ISO 8601 creation timestamp. * `updatedAt` *(string)* — ISO 8601 last-updated timestamp. * `owner` *(object | null)* — `{ "name": "..." }` if an owner is assigned. * `createdBy` *(object | null)* — `{ "name": "..." }` for the task creator. * `inputs` *(array)* — Declared input schema for the task. * `outputs` *(array)* — Declared output schema for the task. * `schedule` *(object | null)* — Embedded schedule summary (see below), or `null` if no schedule. * `runCount` *(integer)* — Total number of runs for this task. * `lastRunAt` *(string | null)* — ISO 8601 timestamp of the most recent run. ### Schedule summary When a task has a schedule, the `schedule` field contains: * `isActive` *(boolean)* — Whether the schedule is currently active. * `cadenceType` *(string)* — Schedule cadence type (e.g., `cron`). * `cronExpression` *(string)* — Cron expression for the schedule. * `timezone` *(string)* — IANA timezone for the schedule. * `nextRunAt` *(string | null)* — Next scheduled execution time. * `lastRunAt` *(string | null)* — Last scheduled execution time. # Webhooks Source: https://docs.komos.ai/api-reference/webhooks/overview Receive task run notifications and logs via signed HTTP callbacks. Komos can push run lifecycle events to your infrastructure so you do not need to poll the public API. Configure webhook endpoints from **Settings → API & Webhooks** in the dashboard, then use the API key issued to your organization to manage runs. ## Supported events Each endpoint can subscribe to one or more event types: * `task-run.started` — Emitted when a run transitions from `PENDING` to `RUNNING`. * `task-run.completed` — Sent after successful completion; payload mirrors the run resource. * `task-run.failed` — Delivered when a run exits with `FAILED` status and includes error context. * `task-run.cancelled` — Triggered after a run is cancelled (manual API call or dashboard action). * `task-run.log` — Streams batches of new log entries while the run executes. If you do not choose specific events, Komos defaults to all of the above. ## Payloads `task-run.*` events reuse the [run resource](../introduction#run-resource). A typical `task-run.completed` payload looks like this: ```json theme={null} { "id": "220a501c-82f4-43e2-8107-3d8e0c0f4c1b", "taskId": "79c6b1aa-24d1-45b3-8c94-9a2e2a2f55bc", "status": "COMPLETED", "triggerType": "api", "timestamps": { "createdAt": "2025-10-13T15:02:44.812Z", "startedAt": "2025-10-13T15:02:47.001Z", "finishedAt": "2025-10-13T15:03:28.559Z" }, "progress": { "currentStep": 5, "stepsTotal": 5 }, "inputs": { "url": "https://example.com/orders/48190" }, "outputs": { "summary": "Completed order checkout scrape" }, "error": null, "cancelReason": null } ``` `task-run.log` delivers batches of new log entries: ```json theme={null} { "id": "9c77d908-7bf4-4e7f-9a20-2c5e7fdf2e94", "taskId": "79c6b1aa-24d1-45b3-8c94-9a2e2a2f55bc", "logEntries": [ { "id": "8c160f06-72c3-44d1-b0bb-0cb7284987b1", "timestamp": "2025-10-14T18:22:03.489Z", "level": "info", "message": "Navigated to https://example.com/orders/48219", "nodeId": "navigate_orders", "nodeName": "Navigate to orders" } ] } ``` When logs originate from a nested child run, a `childRunId` field is included alongside `id` (which always refers to the root run). ## Request headers Every webhook delivery includes the following headers: * `x-komos-event` — Event type string (for example `task-run.completed`). * `x-komos-signature` — Verification metadata formatted as `t=,v1=`. * `x-komos-endpoint-id` — UUID of the endpoint that received the event. * `x-komos-run-id` *(optional)* — Present for run-related events. * `x-komos-task-id` *(optional)* — Present when the endpoint is scoped to a single task. * `content-type: application/json` ## Signature verification Webhook signatures help confirm Komos sent the request. Use the signing secret shown when you create an endpoint (format `wh__`). The verification process matches the server-side logic: 1. Split the secret on underscores (format `wh_{prefix}_{secret}`). The portion after the second underscore is the raw secret. 2. Derive the signing key with `HMAC-SHA256(key=WEBHOOK_SIGNING_PEPPER, message=raw_secret)`. Komos uses the default pepper `komos-webhook-pepper` unless your organization overrides it. 3. Parse `x-komos-signature` into the timestamp (`t`) and signature (`v1`). 4. Build the payload string `.`. 5. Compute `HMAC-SHA256(key=derived_signing_key, message=payload_string)` and compare the hex digest with `v1` using a constant-time comparison. ### Python example ```python theme={null} import hmac import hashlib WEBHOOK_SIGNING_PEPPER = b"komos-webhook-pepper" def derive_signing_key(signing_secret: str) -> bytes: # signing_secret looks like "wh_ab12cd_FQ7..." parts = signing_secret.split('_', 2) if len(parts) != 3 or parts[0] != 'wh': raise ValueError('invalid signing secret format') raw_secret = parts[2].encode('utf-8') return hmac.new(WEBHOOK_SIGNING_PEPPER, raw_secret, hashlib.sha256).digest() def verify_signature(signing_secret: str, signature_header: str, body: bytes) -> bool: timestamp_fragment, signature_fragment = signature_header.split(',', 1) timestamp = timestamp_fragment.split('=', 1)[1] expected = signature_fragment.split('=', 1)[1] payload = f"{timestamp}.{body.decode('utf-8')}".encode('utf-8') key = derive_signing_key(signing_secret) candidate = hmac.new(key, payload, hashlib.sha256).hexdigest() return hmac.compare_digest(candidate, expected) ``` Rotate the signing secret from the dashboard if verification fails or credentials leak. Whenever you generate a new secret, reconfigure your integration with the updated value. ## Retry policy * Komos retries failed deliveries up to 6 times. * The initial retry waits 60 seconds, doubling each attempt with up to ±30 seconds of jitter. * Backoff is capped at 30 minutes. After the final attempt the event is marked `dead_lettered` and surfaces in the dashboard along with the last error. To re-enqueue dead-lettered events, toggle the endpoint back to active after resolving the issue or contact support to trigger a replay. # API & Webhooks Source: https://docs.komos.ai/api-webhooks Connect Komos automations to the rest of your stack. Komos offers a lightweight REST API and outbound webhooks so you can launch runs from your own tools and react the moment an automation finishes. SDK support is on the roadmap, with official Python and TypeScript clients planned. Use this page to understand the workflow at a high level, then jump into the detailed references when you are ready to build. ## Get ready 1. In the Komos app, go to **Settings → API & Webhooks**. 2. Create an **Organization API key** and store it in a secure location (vault, CI secret, or server config). 3. Optional: register a webhook endpoint to receive run lifecycle events. ## Browse tasks via API * Call `GET /public/v1/tasks` to list all tasks in your organization with their schedule, owner, and run statistics. * Use `GET /public/v1/tasks/{taskId}` to fetch full details for a single task including its definition and plan summary. * Full parameter and schema details live in the [Tasks API reference](/api-reference/tasks/list). ## Launch runs from your systems * Call `POST /public/v1/tasks/{taskId}/runs` with your API key to start a run on demand. Supply task inputs in the body; omit any fields that should fall back to the defaults you set in the builder. * Use `GET /public/v1/task-runs/{runId}` to check the latest status, or `GET /public/v1/task-runs` to list runs across all tasks. * Stream detailed logs with `GET /public/v1/task-runs/{runId}/logs` if you want to mirror the mission control timeline inside your own monitoring tools. * Full parameter and schema details live in the [Task Runs API reference](/api-reference/task-runs/list-all). JSON responses now include object and object\_list output shapes when you declare those types in your task outputs. ### Example: queue a run ```bash theme={null} curl -X POST "https://api.komos.ai/public/v1/tasks/123/runs" \ -H "Authorization: Bearer $KOMOS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "account_id": "acct_987", "month": "2025-10" } }' ``` ## Stay in sync with webhooks * Still on **Settings → API & Webhooks**, register an HTTPS endpoint and copy the signing secret. * Komos delivers `task-run.started`, `task-run.completed`, `task-run.failed`, `task-run.cancelled`, and `task-run.log` events. Each payload includes the run ID, task metadata, and the latest status so you can take action immediately. * Validate every request using the HMAC signature in the `X-Komos-Signature` header before trusting the payload. The [Webhooks overview](/api-reference/webhooks/overview) supplies code samples and the retry policy. ## Put it together * Kick off a run via API, then use webhooks to notify your team in Slack, update a CRM, or trigger a downstream process when the automation succeeds. * For high-volume automations, act on success webhooks and only inspect detailed logs when a failure event arrives. * Keep API keys and webhook secrets separate so rotating one credential does not break the other. ## Good habits * Limit API keys to server-side environments you control. * Test integrations on a staging task before connecting them to production workflows. * Monitor webhook delivery health in the dashboard and replay any failed events once your endpoint is back online. # Automation resources Source: https://docs.komos.ai/automation-resources Public Komos resources for evaluating AI browser automation, workflow automation, and agent platforms. Use these resources when you are comparing AI automation platforms or deciding how to structure a production browser workflow. ## Evaluation guides * [Best AI browser automation tools for 2026](https://www.komos.ai/browser-automation-tools) compares Komos, Browserbase, Airtop, Browser Use, Playwright, and traditional RPA platforms by the work each tool is designed to own. * [AI agent platform](https://www.komos.ai/ai-agent-platform) explains how Komos combines browser automation, integrations, schedules, runs, logs, and human review for production workflows. ## Platform comparisons * [Komos vs Make](https://www.komos.ai/compare/make) * [Komos vs Zapier](https://www.komos.ai/compare/zapier) * [Komos vs n8n](https://www.komos.ai/compare/n8n) * [Komos vs Gumloop](https://www.komos.ai/compare/gumloop) * [Komos vs Relevance AI](https://www.komos.ai/compare/relevance-ai) * [Komos vs Airtop](https://www.komos.ai/compare/airtop) * [Komos vs Browserbase](https://www.komos.ai/compare/browserbase) ## Product pages * [Komos home](https://www.komos.ai/) * [Use cases](https://www.komos.ai/use-cases) * [Pricing](https://www.komos.ai/pricing) * [Book a demo](https://www.komos.ai/book-a-demo) # Node types Source: https://docs.komos.ai/browser-automations/node-types What every Komos node does, grouped like the builder palette, with when-to-use guidance. Use this reference to pick the right node for each step of your automation. Grouping mirrors the builder palette. Each entry highlights when to use it, key parameters, and outputs. ## System * **Start (`START`)** — required entry; one per flow. No params or outputs. * **End (`END`)** — terminates the run. Add error transitions on upstream nodes for resilience. ## Browser automation & AI * **Agent Action (`AGENT_ACTION`)** — general-purpose AI agent that can browse websites, process data, call integrations, search the web, and more. Handles all browser interactions (navigation, clicking, typing, scrolling, data extraction) through natural language prompts. See [Agent Action](/agent-action) for full details. Attach [Skills](/skills) for reusable guidance. * **Login (`LOGIN`)** — apply stored credentials at the right moment; keeps secrets out of nodes. ## Data capture & transform * **Process Data (`PROCESS_DATA`)** — prompt-based transform. Declare outputs (`name`, `description`, `type: scalar | list | object | object_list`); `${var}` tokens interpolated. Add schema fields for object/object\_list so downstream steps and API callers see the shape. * **Parse Document (`PARSE_DOCUMENT`)** — parse a file URL or canonical variable; emits `${node_id}.parsed_result_json` and `${node_id}.parsed_result_url`. * **File Output (`FILE_OUTPUT`)** — write text/JSON to storage; exposes path at `output_variable_name`. ## Communication * **Send Email (`EMAIL_SEND`)** — send via Resend; `to`, `subject`, and `html_body` accept `${variable}` interpolation. Optional params: `reply_to` (Reply-To address), `in_reply_to` (Message-ID for threading), and `attachments` (list of file URLs with optional filenames). ## APIs & integrations * **API Request (`API`)** — call any HTTP endpoint (GET/POST/PUT/PATCH/DELETE) from within a task. Provide URL, optional Bearer token, JSON body with `${variable}` interpolation. Params: `timeout_ms` (default 30 000 ms) and `output_variable_name` (default `response`). The JSON response is parsed and stored at `${node_id.output_variable_name}` for downstream use. Use the in-builder **Send test** button to try sample requests safely. ## Composition * **Task (`TASK`)** — embed another published task as a child step. Maps parent inputs to child, lets you choose child outputs to surface, and runs the latest published version by default (auto-updates). Switch to "Pin to version" when you need a fixed child definition. ## Logic & control * **If / Else (`IF_ELSE`)** — branch on plain-language condition; routes to true/false handles. * **Loop (`LOOP`)** — iterate over a canonical list variable (no `${}`); inside the loop use `${loop_id}.current_item` and `${loop_id}.current_item_index`. ## Tips for reliable runs * Use **Agent Action** for all browser interactions. Describe what you want in natural language and the AI agent handles navigation, waiting, clicking, typing, and extraction. * For downloads, use **Agent Action** to click download controls. Prefer absolute URLs; use **Process Data** to prepend host/scheme to relative links. * Keep node descriptions short and action-oriented so collaborators quickly understand intent. * For AI-driven actions (Agent Action, Login), add **Visual references** in Advanced options so the agent sees what "success" looks like. Use tight, well-labeled screenshots for best results. # Credentials Source: https://docs.komos.ai/credentials Store and reuse logins for task automations. Komos centralizes sensitive logins so automations can authenticate without exposing secrets to individual runs. ## Creating credentials * In the dashboard sidebar, open **Credentials**. * Pick a credential type (browser login, OTP inbox, or custom integration). * Provide the username/password or token payload once. Komos encrypts the material at rest. * Optionally add environment-specific metadata (for example, region or tenant IDs) so builders know when to use the credential. ## Email OTP inbox Enable **Email OTP** when a site delivers login codes by email. Komos generates a dedicated inbox address for the credential. Forward the OTP emails from your primary mailbox to that address so automations can retrieve them during login. Tips: * Forward only the OTP emails (use sender or subject filters in your email rules). * OTPs expire after 5 minutes by default; delivery can take 1-2 minutes. * Some providers require a forwarding confirmation email. Use the **Get verification code** button to copy the code or open the confirmation link. * If you update the credential, confirm the OTP address shown in the Credentials list. ## Connecting credentials to tasks * In the task builder, choose **Credentials** and select the saved record before publishing. * When a credential is attached, Komos signs in with it first, then executes the recorded actions. * The credential configuration can include MFA or OTP flows; Komos prompts the runner with any additional steps needed to complete authentication. * Reuse the same credential across multiple tasks when they share the same login. * The Login node supports an optional `instructions` field for natural language guidance the login agent should follow (e.g., "Click the SSO button instead of typing the password"). ## Rotating or revoking * Update the secret value from the **Credentials** screen to rotate it. New runs pick up the refreshed value immediately. * Disable a credential to block future runs that depend on it. Existing runs fail fast with `credential_unavailable` so operators know to intervene. # Environment Source: https://docs.komos.ai/environments Pick the right place to run each Komos automation. Every Komos run happens in a managed browser session. Choose the environment that fits the job so your automations stay reliable and compliant. The legacy Chrome extension path is fully retired—runs only execute in the Cloud Sandbox or a managed self-hosted runner (Windows or macOS host). ## Komos Cloud Sandbox * Cloud-hosted Chromium that spins up instantly, even when your team is offline. * Fresh session for every run - no risk of leftover cookies or cached data leaking between automations. * Perfect for schedules, API-triggered runs, and long flows that need guaranteed uptime. ## Persistent Cloud Sandbox * Long-lived cloud-hosted Chromium that **keeps state between runs**: cookies, downloaded files, browser profile, in-progress work all survive. * Ideal for tasks that need a persistent login (SaaS dashboards, internal portals you've authenticated to once) or where re-staging state on every run would be wasteful. * Same Daytona compute as the Cloud Sandbox; the difference is one box per persistent environment vs. fresh boxes per run. ### When to choose persistent over a fresh sandbox * You log into a vendor portal once and want subsequent runs to resume that session. * The task downloads files (CSV, PDF, training data) you want to keep across runs. * You install browser extensions or tweak settings that should persist. * You want predictable resume latency (warm box = fast) for scheduled or recurring work. ### Concurrency * Each persistent environment runs **one task at a time**. If a second run starts while the first is still in progress, it queues and starts automatically once the first finishes — same as a self-hosted runner. * You can bind multiple tasks to the same persistent environment (e.g. several Salesforce-related tasks share one logged-in box). ### Lifecycle * **Create** a persistent environment from the Environments page; give it a friendly name like "Lead enrichment" or "Invoice processing." * **Bind** it to a task on the Run Settings tab as the Default runner. * **Rebuild** wipes the saved state and creates a fresh box on the next run, while keeping the same environment identity and task bindings — useful if you want to pick up a newer Chromium build. * **Remove** permanently deletes the environment and unbinds it from every task. ### Status meanings * **Idle - Online**: warm and ready, next run starts fast. * **Idle - Offline**: cold/stopped, next run waits for the box to start (a few seconds longer). * **Running**: a run is currently using it. * **Broken**: an error happened — try Rebuild. * **Destroyed**: removed. ### Limitations to know about * **Chromium version** is whatever was in the Daytona snapshot when the box was created. To upgrade, click **Rebuild** (state is lost) or **Remove** and create a new environment. * **One environment per task at a time** — for parallel runs, create separate environments. * **State on disk only**: things you'd expect to find in `~/.config/chromium`, the user data dir, `Downloads/`. In-memory state (a half-loaded page) doesn't survive between runs. * **First run cold-start**: creating the underlying box takes \~30-90 seconds. Subsequent runs resume in seconds. ## Self-hosted Runner (Windows or macOS) * Installs a lightweight Komos agent on any desktop you control (physical or virtual). * Reuses domain-joined sessions, hardware tokens, Okta/SAML credentials, and any thick-client apps already present. * Ideal for flows that require intranet access, customer-specific VPNs, or desktop-only software. * Keep the host online and allow the Komos service to run in the background so tasks can claim it when needed. * **Windows tips:** run the provided PowerShell script (`.\\start.ps1`) from an elevated session, keep the VM unlocked, and let the Komos agent stay active so recordings and runs can resume instantly. * **macOS tips:** run `./start.sh` on macOS 13+ (Apple Silicon or Intel), grant screen-recording + automation permissions, and keep the Terminal session or LaunchAgent online so the CLI can reconnect automatically. * **Download the runner:** use the public bundles shown in the “Add Self-hosted Runner” modal: * Windows: `windows-runner.zip` (then run `.\\start.ps1`) * macOS: `mac-runner.zip` (then run `./start.sh`) ### SSO and internal sites If your automation needs to reach an internal site behind SSO (Okta, OneLogin, or similar), run it on a Windows VM that already has the necessary browser profiles and IdP sessions. We support both Komos-provided and customer-hosted Windows runners. Configure a service account on that VM, keep the runner online, and tasks will reuse the authenticated session to load intranet pages. For enterprise setup help, contact [team@komos.ai](mailto:team@komos.ai). ## Which environment should I use? * Choose **Cloud Sandbox** for unattended work that doesn't need to remember anything between runs: simple scrapes, schedule-driven reports, ephemeral browsing. * Choose **Persistent Cloud Sandbox** when the task needs a saved login, downloaded files, or any browser state to carry over between runs — and the destination doesn't require your corporate network. * Pick the **Self-hosted Runner** when the automation depends on your corporate network, native software, security hardware, or any credential that only lives on your desktops. * Set a default on the task detail page and override it per run whenever you need to switch. ## Setup checklist * Cloud Sandbox is ready to go out of the box—no installation required. * Persistent Cloud Sandbox: create one from the Environments page, give it a name, then bind it to a task as the Default runner. The first run materializes the underlying box (\~30-90 s); later runs resume in seconds. * Self-hosted runners (Windows and macOS) need the Komos desktop runner installed, outbound access to the Komos gateway, and a signed-in session that stays unlocked for the duration of the run. * After picking an environment, run a quick dry run to confirm waits, prompts, and credentials behave the way you expect. # Execution & Monitoring Source: https://docs.komos.ai/execution Run automations and monitor their results. Open **Executions** from the dashboard sidebar to see every task run across your organization. You can also view runs for a specific task under its **Past runs** tab. ## Mission control * Landing view lists the most recent runs with status, trigger type, and duration. * Filter by task, status, or time range to focus on a specific automation. * Success rate tiles highlight reliability across the selected window. ## Run details * Click any entry to open its session view. * Inspect the node-by-node timeline, inputs, outputs, and error messages. * Download the recorded session to replay exactly what happened in the sandbox. * For interrupted runs, use the log stream to spot the step that needs attention. * `node_debug` runs launched from the builder show up here too; they stream only the selected slice and carry the same logs/screenshots as full runs. * Child Task nodes surface their own nested run records directly in the timeline. Use the “child run” link inside a step to jump into the nested execution without leaving the parent view. * Runs triggered from a **Task’s Past runs** tab deep-link into this view, so you can jump from task context to full telemetry in one click. ## Actions from execution * Cancel an in-flight run. * Retry failed runs manually after correcting data or credentials. * Export outputs in bulk when you need to share results with downstream teams. ## Schedule runs * Open a task and go to **Run settings** to create or edit a schedule (hourly, daily, weekly). Set the time zone, cadence, and optional pause/resume state. * Scheduled runs use the task's selected environment and credentials; change the runner in the same tab if a self-hosted desktop is required. * Each scheduled trigger appears in Execution with its own run entry. You can cancel an in-flight scheduled run from Execution like any other run. * To stop a cadence, pause or delete the schedule in **Run settings**; new runs won't enqueue until you resume it. ## Email triggers Trigger task runs by sending emails to a unique address generated for each task. * Open a task and go to **Run settings**, then expand the **Email** trigger card. * Click **Enable email trigger** to generate a unique email address (e.g., `abc123@mail.komos.ai`). * Send any email to this address to trigger a run. The AI automatically parses the email content (subject, body, attachments) to extract values for your task's input variables. * Copy the email address and share it with external systems, forwarding rules, or team members who need to trigger the task. * Pause or resume the trigger without losing the email address; paused triggers ignore incoming emails until resumed. * Remove the trigger entirely if you no longer need email-based execution. * Each email-triggered run appears in Execution with trigger type "Email" and includes the parsed input values from the message. ## Tips * Name nodes with verbs so the timeline reads like a story (e.g., "Search invoices," "Email report"). * Declare task outputs and map them to variables so consumers see structured results instead of raw logs. * In-flight runs stream node status, screenshots, and logs so you can spot where the flow is waiting or failing. # Tasks Source: https://docs.komos.ai/index Understand how Komos tasks work, how to train them, and the ways you can trigger automations. Welcome! This guide gives you the fastest possible orientation to Komos tasks—our building block for reusable automations. ## Tasks at a glance * **What they are:** A task is a reusable automation graph that can run in the always-on Komos Cloud Sandbox or on a managed self-hosted runner (Windows or macOS). Tasks can browse websites, call 100+ API integrations, process data with AI, send emails, parse documents, and more. * **How to use them:** Pick an existing task from the dashboard or clone a template, then launch runs as needed. Every run executes asynchronously so you can keep working while the sandbox completes the flow. * **Inputs:** Tasks declare a typed input schema (strings, numbers, booleans, lists, and structured objects/object lists). Provide values when you trigger a run—either via the UI, a schedule, or the API/SDKs. Defaults defined in the task builder are applied automatically when you omit a field; for object inputs, add the expected fields so teammates and API callers see the shape. * **Programmatic access:** The current integration path is the REST API. We are actively preparing first-party Python and TypeScript SDKs to make task execution easier in application code. * **Outputs:** When a run finishes it emits structured variables captured by `AGENT_ACTION`, `PROCESS_DATA`, and `PARSE_DOCUMENT` nodes. Outputs can be scalars, lists, or structured objects with defined fields. Review them in the run detail view, export via the dashboard, or fetch them through the public API. The builder now flags undefined variable references while you edit so you can fix typos before a run. * **Nested tasks:** Add a **Task** node to call any published task as a child flow. Inputs map from the parent, outputs surface back up, and the node stays pinned to the child’s published version so runs stay deterministic. ## Train your task Komos supports two complementary training modes so you can build the perfect automation style for your team: 1. **Human-Narrated Training Demo:** Walk through the workflow once while describing what should happen. Komos turns that narration into a runnable plan, then suggests the nodes to add. This is ideal for subject-matter experts who want to articulate intent without thinking about selectors. 2. **Visual Builder (step-by-step):** Record the exact clicks, waits, and extractions directly in the browser preview. The builder captures DOM selectors and lets you edit node inputs before saving the task definition. You can switch between the modes at any time—use narration to sketch the flow, then refine specific steps in the builder. ### Give the agent visual cues * Open an Agent Action or Login node and expand **Advanced → Visual References** to add screenshots of the exact page state you expect. Tight, well-labeled crops make AI-driven steps more reliable. * You can upload your own images or keep/delete still frames Komos suggests from your narrated training sessions. * Visual cues travel with the task, so reruns and node-slice debugging both use the same references across environments. ### Record a training demo from your desktop * Start in the Training step of the task wizard and choose **Add training session**. The in-app recorder launches in a new view so you can pick the window or browser tab to capture. * Use Chrome or Microsoft Edge 116+ to enable screen capture and optional tab audio. When the share picker appears, select the source and, if you want system sound, check **Share tab audio**. * Enable the narration toggle to mix your microphone with the shared audio. A live VU meter helps you confirm levels before you hit **Start recording**. * The session runs for up to five minutes. You’ll get a one-minute warning and recordings stop automatically at the limit. If MP4 isn’t supported on the device, we fall back to WebM and display a banner so you know which format will be saved. * While recording, Komos opens a Picture-in-Picture window with pause/resume and stop controls. If the browser blocks PiP, the page keeps the full control set so you can continue uninterrupted. * After you stop, review the inline playback, rename the file, download a copy if needed, and click **Save to task**. The upload runs with progress feedback and returns you to the wizard with a success toast once the training session is attached. ### Guide the execution plan Every time you click **Generate the Plan**—either during the wizard or from an existing task—you’ll see an optional guidance prompt. Use it to highlight priorities, shortcuts, or anything you want the AI to emphasize. Komos combines that note with your training sessions, supporting documents, and current task definition to rebuild the execution graph. Your most recent guidance stays prefilled so you can tweak it between regenerations without retyping from scratch, and it never overwrites the main task description. **Existing tasks now have two AI modes:** * **Improve current plan (incremental):** starts from the saved draft, keeps structure where possible, and applies your latest guidance plus any selected training sessions or documents. Best for quick edits. * **Rebuild from scratch:** ignores the current draft and creates a fresh plan using the same inputs/outputs and any sources you pick. In the Task Details page, the **Build with AI** button opens a modal where you choose the mode, pick which training sessions and supporting documents to ground this generation, and add optional guidance. The creation wizard flow is unchanged; it still defaults to generating a plan from your Basics/Training inputs without showing the mode toggle. ## Fine-tune your workflow * **Visual editor:** Open any task in the builder to add, reorder, or delete actions. Each card exposes the selectors, parameters, and descriptions the runner uses, so you can refine the automation without re-recording a session. Reach for the action palette to drop new interactions or data steps; consult the [Node types](./browser-automations/node-types) reference to pick the right move. * **API Request node:** Call REST endpoints directly inside a flow. Set the method, URL, optional Bearer token, and JSON body with `${variable}` interpolation; Komos parses the JSON response into a reusable variable (e.g., `${api_call.response}`). Use **Send test** in the editor to try a sample request without leaving the builder. * **Download the graph:** The canvas controls now include **Download JSON**, which exports the current task definition (including unsaved edits) for offline review or version control. * **Reusable tasks:** Drop a published task into another automation with the new **Task** node. Map the child inputs to parent variables, choose which outputs to expose, and Komos runs the child as a nested flow pinned to its published version. You’ll see “Child task update available” badges when the child ships a new version and can refresh nodes on your schedule. * **Structured inputs & outputs:** Mark task inputs and Process Data outputs as `object` or `object_list` and list their fields. Downstream nodes, API callers, and docs then see the expected shape, and Komos can validate references for you while you edit. * **Guidance prompts:** Nudge the planner with natural language when you regenerate the execution plan. Prompts are great for high-level adjustments such as “prefer search results over the marketing page” or “loop through every invoice row before exporting.” Because prompts never overwrite your saved nodes, you can iterate safely and revert to the prior plan at any time. * **Hybrid flow:** Mix both approaches—record or prompt for the broad strokes, then use the editor to wire precise waits, selectors, or output mappings so variables stay canonical. ## Debug a slice of nodes * **Multi-select in the builder:** Drag-select or shift-click a contiguous slice of nodes (including IF/ELSE or LOOP structures). The selection toolbar shows how many steps are included and surfaces `Run selection`, `Duplicate`, and `Delete` actions. * **Pick a runner once:** The builder header now mirrors Task Details, so your preferred managed sandbox or self-hosted runner stays in sync while you debug. Offline runners surface warnings before you launch a slice. * **Node debug drawer:** Launching `Run selection` opens a right-hand drawer that lists the ordered nodes, required canonical inputs (scalar/list/JSON), and a reminder that fresh sandbox sessions or self-hosted prep are still manual. Provide every requested input—`Run slice` stays disabled until they’re filled. * **Run behavior:** Submissions enqueue a dedicated `node_debug` run and deep-link straight to the Execution stream. Slice runs execute real side effects (emails, uploads, API calls) and do not auto-hydrate state, so copy any outputs you need from the run detail view when it finishes. ## Choose your environment Decide where each run executes before you launch it. The Komos Cloud Sandbox stays online for scheduled or API-triggered tasks, while the self-hosted runners (Windows or macOS) connect through Komos to reuse your domain-joined desktops for intranet portals or thick-client flows. Komos no longer ships or requires a local browser extension—these managed environments cover every run target. Review [Environment](./environments) for setup steps and guidance on when to pick each target. ## Trigger a run Choose the trigger that matches how your team works: * **Manual launch:** Kick off ad-hoc runs from the dashboard when you need a one-off execution. * **Schedules:** Define a cadence (hourly, daily, weekly) so Komos runs the task automatically. * **API key:** Issue an organization API key and call `POST /public/v1/tasks/{taskId}/runs` to launch tasks programmatically. * **Follow-up via API:** Poll `GET /public/v1/task-runs/{runId}` or `GET /public/v1/task-runs/{runId}/logs` to monitor progress, or subscribe to webhooks for real-time status updates. * **See SDK roadmap:** Start with REST today and check [SDKs](/sdks) for Python and TypeScript plans. ## Review past runs faster * The Task Details page now includes a **Past runs** tab that lists the latest executions (status, trigger, duration, runner, requester). Jump straight into any run’s live log stream or open the full Execution view for deeper debugging. Use the rest of this documentation to dive deeper into training best practices and the public API. For a broader vendor and architecture overview, see the [AI browser automation tools guide](/automation-resources). # Integrations Source: https://docs.komos.ai/integrations Connect external APIs and services to use in your automations. Integrations connect Komos to external services like Google Sheets, Slack, CRMs, and more. Once connected, Agent Action nodes can call these APIs without you writing any code. ## How integrations work 1. **Connect once** at the org level (Settings > Integrations) 2. **Enable per task** to control which automations can access which services 3. **Use in Agent Action** by describing what you want to do in plain language The AI agent handles authentication, API calls, and error handling automatically. ## Connecting an integration 1. Open **Settings > Integrations** from the left navigation 2. Browse available toolkits or search by name 3. Click **Connect** on the service you need 4. Complete the OAuth flow or enter API credentials 5. Return to Komos - the connection appears under the toolkit Connections are org-scoped. All team members can use connected integrations in their tasks. ### Managing connections Each toolkit shows its connected accounts: * **Status:** Connected, expired, or needs reauthorization * **Refresh:** Reconnect if credentials expired * **Add another:** Connect multiple accounts of the same service * **Remove:** Disconnect an account ## Using integrations in tasks ### Step 1: Enable integrations on the task In the task wizard or builder: 1. Open the **Integrations** panel 2. Select which connections this task can access 3. Only selected connections are available at runtime ### Step 2: Add an Agent Action node Agent Action is the node type that can call integrations: 1. Add an **Agent Action** node 2. In the prompt, describe the API work: ``` Using Google Sheets: 1. Open the spreadsheet "Sales Pipeline" 2. Find the sheet "Q1 Deals" 3. Add a new row with: - Column A: ${deal_name} - Column B: ${deal_value} - Column C: Today's date ``` 3. The agent calls the Google Sheets API automatically ### Step 3: Define outputs If you need data back from the integration: 1. Add outputs to the Agent Action node 2. Describe what to capture in your prompt: ``` Using Slack: 1. Fetch the last 10 messages from #sales-alerts 2. Extract any messages containing "urgent" Output: urgent_messages (list of message texts) ``` ## Available integrations Komos supports 100+ integrations via Composio. Common categories: | Category | Examples | | ---------------------- | -------------------------------------------- | | **Productivity** | Google Sheets, Google Docs, Notion, Airtable | | **Communication** | Slack, Gmail, Microsoft Teams | | **CRM** | Salesforce, HubSpot, Pipedrive | | **Project Management** | Jira, Asana, Linear, ClickUp | | **Dev Tools** | GitHub, GitLab, Vercel | | **Storage** | Google Drive, Dropbox, Box | Browse the full list in **Settings > Integrations**. ## Integrations vs browser automation | Approach | Best for | | ---------------------- | ----------------------------------------------------- | | **Integrations** | Services with APIs, structured data, bulk operations | | **Browser automation** | Legacy systems, sites without APIs, UI-only workflows | Komos picks the right approach automatically. When an API exists, it uses the integration. When no API exists, it falls back to browser automation. You can also combine both in a single task: * Use browser automation to log in and navigate * Use integrations to update a spreadsheet with extracted data ## Security * **OAuth tokens** are stored encrypted * **API keys** are encrypted at rest * **Connections are org-scoped** - not shared across organizations * **Per-task enablement** - tasks only access integrations you explicitly allow ## Troubleshooting ### "Integration not available" * Check that the connection is active in Settings > Integrations * Verify the task has the integration enabled * Refresh the connection if it shows as expired ### API errors * Review the run logs for the specific error message * Check that your account has the required permissions * For rate limits, the agent will retry automatically ### Missing integrations * Search for the service name in the Integrations page * Contact support if you need a specific integration added # MCP Server Source: https://docs.komos.ai/mcp-server Connect AI coding agents to Komos via the Model Context Protocol Komos exposes an MCP (Model Context Protocol) server that lets AI coding agents run automations, check results, and talk to Moss directly from your IDE. ## Setup Go to **Settings → Developer → Personal Tokens** and click **Create token**. Copy the token — you won't be able to see it again. ```bash theme={null} claude mcp add komos -- npx -y mcp-remote \ https://api.komos.ai/public/v1/mcp/ \ --header "Authorization: Bearer YOUR_TOKEN" ``` Add to your Claude Desktop config file: **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` ```json theme={null} { "mcpServers": { "komos": { "command": "npx", "args": [ "-y", "mcp-remote", "https://api.komos.ai/public/v1/mcp/", "--header", "Authorization: Bearer YOUR_TOKEN" ] } } } ``` Add to `~/.codex/config.toml`: ```toml theme={null} [mcp_servers.komos] url = "https://api.komos.ai/public/v1/mcp/" bearer_token_env_var = "KOMOS_API_KEY" ``` Then set the environment variable: ```bash theme={null} export KOMOS_API_KEY=YOUR_TOKEN ``` Add to `~/.gemini/settings.json`: ```json theme={null} { "mcpServers": { "komos": { "httpUrl": "https://api.komos.ai/public/v1/mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } ``` ## Available tools | Tool | Description | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `list_tasks` | List automation tasks in your workspace. Supports search, pagination, and status filter. | | `get_task` | Get full details of a task including its definition, inputs, outputs, and schedules. | | `run_task` | Start a task run with optional input variables. Returns the run ID. | | `get_run` | Get the status, outputs, and details of a task run. Pass `include_logs: true` for node-level execution logs with tool calls and payloads. | | `list_runs` | List recent task runs. Filter by task or status. | | `list_skills` | List reusable skills (agent instructions) in your workspace. | | `get_skill` | Get full details of a skill including its instructions. | | `list_credentials` | List stored credentials (names and domains only, no secrets). | | `list_integrations` | List connected integrations (e.g., Gmail, Slack) with their status. | | `ask_moss` | General-purpose catch-all: ask Moss, your AI automation engineer, to do anything on the platform (create tasks, configure integrations, debug runs, etc.). Prefer specific tools above when possible; use `ask_moss` for complex or multi-step requests that don't fit a single tool. | ## Using ask\_moss Moss can do anything you can do on Komos: create tasks, configure integrations, set up schedules, and build automations. **Examples:** * "Create a task that scrapes example.com/pricing every morning" * "Set up a Slack notification when my weekly report task fails" * "Connect my Google Sheet and create a task that updates it daily" Moss maintains conversation context. Pass the `conversation_id` from a previous response to continue the conversation: ``` ask_moss("Also add email notification when price drops", conversation_id="abc-123") ``` ### Background jobs For complex tasks, Moss may dispatch a background job. When this happens, the tool returns immediately with a message like "I've dispatched a background job to set this up." Follow up with another `ask_moss` call to check the result. ## Authentication Personal tokens are scoped to your user account and organization. They inherit your role and permissions. | | Org API Keys | Personal Tokens | | ------------ | -------------------------- | -------------------- | | Created by | Admins only | Any member | | Use case | CI/CD, server integrations | MCP, developer tools | | Scope | Organization | Organization + User | | Can use Moss | No | Yes | # Moss Source: https://docs.komos.ai/moss Your AI automation engineer that can build, configure, and manage automations on your behalf. Moss is Komos's built-in AI assistant. It can do anything you can do on the platform: create tasks, configure integrations, set up schedules, manage credentials, and troubleshoot runs. ## Getting started Open Moss from the sidebar or click the floating button in the bottom right corner. Type what you want to do in plain language. **Examples:** * "Create a task that scrapes example.com/pricing every morning and emails me the results" * "Set up a Slack notification when my weekly report task fails" * "Why did my last run fail?" * "Connect my Google Sheet and create a task that updates it daily with new leads" Moss maintains conversation context. You can ask follow-up questions, refine what it built, or ask it to modify existing tasks. ## What Moss can do | Capability | Examples | | -------------------------- | ------------------------------------------------------ | | **Create tasks** | Build new automations from a description | | **Configure integrations** | Connect Google Sheets, Slack, email, and 100+ services | | **Set up schedules** | "Run this every weekday at 9am" | | **Debug runs** | Explain why a run failed, suggest fixes | | **Manage credentials** | Help set up authentication for target websites | | **Answer questions** | Explain how features work, suggest approaches | ## Background jobs For complex work (multi-step task creation, testing automations), Moss dispatches a background job. You will see a message like "I am working on this in the background." The results appear in the conversation when the job completes. ## Conversations Each user has one active Moss conversation at a time. Starting a new conversation resets the context. Previous conversations are saved and visible in the conversation history. ## Using Moss from your IDE Moss is also available via MCP. AI coding agents like Claude Code, Codex, and Gemini CLI can talk to Moss using the `ask_moss` tool. See [MCP Server](/mcp-server) for setup instructions. # Organizations & Users Source: https://docs.komos.ai/organization Manage access, roles, and integration settings. Komos groups users inside organizations so multiple teams can collaborate on automations. ## Membership model * Each user belongs to at least one organization and can join multiple organizations. * Switching between organizations changes the available tasks, credentials, and execution history. ## Roles * **Member:** build and run automations, view execution history, use saved credentials. * **Admin:** all member abilities plus manage users, credentials, and schedules. * **Owner:** full control, including billing and organization deletion. ## API & webhooks Only organization admins and owners can configure API keys or webhook endpoints. This ensures that secrets and outbound integrations stay under controlled governance. * Generate API keys from **Settings → API & Webhooks** and rotate them when needed. * Create webhook endpoints to receive run lifecycle events; use signing secrets to verify payloads. * Follow the [API & Webhooks](/api-webhooks) guide for end-to-end integration examples and operational recommendations. ## Invitations and access * Invite teammates with their email address; they receive a secure login link to join your organization. * Suspend or remove users from the organization when access is no longer required. * Review audit logs to trace who changed credentials, webhooks, or automation assets. # SDKs Source: https://docs.komos.ai/sdks Programmatic integration options for Komos. Komos is API-first today. If you are building automations or task tooling now, start with the public REST API. ## Current * **REST API:** Trigger runs, monitor status, read outputs, and configure webhooks through the documented endpoints in the [API reference](/api-reference/introduction). ## Roadmap * **Python SDK:** Planned. * **TypeScript SDK:** Planned. We are aligning both SDKs to the same REST shapes to keep migration straightforward. ## Quick path for developers * For production integrations, use the REST API and monitor [Task Runs](/api-reference/task-runs/list). * For SDK beta or release updates, follow the release notes and roadmap pages. # Skills Source: https://docs.komos.ai/skills Create reusable instructions that guide AI agents in your automations. Skills are reusable natural language instructions that you can attach to Agent Action nodes. They provide vetted, curated guidance that agents read to perform specific tasks correctly. ## Why use skills? * **Consistency:** Encode best practices once, reuse across multiple tasks * **Domain knowledge:** Capture site-specific quirks, workflows, or patterns * **Team collaboration:** Share proven approaches with your team * **Maintainability:** Update a skill once, all attached nodes benefit ## Creating a skill 1. Open **Skills** in the left navigation 2. Click **New Skill** 3. Fill in: * **Name:** A short, descriptive title (e.g., "Handle Certn ID Verification") * **Description:** Optional summary shown in the picker * **Instructions:** Detailed guidance for the agent ### Writing good instructions Write instructions as if you're explaining to a capable assistant: ``` When processing ID verification on support.certn.co: 1. Navigate to the ID verification list page 2. Click the "Created" column to sort by date 3. For each row that needs review: - Click the row to open details - Check the document images against the applicant info - Select the appropriate verification status - Add notes if rejecting 4. Return to the list before processing the next item Note: The table rows don't have visible IDs. Use network request inspection (get_network_requests) to capture the API response which contains the applicant UUIDs. ``` **Tips:** * Be specific about steps and expected outcomes * Mention site-specific quirks or patterns * Include error handling guidance * Use plain text (no markdown formatting) ## Attaching skills to tasks Skills are attached at the **Agent Action** node level: 1. Open your task in the builder 2. Select or create an **Agent Action** node 3. In the node editor, find the **Skills** section 4. Select one or more skills to attach The agent will read the skill instructions alongside the node's prompt when executing. ## Managing skills ### Edit a skill 1. Go to **Skills** and click the skill name 2. Make your changes 3. Click **Save** Changes apply to all future runs of tasks using this skill. ### Improve with AI Click the **Improve** button to have AI clean up your instructions: * Fixes grammar and awkward phrasing * Reorganizes for clarity * Preserves all your original details (never adds new content) ### Delete a skill 1. Open the skill 2. Click the trash icon 3. Confirm deletion Deleting a skill removes it from all Agent Action nodes that reference it. Those nodes will still run but without the skill's guidance. ## Use cases | Skill | Purpose | | ----------------------- | ----------------------------------------------------- | | Login with MFA | Handle multi-factor auth flows consistently | | Extract hidden data | Use network inspection when DOM lacks IDs/URLs | | Navigate complex menus | Guide through multi-level navigation | | Handle rate limiting | Wait and retry patterns for throttled APIs | | Site-specific selectors | Document brittle selectors that need special handling | ## Skills vs node prompts | | Node Prompt | Skill | | --------------- | -------------------------- | -------------------------------- | | **Scope** | Single node | Reusable across nodes/tasks | | **Purpose** | "What to do" | "How to do it well" | | **Maintenance** | Edit each node | Update once, applies everywhere | | **Best for** | Task-specific instructions | Domain knowledge, best practices | Combine both: use the node prompt for the specific goal, attach skills for the approach.