This workflow corresponds to n8n.io template #7887 — we link there as the canonical source.
This workflow follows the Form Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"id": "c302f8e5-6bed-4b64-8d52-33eaa5fce86a",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
-336,
48
],
"parameters": {
"options": {},
"formTitle": "upload file",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "file",
"multipleFiles": false,
"requiredField": true
}
]
}
},
"typeVersion": 2.2
},
{
"id": "3cc12307-f5da-476a-811a-79920f20abf7",
"name": "Get Markdown",
"type": "n8n-nodes-base.httpRequest",
"position": [
336,
48
],
"parameters": {
"url": "={{ $json.request_check_url }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
},
"typeVersion": 4.2
},
{
"id": "ec9e9703-fb38-4ba5-97f6-a73bee7c47f7",
"name": "Send to Datalab API",
"type": "n8n-nodes-base.httpRequest",
"position": [
-112,
48
],
"parameters": {
"url": "https://www.datalab.to/api/v1/marker",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "max_pages",
"value": "4"
},
{
"name": "use_llm",
"value": "true"
},
{
"name": "output_format",
"value": "markdown"
},
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "file"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
},
"typeVersion": 4.2
},
{
"id": "542793bf-05c1-4c6c-b0e0-b087669f966c",
"name": "Set Fields",
"type": "n8n-nodes-base.set",
"position": [
560,
48
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "20280dbd-8188-4f5e-8e4e-74621d65d40a",
"name": "markdown",
"type": "string",
"value": "={{ $json.markdown }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "cb900de1-e4b1-488f-8a12-9946bb8466f6",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
112,
48
],
"parameters": {
"amount": 10
},
"typeVersion": 1.1
},
{
"id": "9fcdcaab-2041-4411-8ec1-10edfe29f1d6",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1424,
-32
],
"parameters": {
"width": 972,
"height": 564,
"content": ""
},
"typeVersion": 1
},
{
"id": "32550fd8-2570-4e42-b249-8d53288da00a",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
-32
],
"parameters": {
"width": 1200,
"height": 272,
"content": "## Convert Files to Markdown for LLM with Datalab.to"
},
"typeVersion": 1
},
{
"id": "f968189c-83c4-436c-91c6-dc0313ee4256",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
272
],
"parameters": {
"width": 1200,
"height": 256,
"content": "## Guide\nThis simple automation enables you to convert .doc, .pdf, .png, .jpg, and .webp files to markdown using datalab.to API. This is useful for llm workflows for ai processing. \n\nSetup \n- Sign up to datalab.to to get your api key. Get the free $5 credits by entering your payment method.\n- Set up a Generic Header with name \"X-API-Key\" and api key as the value. \n- Thats it you are good to go.\n\nLearn more on tweaking the body payload here; [api reference](https://www.datalab.to/redoc#operation/marker_api_v1_marker_post)"
},
"typeVersion": 1
},
{
"id": "883e4090-cb4f-4de6-bfc4-4c5c7ce85728",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
816,
-32
],
"parameters": {
"color": 6,
"width": 400,
"height": 416,
"content": "## Polling Confirmation Node\n\nYou can add this node after \"Get Markdown\" node to confirm if the get request worked or the doc is still being processed. If the outcome is \"*success*\" then proceed, if \"*failed*\" then plug that route to the wait node, to try again. You can also add more outcomes of this node to cover api call fails. If you are processing **larger files**, increase the wait time."
},
"typeVersion": 1
},
{
"id": "4f0c8ae8-e92e-419f-a609-d426db8321d8",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"disabled": true,
"position": [
832,
192
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "success",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "cbac06bd-0ee6-40ac-bad9-bdb0929ca0ad",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "complete"
}
]
},
"renameOutput": true
},
{
"outputKey": "failed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "bc2570f6-c9ec-4c4f-9a04-863be5fb1ced",
"operator": {
"type": "string",
"operation": "notEquals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "complete"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "33ec2be6-e49a-4973-b105-5db71fc2cf40",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
816,
400
],
"parameters": {
"color": 4,
"width": 400,
"height": 128,
"content": "## Wanna work with me?\n**Email**: joseph@uppfy.com\n**X/Twitter**: [@juppfy](https://x.com/juppfy)"
},
"typeVersion": 1
}
],
"connections": {
"Wait": {
"main": [
[
{
"node": "Get Markdown",
"type": "main",
"index": 0
}
]
]
},
"Get Markdown": {
"main": [
[
{
"node": "Set Fields",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Send to Datalab API",
"type": "main",
"index": 0
}
]
]
},
"Send to Datalab API": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpHeaderAuth
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This n8n workflow converts various file formats (.pdf, .doc, .png, .jpg, .webp) to clean markdown text using the datalab.to API. Perfect for AI agents, LLM processing, and RAG (Retrieval Augmented Generation) data preparation for vector databases. Trigger Node: Form trigger or…
Source: https://n8n.io/workflows/7887/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t
[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.
[](https://youtu.be/c7yCZhmMjtI)
N8n recently introduced folders and it has been a big improvement on workflow management on top of the tags.
This workflow automates the creation of press releases for music artists releasing a new single. Upload your MP3, fill in basic info, and receive a publication-ready press release saved as a Google Do