Zendesk Chat
This page contains the setup guide and reference information for the Zendesk Chat source connector.
Prerequisites
- A Zendesk Account with permission to access data from accounts you want to sync.
- (Airbyte Open Source) An Access Token (https://developer.zendesk.com/rest_api/docs/chat/auth). We recommend creating a restricted, read-only key specifically for Airbyte access to allow you to control which resources Airbyte should be able to access.
Setup guide
For Airbyte Cloud:
- Log into your Airbyte Cloud account.
- Click Sources and then click + New source.
- On the Set up the source page, select Zendesk Chat from the Source type dropdown.
- Enter the name for the Zendesk Chat connector.
- If you access Zendesk Chat from a Zendesk subdomain, enter the Subdomain.
- For Start Date, enter the date in
YYYY-MM-DDTHH:mm:ssZ
format. The data added on and after this date will be replicated. - Click Authenticate your Zendesk Chat account. Log in and authorize your Zendesk Chat account.
- Click Set up source.
For Airbyte Open Source:
- Navigate to the Airbyte Open Source dashboard.
- Click Sources and then click + New source.
- On the Set up the source page, select Zendesk Chat from the Source type dropdown.
- Enter the name for the Zendesk Chat connector.
- If you access Zendesk Chat from a Zendesk subdomain, enter the Subdomain.
- For Start Date, enter the date in
YYYY-MM-DDTHH:mm:ssZ
format. The data added on and after this date will be replicated. - For Authorization Method, select Access Token from the dropdown and enter your Zendesk access token.
- Click Set up source.
Supported sync modes
The Zendesk Chat source connector supports the following sync modes:
Supported Streams
- Accounts
- Agents (Incremental)
- Agent Timelines (Incremental)
- Chats
- Shortcuts
- Triggers
- Bans (Incremental)
- Departments
- Goals
- Skills
- Roles
- Routing Settings
Performance considerations
The connector is restricted by Zendesk's requests limitation.
Data type map
Integration Type | Airbyte Type |
---|---|
string | string |
number | number |
array | array |
object | object |
Build instructions
Build your own connector image
This connector is built using our dynamic built process.
The base image used to build it is defined within the metadata.yaml file under the connectorBuildOptions
.
The build logic is defined using Dagger here.
It does not rely on a Dockerfile.
If you would like to patch our connector and build your own a simple approach would be:
- Create your own Dockerfile based on the latest version of the connector image.
FROM airbyte/source-zendesk-chat:latest
COPY . ./airbyte/integration_code
RUN pip install ./airbyte/integration_code
# The entrypoint and default env vars are already set in the base image
# ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
# ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
Please use this as an example. This is not optimized.
- Build your image:
docker build -t airbyte/source-zendesk-chat:dev .
# Running the spec command against your patched connector
docker run airbyte/source-zendesk-chat:dev spec
Customizing our build process
When contributing on our connector you might need to customize the build process to add a system dependency or set an env var.
You can customize our build process by adding a build_customization.py
module to your connector.
This module should contain a pre_connector_install
and post_connector_install
async function that will mutate the base image and the connector container respectively.
It will be imported at runtime by our build process and the functions will be called if they exist.
Here is an example of a build_customization.py
module:
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
# Feel free to check the dagger documentation for more information on the Container object and its methods.
# https://dagger-io.readthedocs.io/en/sdk-python-v0.6.4/
from dagger import Container
async def pre_connector_install(base_image_container: Container) -> Container:
return await base_image_container.with_env_variable("MY_PRE_BUILD_ENV_VAR", "my_pre_build_env_var_value")
async def post_connector_install(connector_container: Container) -> Container:
return await connector_container.with_env_variable("MY_POST_BUILD_ENV_VAR", "my_post_build_env_var_value")
Changelog
Version | Date | Pull Request | Subject |
---|---|---|---|
0.2.1 | 2023-10-13 | 31377 | Use our base image and remove Dockerfile |
0.2.0 | 2023-10-11 | 30526 | Use the python connector base image, remove dockerfile and implement build_customization.py |
0.1.14 | 2023-02-10 | 24190 | Fix remove too high min/max from account stream |
0.1.13 | 2023-02-10 | 22819 | Specified date formatting in specification |
0.1.12 | 2023-01-27 | 22026 | Set AvailabilityStrategy for streams explicitly to None |
0.1.11 | 2022-10-18 | 17745 | Add Engagements Stream and fix infity looping |
0.1.10 | 2022-09-28 | 17326 | Migrate to per-stream states. |
0.1.9 | 2022-08-23 | 15879 | Corrected specification and stream schemas to support backward capability |
0.1.8 | 2022-06-28 | 13387 | Add state checkpoint to allow long runs |
0.1.7 | 2022-05-25 | 12883 | Pass timeout in request to prevent a stuck connection |
0.1.6 | 2021-12-15 | 7313 | Add support of OAuth 2.0 authentication. Fixed the issue with created_at can now be null for bans stream |
0.1.5 | 2021-12-06 | 8425 | Update title, description fields in spec |
0.1.4 | 2021-11-22 | 8166 | Make Chats stream incremental + add tests for all streams |
0.1.3 | 2021-10-21 | 7210 | Chats stream is only getting data from first page |
0.1.2 | 2021-08-17 | 5476 | Correct field unread to boolean type |
0.1.1 | 2021-06-09 | 3973 | Add AIRBYTE_ENTRYPOINT for Kubernetes support |
0.1.0 | 2021-05-03 | 3088 | Initial release |