Camunda integration
Camunda is a process orchestration platform for designing, automating, and optimizing business workflows using BPMN (Business Process Model and Notation, the visual language Camunda uses to define workflows). With the Apify Connectors, run Apify Actors and tasks, fetch web pages and datasets, and trigger or resume BPMN processes from Apify webhook events.
This integration uses a third-party service. If you find outdated content, please submit an issue on GitHub.
Prerequisites
To use the Apify integration with Camunda, you need:
- An Apify account
- A Camunda 8 environment (version 8.8, 8.9, or 8.10), with a self-hosted connectors runtime to host the Apify connector code. Self-Managed and Hybrid setups are supported; pure Camunda SaaS is not (see Installation for why and how).
Authentication
All Apify Connector operations require an Apify API token.
- Log in to Apify Console.
- Create an Apify API token for Camunda in Settings > API & Integrations.
- Copy the token right after you create it. Apify Console shows it only once.
In Camunda, avoid hardcoding your token directly in the process design. Instead, use Camunda Secrets (e.g. {{secrets.APIFY_TOKEN}}) to store your Apify API token securely.
How it works
In Apify, an Actor is a serverless program (e.g. a web scraper), and a task is a saved configuration of an Actor with preset inputs.
The Apify Connectors expose two complementary integration directions:
- Outbound steps run inside your BPMN process and call the Apify API.
- Inbound events listen for Apify webhooks and can start or resume Camunda processes.
Where the connector runs
Camunda Connectors are Java components that execute on a connectors runtime. Camunda SaaS ships a managed runtime preloaded with Camunda's first-party connectors (HTTP REST, Slack, AWS, etc.), but it does not load third-party connector JARs uploaded by tenants.
The Apify Connector is a third-party JAR, so you host the connectors runtime yourself. Two deployment paths are supported:
- Self-Managed: you run the entire Camunda 8 stack (Zeebe, Operate, Tasklist, and the connectors runtime) on your own infrastructure.
- Hybrid: Zeebe and the BPMN engine run on Camunda SaaS, while you run a self-hosted connectors runtime that authenticates back to the SaaS cluster.
See Installation below for setup. For deeper reference, the Camunda docs cover hosting custom connectors and running connectors in hybrid mode.
Installation
Each connector release publishes two artifacts on the GitHub Releases:
| Artifact | What it is | Where it goes |
|---|---|---|
apify-camunda-connector-<version>-c8.8.jar / -c8.9.jar / -c8.10.jar | The shaded connector runtime JAR (includes all dependencies), one per Camunda minor | Download the suffix matching your Camunda minor (-c8.8, -c8.9, or -c8.10) and drop it on the connectors runtime classpath - see Run the connectors runtime |
apify-camunda-connector-element-templates-<version>.zip | All five element template JSONs | Upload to your Camunda Web Modeler project (Camunda Hub on 8.10), or place into the resources/element-templates/ directory of Desktop Modeler |
Use the latest release. Every release includes a JAR for each supported Camunda minor.
The element templates add the connector to your Modeler palette, but the JAR is what actually runs it. Importing the templates alone lets you model and deploy a process; the Apify task will fail at runtime until a self-hosted connectors runtime has the JAR loaded. This is unlike Camunda's built-in connectors, which need only a template because their code already ships in every connectors-bundle.
Choose your deployment scenario
| Scenario | Supported? | Notes |
|---|---|---|
| Self-Managed | Yes | You control the connectors runtime on your own infrastructure. |
| Hybrid | Yes | Zeebe runs on Camunda SaaS, while you host the connectors runtime. |
| Pure SaaS | No | The managed connectors runtime cannot load custom JARs. Use Hybrid mode instead. |
Run the connectors runtime
The connector runs on the official camunda/connectors-bundle Docker image with the Apify JAR mounted in (from Host custom connectors). Three things apply to both setups below:
- JAR and image must match your Camunda minor. Use the
-c8.8JAR with an8.8.xbundle, the-c8.9JAR with an8.9.xbundle, and the-c8.10JAR with an8.10.xbundle. Substitute<version>with the JAR's release tag (e.g.1.0.0) and use a recent patch of your minor for the image tag (e.g.8.10.5,8.9.4,8.8.12); any patch of the matching minor works. - Mount into
/opt/custom/, not/opt/app/. The bundle launches with-Dloader.path=/opt/custom/, the directory whose JARs are added to the runtime classloader that can see the Connector SDK. A JAR in/opt/app/lands on the plain system classpath and fails at startup withNoClassDefFoundError: io/camunda/connector/api/outbound/OutboundConnectorFunction. - The runtime listens on container port
8080. Publish it with-p(the examples below map it to host8086) for health checks (http://localhost:8086/actuator/health/readiness) and for the inbound webhook tunnel.
The connector also needs to know where your cluster is and how to authenticate. That part depends on the deployment scenario you chose - pick one below.
Self-Managed
You run Zeebe and the connectors runtime yourself. Point the runtime at your cluster's Zeebe gateway (gRPC) and orchestration REST API, and supply its authentication. The example below uses OpenID Connect (OIDC) with Keycloak and includes the Apify token as an environment variable:
docker run --rm --name apify-connectors \
--network <camunda-network> \
--add-host host.docker.internal:host-gateway \
-p 8086:8080 \
-v $PWD/apify-camunda-connector-<version>-c8.9.jar:/opt/custom/connector.jar \
-e CAMUNDA_CLIENT_MODE=self-managed \
-e CAMUNDA_CLIENT_GRPCADDRESS=http://<zeebe-host>:26500 \
-e CAMUNDA_CLIENT_RESTADDRESS=http://<orchestration-host>:8080 \
-e CAMUNDA_CLIENT_AUTH_METHOD=oidc \
-e CAMUNDA_CLIENT_AUTH_TOKENURL=http://<keycloak-host>:18080/auth/realms/camunda-platform/protocol/openid-connect/token \
-e CAMUNDA_CLIENT_AUTH_CLIENTID=<client-id> \
-e CAMUNDA_CLIENT_AUTH_CLIENTSECRET=<client-secret> \
-e CAMUNDA_CLIENT_AUTH_AUDIENCE=orchestration-api \
-e CAMUNDA_CLIENT_AUTH_SCOPE='openid profile email' \
-e SECRET_APIFY_TOKEN=<apify-token> \
camunda/connectors-bundle:8.9.4
Placeholder examples for common self-hosted setups:
<zeebe-host>: Zeebe gRPC host, e.g.orchestration<orchestration-host>: Orchestration REST host, e.g.orchestration<keycloak-host>: OIDC token host, e.g.host.docker.internal<camunda-network>: Docker network name, e.g.camunda-89_camunda-platform(the 8.10 compose files name itcamunda-platform)<client-id>: OIDC client ID, e.g.connectors<client-secret>: OIDC client secret, e.g.demo-connectors-secret<apify-token>: Apify API token, e.g.apify_api_xxxx
In most Self-Managed deployments, run the connectors runtime in the same Docker Compose or Helm release as the rest of Camunda.
Reuse the values already configured for the bundled connectors service. Then either replace that service image with your custom image or add the Apify JAR to the existing service.
See Camunda's connectors configuration reference.
Inside the cluster network, the orchestration REST API uses port 8080 on all supported versions. Only the host-published port differs (8088 on 8.8, 8080 on 8.9 and 8.10).
Hybrid
Zeebe and the BPMN engine run on Camunda SaaS; you run only the connectors runtime. Pass your SaaS cluster credentials as environment variables. Find the cluster ID, region, and client credentials in Camunda Console under your cluster's API tab:
docker run --rm \
-p 8086:8080 \
-v $PWD/apify-camunda-connector-<version>-c8.9.jar:/opt/custom/connector.jar \
-e CAMUNDA_CLIENT_MODE=saas \
-e CAMUNDA_CLIENT_CLOUD_CLUSTERID='<YOUR_CLUSTER_ID>' \
-e CAMUNDA_CLIENT_CLOUD_REGION='<YOUR_REGION>' \
-e CAMUNDA_CLIENT_AUTH_CLIENTID='<YOUR_CLIENT_ID>' \
-e CAMUNDA_CLIENT_AUTH_CLIENTSECRET='<YOUR_CLIENT_SECRET>' \
-e SECRET_APIFY_TOKEN='<apify-token>' \
camunda/connectors-bundle:8.9.4
The client credentials need the Orchestration Cluster REST API scope at minimum. See Use connectors in hybrid mode for scopes and alternate auth modes.
The SECRET_APIFY_TOKEN variable name above is for Camunda 8.9 and 8.10. On 8.8 the runtime expects APIFY_TOKEN instead - see Provide the Apify token to the runtime for the version matrix.
Provide the Apify token to the runtime
If your templates reference {{secrets.APIFY_TOKEN}} (recommended over hardcoding), the self-hosted runtime resolves it from an environment variable on the connectors-runtime container. The variable name depends on your Camunda minor:
| Camunda minor | Environment variable |
|---|---|
| 8.8.x | APIFY_TOKEN=<your token> |
| 8.9.x | SECRET_APIFY_TOKEN=<your token> |
| 8.10.x | SECRET_APIFY_TOKEN=<your token> |
The template always references the secret as {{secrets.APIFY_TOKEN}} - the prefix never appears there. The runtime adds it when resolving the value:
- 8.9 and 8.10 apply a default
SECRET_prefix, so{{secrets.APIFY_TOKEN}}resolves againstSECRET_APIFY_TOKEN. - 8.8 has no prefix, so it resolves against
APIFY_TOKEN.
From 8.10, a secret only resolves in a field that references it directly in the deployed BPMN. Type {{secrets.APIFY_TOKEN}} into the Apify API token field itself; a placeholder passed in through a process variable no longer resolves. See the Camunda 8.10 announcements.
Add the matching -e flag to your docker run (or the equivalent secret in Compose/Helm). For the full version matrix and how to customize the prefix, see COMPATIBILITY.md.
Bake the JAR into a custom image for production
For production, build a self-contained image instead of mounting the JAR at runtime (immutable, versioned, and registry-friendly for Kubernetes/Helm):
FROM camunda/connectors-bundle:8.9.4
COPY apify-camunda-connector-<version>-c8.9.jar /opt/custom/connector.jar
Build and push it (docker build -t <your-registry>/apify-connectors:<tag> .), then reference that image as your connectors runtime. Configuration (cluster connection, secrets) stays external via environment variables - do not bake tokens or credentials into the image.
See Host custom connectors and Use connectors in hybrid mode for the full configuration reference (scopes, alternate auth modes, Helm charts).
Make the runtime publicly reachable
The connectors runtime must be reachable from the public internet so Apify can deliver webhook events to it.
- Production: expose the runtime through your ingress, reverse proxy, or load balancer with a stable HTTPS URL.
- Local development: use a tunneling tool like ngrok pointed at the host port you published (e.g.
ngrok http 8086for the-p 8086:8080mapping above, not the container's internal8080).
Whichever address you choose, paste it into the Camunda webhook URL field on each inbound template. The connector takes care of registering and removing the Apify-side webhook automatically on BPMN deploy and undeploy. See Configure the Camunda webhook URL below for more on this field.
Outbound connector
The Apify Outbound Connector lets your BPMN process invoke operations on Apify. It supports the following operations:
- Run Actor
- Run task
- Web Fetch
- Get dataset items
- Get key-value store record
- Scrape single URL (deprecated)
To learn where to find the Actor, task, or dataset IDs in Apify Console, see Find resource IDs.
Actions
A leading = in a value denotes a Friendly Enough Expression Language (FEEL) expression. For example, =runResult.data.id means "evaluate the FEEL expression runResult.data.id".
Run Actor
Start a new execution of an Actor.
| Setting | Description |
|---|---|
| Operation | Select Run Actor |
| Actor | The Actor name, e.g. apify/web-scraper (IDs also work; see Find Actor and task identifiers) |
| Input Body | (Optional) JSON input configuration for the run (e.g. ={ "message": "Hello from Camunda!" }) |
| Wait for Finish | true (Synchronous) or false (Asynchronous) |
| Timeout (seconds) | (Optional) Maximum duration for the run |
| Memory (MB) | (Optional) Memory allocation; one of 128, 256, 512, 1024, 2048, 4096, 8192, 16384, or 32768 MB |
| Build tag | (Optional) Build tag to use (defaults to the Actor's default build) |
Wait for Finish options:
true(Synchronous): The process waits until the Actor run completes. Use for short-running tasks.false(Asynchronous): The process starts the run and immediately moves to the next step. Use for long-running scrapes or with intermediate catch events (see Async execution with parallel gateway for the full pattern).
Run task
Execute a saved Actor task.
| Setting | Description |
|---|---|
| Operation | Select Run task |
| Task | The task name or ID (e.g. username/my-task or abc123DEF456) |
| Input Override | (Optional) JSON to override the task's saved input |
| Wait for Finish | true (Synchronous) or false (Asynchronous) |
| Timeout (seconds) | (Optional) Maximum duration |
| Memory (MB) | (Optional) Memory allocation; one of 128, 256, 512, 1024, 2048, 4096, 8192, 16384, or 32768 MB |
| Build tag | (Optional) Build tag to use (defaults to the task's default build) |
Web Fetch
Fetch a single web page, PDF, or file in one request and get its content in the formats you choose. The operation calls the Web Fetch Actor, which gets past bot protection and answers directly, without a run to wait for. To crawl a list of pages or a whole website, use Run Actor with Website Content Crawler.
| Setting | Description |
|---|---|
| Operation | Select Web Fetch |
| URL | The full URL to fetch, including http:// or https:// (e.g. https://example.com) |
| Formats | (Optional) Comma-separated list of output formats: markdown, html, text, links, raw (default: markdown). Use raw for images and other files, which come back base64-encoded. Clear the field to let Web Fetch pick a format from the content type |
| Custom headers | (Optional) HTTP headers that Web Fetch sends to the target site, as a JSON object (e.g. ={"Accept-Language": "fr-FR"}). They are not used to sign in to Apify |
The response holds the requested url, a fetch object with the target page's httpStatusCode and content type, page metadata, and one field per requested format. With the Result Variable fetchResult, read the content with =fetchResult.data.markdown.
A page that answers with an error status such as 404 still comes back as content, so check fetch.httpStatusCode. The task fails only when Web Fetch can't fetch the page. Apify bills each fetch, so the connector sends exactly one request per attempt. The Retries setting still applies on top of that: set it to 0 if Camunda shouldn't repeat a failed fetch.
Get dataset items
Retrieve the results of an Actor run. Typically used after a Run Actor task has completed; see Async execution with parallel gateway for the recommended end-to-end flow.
| Setting | Description |
|---|---|
| Operation | Select Get dataset items |
| Dataset | The dataset ID (use a variable from a previous run, e.g. =runResult.data.defaultDatasetId) |
| Offset | (Optional) Number of items to skip from the beginning (default: 0) |
| Limit | (Optional) Maximum number of items to return (default: no limit) |
Get key-value store record
Fetch a specific record from a key-value store.
| Setting | Description |
|---|---|
| Operation | Select Get key-value store record |
| Key-Value Store | The store ID (e.g. =runResult.data.defaultKeyValueStoreId) |
| Key | The record key to retrieve (e.g. OUTPUT) |
Scrape single URL
Scrape single URL is deprecated. Use Web Fetch instead. Existing processes keep working until a future release removes the operation.
The operation scrapes a webpage using one of Apify's standard crawlers.
| Setting | Description |
|---|---|
| Operation | Select Scrape single URL (deprecated) |
| URL | The full URL to scrape (e.g. https://example.com) |
| Crawler Type | Cheerio (Raw HTTP) (lightweight), Adaptive, or Firefox (Headless Browser) |
Output mapping
Each outbound operation returns a JSON object within a data envelope.
- Result Variable: Use this field (e.g.
runResult) to store the entire JSON response as a process variable. - Result Expression: Optionally, provide a FEEL expression to extract and map specific fields from the response to process variables.
Use this to choose the entire response object or to extract only the specific data needed for later process steps.
Example: To map the run ID and dataset ID from the response to distinct process variables, use the following Result Expression:
= { runId: response.data.id, datasetId: response.data.defaultDatasetId }
Each key of the expression becomes its own process variable. If you set both fields, Camunda stores both: the full response in the Result Variable and the mapped keys next to it.
Keep large responses out of the process. Camunda limits a process instance's payload to 4 MB and recommends 1 MB or less of variables (see Variable size limitation). For Web Fetch and Get dataset items, which can return large content, leave Result Variable empty and map only the fields you need, for example ={ content: response.data.markdown, status: response.data.fetch.httpStatusCode }.
Errors and retries
All outbound operations support error handling and automatic retries. These fields appear in the Modeler under the Error handling and Retries groups.
| Setting | Description |
|---|---|
| Error Expression | (Optional) A FEEL expression to handle errors (e.g. if error.code = "ACTOR_NOT_FOUND" then null else error) |
| Retries | Number of retry attempts (default: 3) |
| Retry backoff | ISO-8601 duration to wait between retries (default: PT0S, no delay; e.g. PT5S for 5 seconds) |
The connector distinguishes user-input errors from transient errors automatically. Input problems (HTTP 4xx from Apify, such as an invalid Actor ID or malformed input) are surfaced as input incidents and are not retried; the message states what to fix. Transient problems (HTTP 5xx, rate limiting, or network failures) are retried according to the Retries and Retry backoff settings above.
Inbound connectors
Inbound connectors enable Apify to start or resume your Camunda processes via webhooks.
- The connector receives webhooks whenever a run reaches a terminal status (
SUCCEEDED,FAILED,TIMED-OUT, orABORTED). - Activation Condition: Use this optional filter to specify which events should actually trigger the connector.
- Compatibility: Inbound connectors work in Self-Managed and Hybrid setups (your connectors runtime hosts the Apify code; see Installation).
See Configure the Camunda webhook URL for one-time setup instructions. For end-to-end examples, refer to Usage patterns.
Configure the Camunda webhook URL
When an Actor or task run reaches a terminal status, Apify needs to know where to send (POST) the event data. The destination is your Camunda cluster's inbound webhook endpoint.
The Camunda Connector SDK doesn't expose the runtime's callback address, so you provide it.
To set it up:
- Provide the base URL: In each BPMN template, fill in the Camunda webhook URL field with the base URL of your connector's endpoint.
- Register the callback automatically: When you deploy the process, the connector appends
/inbound/{webhookId}to your base URL and registers this full callback URL with Apify.
Apify then delivers terminal event webhooks to your Camunda processes through this registered URL.
Find the URL
The URL is the public address of your connectors runtime - the one hosting the Apify JAR (see Installation). Apify POSTs event payloads to that URL.
Self-Managed or Hybrid: Use the public URL of your connectors-runtime reverse proxy or ingress (the host serving the /inbound/* endpoints). If you set a contextPath in your Helm chart or deployment config, include it in the URL. See Use connectors in hybrid mode for hybrid setup details.
Local development: Use a tunneling tool such as ngrok pointed at the host port you published for the runtime container (e.g. ngrok http 8086 for a -p 8086:8080 mapping), then paste the public tunnel URL into the field.
The Webhooks tab in Camunda Web Modeler shows the URL of Camunda's SaaS-managed connectors runtime - which does not host the Apify connector code. Your self-hosted runtime does. Use your own runtime's public address in the Camunda webhook URL field, not the URL the Webhooks tab displays.
Reuse the URL across BPMNs
If you build several BPMNs on the same Camunda cluster, store the base URL as a Camunda Secret and reference it with {{secrets.CAMUNDA_WEBHOOK_URL}} in each template.
The inbound endpoint does not yet cryptographically verify that incoming requests come from Apify. Protection relies on the unique webhook URL, which is not publicly discoverable. This protects against open-internet attacks but not insider threats.
Mitigations for sensitive workflows:
- Use the Activation Condition to filter which events trigger your process.
- Use correlation keys to constrain accepted events.
- Validate data from the webhook payload before acting on it.
For the full threat model and planned fix, see the connector's security policy.
Correlation keys
Inbound connectors that resume an in-flight process - message start event, intermediate catch event, and boundary event - use correlation keys to route incoming webhooks to the correct process instance.
A correlation key is a value present in both:
- A process variable (typically:
runResult.data.idon the process side) - The webhook payload (typically:
connectorData.runIdon the payload side)
The two values must match exactly. If they do not, the event is silently ignored.
Common fields
All inbound connectors share these common fields:
| Setting | Description |
|---|---|
| Apify API token | Your Apify API token (see Authentication) |
| Camunda webhook URL | Base URL of your Camunda cluster's webhook endpoint (the connector appends /inbound/{webhookId} to register a webhook with Apify; see Configure the Camunda webhook URL) |
| Resource Type | Actor or Task |
| Actor / Task | The Actor or task name to monitor, e.g. apify/web-scraper (the field label changes based on the selected Resource Type; IDs also work, see Find Actor and task identifiers) |
| Activation Condition | (Optional) FEEL expression to filter events (e.g. =connectorData.status = "SUCCEEDED"; leave empty to process all events) |
| Result Variable | (Optional) Variable name to store the webhook payload |
| Result Expression | (Optional) FEEL expression to transform the data (e.g. ={ result: connectorData }) |
Activation condition
The Activation Condition is an optional FEEL expression that filters which incoming webhook events the connector reacts to. If you set it, the connector evaluates the expression for each event:
- If the expression evaluates to
true, the connector is triggered (starting, resuming, or interrupting a process, depending on the inbound type). - If the expression evaluates to
false, the event is silently ignored - no process is started or resumed, and no correlation attempt occurs.
This is especially useful if you are subscribed to all event types from an Actor or task, but only want your workflow to react to specific outcomes (for example, only when a run succeeds or fails).
| Expression | Effect |
|---|---|
| (empty) | All events trigger the connector (default) |
=connectorData.status = "SUCCEEDED" | Only successful runs trigger the connector |
=connectorData.status != "ABORTED" | All events except aborted runs trigger the connector |
=connectorData.eventType = "ACTOR.RUN.FAILED" or connectorData.eventType = "ACTOR.RUN.TIMED_OUT" | Only failures and timeouts trigger the connector |
The activation condition expression can access all fields of the connectorData object, as detailed in the Webhook payload structure. You can filter on any property, such as:
statuseventTypeactorIdrunId
For comprehensive details on webhook dispatch events and available fields, refer to the Apify client documentation:
Start event
Use the Apify Start Event Connector to begin a new process instance when a specific event occurs in Apify (e.g. "Run Succeeded"). This is the simplest inbound connector. Each incoming webhook event creates a new top-level process instance.

When to use:
- Trigger a workflow based on an external event (e.g. "Every time this daily scrape finishes, start a review process")
Configuration: Uses the common inbound fields listed above. No additional fields are required.
Message start event
Use the Apify Message Start Event Connector to start a process instance through message correlation. Unlike the plain start event, this variant uses Camunda's message correlation mechanism, which prevents duplicate instances for the same correlation key and supports starting embedded subprocesses.

When to use:
- You need to prevent duplicate process instances for the same run (using correlation keys).
- You want to start an embedded subprocess from an Apify event.
Configuration: Uses the common inbound fields, plus:
| Setting | Description |
|---|---|
| Subprocess Correlation Required | Select Correlation not required (default) or Correlation required (when set to required, the Correlation Key fields become visible; needed for event-based subprocess message start events) |
| Correlation Key (Process) | (Shown when correlation is required) FEEL expression for the correlation key from process variables (e.g. =previousEventResponse.data.id) |
| Correlation Key (Payload) | (Shown when correlation is required) FEEL expression to extract the correlation key from the incoming webhook (e.g. =connectorData.runId) |
| Message ID Expression | (Optional) Expression to extract a unique ID from the webhook payload for deduplication (e.g. =connectorData.eventData.actorRunId); Camunda uses this ID to deduplicate messages, so a webhook with the same Message ID arriving twice is silently ignored |
| Message TTL | (Optional) Time-to-live for the message in the broker as an ISO-8601 duration (e.g. PT1H for 1 hour) |

Intermediate catch event
Use the Apify Intermediate Catch Event Connector to pause a running process and wait for a callback from Apify. The process resumes when a matching webhook arrives, routed via correlation keys.

When to use:
- Run long-running Actors asynchronously without blocking process engine resources - see Async execution with parallel gateway for the full implementation
- Run tasks in parallel while waiting for a scrape to complete
Configuration: Uses the common inbound fields, plus:
| Setting | Description |
|---|---|
| Correlation Key (Process) | FEEL expression for the correlation key from process variables (e.g. =runResult.data.id) |
| Correlation Key (Payload) | FEEL expression to extract the correlation key from the incoming webhook (e.g. =connectorData.runId) |
| Message ID Expression | (Optional) Expression to extract a unique ID from the webhook payload for deduplication |
| Message TTL | (Optional) Time-to-live for the message in the broker as an ISO-8601 duration (e.g. PT1H) |
Boundary event
The Apify Boundary Event Connector allows your Camunda process to respond to Apify events while an activity (such as a user task or subprocess) is still running.
A boundary event is attached to a specific activity and fires when the configured webhook event arrives from Apify.
- Interrupting boundary event: Terminates the attached activity when triggered.
- Non-interrupting boundary event: Lets the attached activity continue, while a parallel process path is started.
Example use cases:
- React to a specific Apify run completion, failure, or timeout during a long-running task
- Implement timeout or fallback logic (e.g. take an alternative path if a scrape fails)
When to use:
- Cancel or redirect a running activity when an Apify run completes, fails, or times out - see Boundary event for runtime reactions for interrupting and non-interrupting examples
- Implement timeout or fallback logic (e.g. if a scrape fails, take an alternative path)
Configuration: Same as the intermediate catch event (common inbound fields plus Correlation Keys, Message ID Expression, and Message TTL). Additionally, choose whether the boundary event is interrupting or non-interrupting.


Set up your first process
Follow this walkthrough to create and run your first outbound connector process in Camunda.
Apify Connectors are packaged as element templates (JSON files defining the connector's form fields in the Modeler).
- There is no in-product catalog; instead, upload these templates once per project.
- After uploading, the connectors appear as service tasks and event types in your BPMN palette.
-
Create a new project in your Camunda Modeler.

-
Upload the outbound connector template to your project.

-
Select Publish > Publish to project.

-
Create a new BPMN diagram.

-
Design a process using the Apify Connector as a service task.

-
Set the connector input variables and run the process. For a quick smoke test, use these values:
Field Value Apify API token Your Apify API token Operation Run ActorActor apify/hello-worldInput Body (Optional) ={ "message": "Hello from Camunda!" }Wait for Finish trueThe process should complete in approximately 30 seconds.

-
Find the process in Camunda Operate. By default, Operate shows only running processes - switch to the Finished filter to see completed instances.

-
Verify the process result in Camunda Operate.

This walkthrough is a synchronous smoke test. Real workflows typically involve long-running Actors or webhook-triggered processes. See Usage patterns for async execution and runtime reactions.
Understand the outbound response
Key fields from the Run Actor and Run task responses that you reference in subsequent process steps:
| Field | Example FEEL expression | Description |
|---|---|---|
id | =runResult.data.id | The run ID (used for correlation in inbound events) |
status | =runResult.data.status | Run status (RUNNING, SUCCEEDED, FAILED, etc.) |
defaultDatasetId | =runResult.data.defaultDatasetId | Dataset ID (pass to Get dataset items) |
defaultKeyValueStoreId | =runResult.data.defaultKeyValueStoreId | Key-value store ID (pass to Get key-value store record) |
For the full response schema, see:
- Run Actor API: response for Run Actor
- Run task API: response for Run task
Deploy vs play mode
When your process is ready, you can run it in three ways:
| Mode | Webhooks | Best for |
|---|---|---|
| Play mode | Temporary (deleted after run) | Outbound flows, intermediate/boundary inbound events |
| Deploy (without Run) | Persistent (keep listening) | Inbound start events - deploy first, then trigger from Apify |
| Deploy & Run | Persistent | Flows starting with outbound steps (first instance runs immediately) |
See Usage patterns for examples of each event type in action.
Play and Deploy & Run modes start the process immediately - they do not wait for an Apify webhook.
- If your flow starts with a start event or message start event, the inbound payload is not received.
- Any process variable intended to be populated from the webhook (via a Result Variable or Result Expression) will be undefined, causing downstream FEEL expressions to fail.
For flows that start with an inbound event, use Deploy (without Run), then trigger the process from Apify so the webhook payload arrives and variables are set.
Run a process in play mode
In Web Modeler, switch to the Play tab and click Start instance with cached data. Inspect the path and variables in the Instance History and Variables panels. For details and saved scenarios, see Play your process in the Camunda docs.

Usage patterns
Trigger a workflow on Actor run completion
Use a start event when an Apify run should kick off a fresh Camunda process. Each terminal event on the Actor (success, failure, abort) creates a new process instance - no correlation needed, since there is no existing process to resume.
When to use:
- A scheduled Actor run should trigger a downstream review, ETL, or notification workflow.
- Each Apify event should produce an independent process instance (no deduplication needed).
- The Camunda process does not exist before the webhook arrives.
Steps:
-
Configure the Apify Start Event Connector:
- Set Resource Type to
ActororTask - Set Actor / Task to the scheduled run's resource
- Use Activation Condition to filter events (e.g.
=connectorData.status = "SUCCEEDED"to react to successes only) - Save the payload to a result variable for use downstream (e.g.
runResult)
- Set Resource Type to
-
In the process body, use
runResult.connectorData.defaultDatasetIdto fetch dataset items, post to Slack, write to a database, or hand off to other services. -
Deploy the process without running it, then trigger it from Apify - see Deploy vs play mode.
If you need deduplication (e.g. to avoid double-processing an event that fires twice), use the message start event instead.
Async execution with parallel gateway
This is the recommended pattern for long-running scrapes. It prevents timeout issues and allows other tasks while waiting.
Steps:
-
Start the run asynchronously:
- Select
Run ActororRun task - Set Wait for Finish to
false - Save the response to a result variable (e.g.
runResult)
- Select
-
Add a parallel gateway (fork) to split the flow immediately after the run starts.
-
Configure the Apify Intermediate Catch Event:
- Set Correlation Key (Process) to
=runResult.data.id - Set Correlation Key (Payload) to
=connectorData.runId
- Set Correlation Key (Process) to
-
Add a parallel gateway (join) to merge the branches. The process continues only when the webhook is received.
-
Configure Get dataset items:
- Set Dataset to
=runResult.data.defaultDatasetId
- Set Dataset to
Boundary event for runtime reactions
A boundary event attaches directly to an activity (task or subprocess) and fires when an Apify webhook arrives while that activity is still running. Unlike the async execution pattern above, the boundary event does not wait for the attached activity to finish. It interrupts or runs alongside it.
- Interrupting boundary event: Cancel a running activity when an external signal arrives (e.g. abort a long-running scrape when a validation check fails or times out).
- Non-interrupting boundary event: Spawn a parallel path without stopping the activity (e.g. send a progress notification while a long-running scrape continues).
Example flow (interrupting):
If the async Actor run fails while the large scrape is still running, the boundary event interrupts the scrape and redirects the flow to a failure-handling path.
If you need the run results (dataset, key-value store) after the Apify event, use the Async execution with parallel gateway pattern instead. The boundary event pattern is best when you want to react to an event (failure, timeout, status change) rather than collect its output.
Reference
Find Actor and task identifiers
The connector accepts multiple formats for Actor and task identifiers:
| Format | Example | Notes |
|---|---|---|
| Slash notation (recommended) | apify/website-content-crawler | Easiest to read and copy from URLs |
| Tilde notation | apify~website-content-crawler | Also accepted |
| Actor ID | abcd1234 | Legacy format, still works |
Use slash notation
Find the Actor or task identifier in either of these locations:
- URL path: From
apify.com/compass/crawler-google-places, usecompass/crawler-google-places. - Actor page: Listed under the Actor name on the Actor detail page.
Actor IDs in dynamic workflows
Use names for identifiers you type by hand. In dynamic workflows the identifier often comes from previous step data - a run result or webhook payload (e.g. connectorData.actorId). That value is an ID, which the connector still accepts and resolves automatically.
Find dataset IDs
For datasets, you still need the ID. Find it in the Storage section or in run details.
Common expressions
The connector templates accept two distinct syntaxes that look similar but are evaluated at different stages by different components: FEEL expressions and secret placeholders.
FEEL expressions
FEEL expressions (prefix: =) are evaluated by the Zeebe engine before the connector runs. The leading = tells the engine to parse the field as FEEL and resolve it to a concrete value. Use FEEL to reference process variables, filter events, or build output mappings.
| FEEL expression | Use case |
|---|---|
=runResult.data.id | Accessing the run ID from a response |
=runResult.data.defaultDatasetId | Accessing the default dataset ID |
=connectorData.status | Reading the status from inbound webhook payload |
=connectorData.runId | Reading the run ID from inbound webhook payload |
Secret placeholders
Secret placeholders (syntax: {{secrets.NAME}}) are not FEEL. The engine passes them through as literal strings and the connector runtime substitutes them at execution time, just before the outbound HTTP call. This keeps the secret value out of process variables, audit logs, and incident messages. Use them anywhere a credential or sensitive URL belongs - directly in plain text fields (no = prefix), or inside a FEEL string wrapped in quotes (e.g. ="Bearer " + "{{secrets.APIFY_TOKEN}}").
| Placeholder | Use case |
|---|---|
{{secrets.APIFY_TOKEN}} | Reference a stored Apify API token |
{{secrets.CAMUNDA_WEBHOOK_URL}} | Reference a stored Camunda webhook URL |
See Manage Secrets for how to create and store secrets in your Camunda cluster.
Webhook payload structure
When an Apify inbound connector is triggered, it receives a payload with event and run information.
Top-level structure:
connectorData: Simplified object with the most important fieldsrequest: The raw webhook request including headers and bodyconnectorData.resource: The full Actor run object
{
"connectorData": {
"eventType": "ACTOR.RUN.SUCCEEDED",
"userId": "user1234",
"createdAt": "2026-01-03T12:00:00.000Z",
"runId": "efgh5678",
"status": "SUCCEEDED",
"actorId": "abcd1234",
"defaultDatasetId": "d9E0f1G2h3I4j5K6",
"eventData": {
"actorId": "abcd1234",
"actorRunId": "efgh5678"
},
"resource": {
"id": "efgh5678",
"status": "SUCCEEDED",
"stats": {},
"options": {},
"usage": {}
}
},
"request": {
"body": {
"eventType": "ACTOR.RUN.SUCCEEDED",
"resource": {}
},
"headers": {}
}
}
Event types and statuses
Event types (eventType):
ACTOR.RUN.SUCCEEDED: Run finished with statusSUCCEEDEDACTOR.RUN.FAILED: Run finished with statusFAILEDACTOR.RUN.ABORTED: Run finished with statusABORTEDACTOR.RUN.TIMED_OUT: Run finished with statusTIMED-OUT
Run statuses (status):
SUCCEEDEDFAILEDABORTEDTIMED-OUT
The event type uses an underscore (TIMED_OUT) while the run status uses a hyphen (TIMED-OUT). This is how the Apify API returns these values.
Troubleshooting
| Issue | Solution |
|---|---|
| Webhook not triggering | Ensure you have deployed the process. For start events, deploying automatically creates the webhook in Apify. Check the Integrations tab of your Actor in Apify Console to verify the webhook exists. |
| Process not visible in Camunda Operate | Operate hides completed processes by default. Switch to the Finished filter to see them. |
| Process stuck at intermediate event | Check your Correlation Keys. The value in the process variable must exactly match the value in the webhook payload. Use Camunda Operate to inspect variable values and compare with the connectorData.runId in the connector runtime logs. |
401 Unauthorized | Check your Apify API token. If necessary, create a new token in Apify Console. On Camunda 8.10, also check that the token field contains {{secrets.APIFY_TOKEN}} itself: a placeholder passed through a process variable does not resolve. |
Next steps
- Schedule Actor runs that feed your Camunda processes - see Schedules
- Trigger Camunda processes from other Apify events - see Webhooks
- Explore other workflow integrations - see Integrations
If you have any questions or need help, reach out on the Apify developer community on Discord.