Integrations
Sync tasks from your existing tools into Fragment.
Fragment works best when it’s connected to the source of truth, your back-office.
Fragment only needs to retrieve the backlog of tasks with metadata.
Overview
We offer multiple options to sync with your data sources:
- Fragment’s direct integration with existing tools: Hubspot, Zendesk, Intercom, ComplyAdvantage…
We have an existing integration with those tools, and can mirror the data from there with your API key. - Custom integration with your in-house tools
If you have a custom back-office, you can create a user for Fragment (ex:acme@checkfragment.com
) and we will take care of mirroring your task backlog on Fragment. - Direct integration through our API: we grant you access to Fragment’s API.
- Direct integration using Zapier, n8n, Make or similar tools: a Zapier workflow can be configured to push tasks to the Fragment API.
Options 1 and 2 don’t require any development work on your side.
Options 3 and 4 requires more upfront work, but is pretty straightforward and more robust.
Let’s dive into each of those possible integration methods.
Option 1: direct integration with public tools (Hubspot example)
Please reach out if you want to integrate one of your existing 3rd party tools.
We currently have integrations with Hubspot, Zendesk, Intercom, ComplyAdvantage and can easily add new ones on demand.
Here we’ll focus with the Hubspot integration as an example.
There are 2 options to integrate with HubSpot
Option 1 (no code) Use Workflows + Zapier
- Connect Zapier to HubSpot
- Create a workflow on HubSpot that sends a trigger on Zapier
- Configure your Zapier to send tasks to Fragment (see above)
Option 2 (native) Use Fragment’s native HubSpot integration
-
Create Private app
-
Go to settings > Integrations > Private Apps
-
Click on “create a private App”, pick the name
Fragment
-
Configure the following scopes
d. Share the access token with us
e. We activate the sync on our side. It will poll your HubSpot to get all recent changes every minute.
-
Comparison between HubSpot integrations
1. No Code (Zapier) | 2. Native | |
---|---|---|
Update frequency | instant | 1 minute |
HubSpot Entities | all | tasks |
Webhooks* | (yes)** | yes |
Watch for deletion | ? | partial |
*Webhooks : task status changes (ex: assigned, done) are pushed to HubSpot
**(yes) : requires to configure the tasks payload with integration info, see with us
Option 2: Custom integration with your in-house tools
If you have a custom back-office, you can create a user for Fragment (ex: olivier@checkfragment.com
) and we will take care of mirroring your task backlog on Fragment.
Here is how it typically works:
- Create a user for Fragment with the right permissions (read the backlog).
- Every X minute (configurable, 5min by default), we refresh your backlog to fetch the open tasks.
- We close tasks not in the backlog anymore, and create new ones.
- Operators go through Fragment to complete tasks on their custom back-office.
There can be edge cases or custom work here, so please reach out to us if you need a custom integration.
Option 3: Direct integration through our API
This method is the most versatile.
To integrate via the API, follow these steps
- Locate the part of your case management system (Backend? Automation platform like Zapier?) that creates the tasks
- Format the data into a JSON that respects the Task Data Model. You usually need to specify the due date of the task (
due_at
), and somefields
to get started (including theurl
). - Make a PATCH request to the
tasks/
endpoint
An example in Python would be
Option 4: direct integration through no-code tools
Zapier
There are 2 options to integrate with Zapier.
- The first option is to use the Custom Request Webhook via Zapier.
- The second option is to use the
Code
Action from Zapier (available in Python and JavaScript flavors).
Here is an example using the Code
action (option 2) : from Google sheet → Fragment
Let’s say you have a Google spreadsheet named zapier-demo with one sheet named Sheet 1.
- Create new Zap
- Add a Google Sheet Trigger on New or Updated Row.
- Add a Code Step. Configure the input data and make an HTTP API request.
-
See code
-
- Navigate to the Fragment dashboard, you should now see the tasks !
Make
The best option to integrate with Make is to create an HTTP action.
Let’s see an example : from Google sheet → Fragment
Let’s say you have a Google spreadsheet named make-demo with one sheet named Sheet 1.
-
Create a
Search Rows
Google Sheets trigger -
Add a
JSON
action to format the flat data into a proper JSON. This action enables you to define a schema for your data and is thus robust.In our case, let’s adopt a simple data structure that fits the Task Data Model
-
Add an HTTP action node. Make sure to
-
Select the
PATCH
method -
Enter the header
x-api-key
for authentication -
Fill the request content by selecting the output of the JSON step
-
-
Navigate to the Fragment dashboard, you should now see the tasks
n8n
The best way to integrate with n8n is to use the HTTP request node.
Let’s see an example : from Google sheet → Fragment
Let’s say you have a Google spreadsheet named make-demo with one sheet named Sheet 1.
-
Create a Google Sheet Trigger on
rowAdded
-
Transform the data with a Code block (example below)
-
See Code (Javascript)
-
See Screenshot
-
-
Add an HTTP node
Make sure to
- Select method
PATCH
- Include the header
x-api-key
- Retrieve the body from the previous step (already formatted) with
{{ $json }}
- Select method
Pro Tip to debug on n8n : open View > Developer Tools > Console. You should see the requests made by the HTTP node.
-
Navigate to the Fragment dashboard, you should now see the tasks