With the open source airbyte can you kick off dbt ...
# ask-ai
b
With the open source airbyte can you kick off dbt to run after a sync?
k
With open source Airbyte (Airbyte OSS), you cannot natively trigger dbt transformations directly after a sync within Airbyte itself. The built-in dbt integration for post-sync transformations is only available in Airbyte Cloud, not in the open source version. This is explicitly stated in the documentation: "Custom transformation is not available for Airbyte Open-Source" [Custom Transformations - Airbyte Docs](https://docs.airbyte.com/platform/using-airbyte/core-concepts#custom-transformations). However, you can achieve this workflow by using an external orchestrator such as Airflow, Dagster, or Prefect. These tools can be set up to trigger a dbt job after an Airbyte sync completes. This approach is commonly recommended for Airbyte OSS users who want to integrate dbt into their ELT pipelines [Github Issue: Self hosting Airbyte and DBT](https://github.com/airbytehq/airbyte/issues/53605), [The DAD Stack: Dagster-Airbyte-dbt](https://airbyte.com/tutorials/the-dad-stack), [Orchestrate ELT pipelines with Prefect, Airbyte and dbt](https://airbyte.com/tutorials/elt-pipeline-prefect-airbyte-dbt#step-5). In summary: - Airbyte OSS does not natively support triggering dbt after a sync. - You can use an external orchestrator (like Airflow, Dagster, or Prefect) to automate running dbt after Airbyte syncs.
b
Can the airbyte sync send a ebook to a service I can then use to kick off dbt? @kapa.ai
k
A message from kapa.ai
Yes, Airbyte OSS can send a webhook notification to any generic webhook service after a sync. This webhook can include a JSON payload with detailed information about the sync event (such as success or failure, connection ID, job ID, etc.). You can use this webhook to trigger downstream services, such as a function or orchestrator that then kicks off a dbt job. The webhook payload includes structured data, for example:
Copy code
json {     "data": {         "workspace": { "id": "...", "name": "...", "url": "..." },         "connection": { "id": "...", "name": "...", "url": "..." },         "source": { "id": "...", "name": "...", "url": "..." },         "destination": { "id": "...", "name": "...", "url": "..." },         "jobId": 9988,         "startedAt": "2024-01-01T00:00:00Z",         "finishedAt": "2024-01-01T01:00:00Z",         "bytesEmitted": 1000,         "bytesCommitted": 90,         "recordsEmitted": 89,         "recordsCommitted": 45,         "errorMessage": "Something failed",         "errorType": "config_error",         "errorOrigin": "source",         "bytesEmittedFormatted": "1000 B",         "bytesCommittedFormatted": "90 B",         "success": false,         "durationInSeconds": 3600,         "durationFormatted": "1 hours 0 min"     } }
You can configure Airbyte to send this webhook to a service you control (such as a serverless function, workflow orchestrator, or custom API endpoint). That service can then use the webhook data to determine when to trigger dbt or other downstream processes. This is a common pattern for integrating Airbyte OSS with dbt in the absence of native post-sync dbt triggers in OSSĀ [Configure Webhook Notification Settings](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-airbyte-cloud-notifications#configure-webhook-notification-settings). Note: Some notification types (like connection updates or repeated failures) only work for Slack and do not include a payload, but sync success/failure notifications do include the payload shown above. In summary: - Airbyte OSS can send a webhook after a sync. - The webhook contains detailed sync information. - You can use this webhook to trigger a service that then runs dbt or any other process you need.