Create a Custom Agent
curl --request POST \
--url https://be.datagol.ai/customAgents/api/v1 \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"uiMetadata": {
"capabilities": {
"models": {
"enabled": true,
"supportedModels": [
"gpt-5.2",
"vertex_ai/claude-opus-4-7",
"claude-sonnet-4-6",
"claude-haiku-4-5-20251001",
"o4-mini"
],
"defaultValue": "gpt-5.2"
},
"allowDownload": true,
"conversationFiles": {
"enabled": true
}
},
"style": {
"logo": {
"bgColor": "",
"textColor": ""
}
},
"input": {
"placeholder": "What is EBITDA? And How Its Calculated"
},
"bestFor": [],
"conversationStarters": [],
"logo": null
},
"configs": {
"mcpConfigs": [
{
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"id": 35,
"name": "New MCP Server",
"description": "",
"url": "Financial Sub Agent",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
},
{
"serverType": "WORKBOOK",
"name": "Install Metrics",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
],
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "753bd2d1-3426-41f2-b78d-a24a5a4cb0dd",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_customer.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_Order.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "aff24e82-564b-468a-9727-392a08f017bc",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_products.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "Install Metrics",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"type": "WORKSPACE_DOCUMENTS",
"sourceType": "BACKEND",
"data": {
"name": "Link_v2"
}
},
{
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"companyId": 1,
"userId": 371,
"type": "GOOGLE_DRIVE",
"name": "Mahi Changes Verifications",
"status": "ACTIVE",
"lastSyncAt": "2026-05-01T18:56:45.544+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": null,
"credentialId": 7219087,
"activeConfig": null,
"latestRun": {
"id": "036f1723-1b57-4e06-9295-17bb24fdbd58",
"connectorId": "bca6c483-9205-4724-81e3-f4340b79efbc",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58",
"startedAt": "2026-05-01T18:56:44.855+0000",
"finishedAt": "2026-05-01T18:56:45.543+0000",
"errorMessage": null,
"statsJson": {},
"checkpointJson": null
}
}
},
{
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"companyId": 1,
"userId": 588,
"type": "WEB",
"name": "DataGolTest",
"status": "ACTIVE",
"lastSyncAt": "2026-05-07T10:00:00.116+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": null,
"credentialId": null,
"activeConfig": null,
"latestRun": {
"id": "1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"connectorId": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"startedAt": "2026-05-07T09:58:14.174+0000",
"finishedAt": "2026-05-07T10:00:00.116+0000",
"errorMessage": null,
"statsJson": {
"total": 49,
"failed": 0,
"completed": 49
},
"checkpointJson": null
}
}
},
{
"id": "315",
"type": "CONNECTOR",
"sourceType": "AI"
}
],
"webSearchEnabled": true,
"skillIds": [
10,
11
]
},
"isPublished": false,
"prompt": "Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.",
"description": "This Agent Details you through the Complete financial related Data",
"name": "Financial Agent"
}
'import requests
url = "https://be.datagol.ai/customAgents/api/v1"
payload = {
"uiMetadata": {
"capabilities": {
"models": {
"enabled": True,
"supportedModels": ["gpt-5.2", "vertex_ai/claude-opus-4-7", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", "o4-mini"],
"defaultValue": "gpt-5.2"
},
"allowDownload": True,
"conversationFiles": { "enabled": True }
},
"style": { "logo": {
"bgColor": "",
"textColor": ""
} },
"input": { "placeholder": "What is EBITDA? And How Its Calculated" },
"bestFor": [],
"conversationStarters": [],
"logo": None
},
"configs": {
"mcpConfigs": [
{
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"id": 35,
"name": "New MCP Server",
"description": "",
"url": "Financial Sub Agent",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
},
{
"serverType": "WORKBOOK",
"name": "Install Metrics",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
],
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "753bd2d1-3426-41f2-b78d-a24a5a4cb0dd",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_customer.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_Order.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "aff24e82-564b-468a-9727-392a08f017bc",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_products.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "Install Metrics",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"type": "WORKSPACE_DOCUMENTS",
"sourceType": "BACKEND",
"data": { "name": "Link_v2" }
},
{
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"companyId": 1,
"userId": 371,
"type": "GOOGLE_DRIVE",
"name": "Mahi Changes Verifications",
"status": "ACTIVE",
"lastSyncAt": "2026-05-01T18:56:45.544+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": None,
"credentialId": 7219087,
"activeConfig": None,
"latestRun": {
"id": "036f1723-1b57-4e06-9295-17bb24fdbd58",
"connectorId": "bca6c483-9205-4724-81e3-f4340b79efbc",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58",
"startedAt": "2026-05-01T18:56:44.855+0000",
"finishedAt": "2026-05-01T18:56:45.543+0000",
"errorMessage": None,
"statsJson": {},
"checkpointJson": None
}
}
},
{
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"companyId": 1,
"userId": 588,
"type": "WEB",
"name": "DataGolTest",
"status": "ACTIVE",
"lastSyncAt": "2026-05-07T10:00:00.116+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": None,
"credentialId": None,
"activeConfig": None,
"latestRun": {
"id": "1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"connectorId": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"startedAt": "2026-05-07T09:58:14.174+0000",
"finishedAt": "2026-05-07T10:00:00.116+0000",
"errorMessage": None,
"statsJson": {
"total": 49,
"failed": 0,
"completed": 49
},
"checkpointJson": None
}
}
},
{
"id": "315",
"type": "CONNECTOR",
"sourceType": "AI"
}
],
"webSearchEnabled": True,
"skillIds": [10, 11]
},
"isPublished": False,
"prompt": "Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.",
"description": "This Agent Details you through the Complete financial related Data",
"name": "Financial Agent"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
uiMetadata: {
capabilities: {
models: {
enabled: true,
supportedModels: [
'gpt-5.2',
'vertex_ai/claude-opus-4-7',
'claude-sonnet-4-6',
'claude-haiku-4-5-20251001',
'o4-mini'
],
defaultValue: 'gpt-5.2'
},
allowDownload: true,
conversationFiles: {enabled: true}
},
style: {logo: {bgColor: '', textColor: ''}},
input: {placeholder: 'What is EBITDA? And How Its Calculated'},
bestFor: [],
conversationStarters: [],
logo: null
},
configs: {
mcpConfigs: [
{
id: 18,
name: 'Workspace MCP',
description: '',
url: 'https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>',
transport: 'streamable_http',
serverType: 'CUSTOM',
companyId: 1
},
{
id: 35,
name: 'New MCP Server',
description: '',
url: 'Financial Sub Agent',
transport: 'streamable_http',
serverType: 'CUSTOM',
companyId: 1
},
{
serverType: 'WORKBOOK',
name: 'dg_Order.csv',
description: '',
url: '',
transport: 'streamable_http',
data: {
id: 'ca45078d-ed26-4752-a7a7-4aed24af033c',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53'
}
},
{
serverType: 'WORKBOOK',
name: 'Install Metrics',
description: '',
url: '',
transport: 'streamable_http',
data: {
id: '3095f6c0-b399-4e0f-b367-7db38b0a8453',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53'
}
}
],
connectors: [
{
id: 'ec345675-06bf-4133-b8c3-f8fc1934b839',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_order_item.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '753bd2d1-3426-41f2-b78d-a24a5a4cb0dd',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_customer.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: 'ca45078d-ed26-4752-a7a7-4aed24af033c',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_Order.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: 'aff24e82-564b-468a-9727-392a08f017bc',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_products.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '3095f6c0-b399-4e0f-b367-7db38b0a8453',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'Install Metrics',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
type: 'WORKSPACE_DOCUMENTS',
sourceType: 'BACKEND',
data: {name: 'Link_v2'}
},
{
id: 'bca6c483-9205-4724-81e3-f4340b79efbc',
type: 'KNOWLEDGE_BASE',
sourceType: 'BACKEND',
data: {
id: 'bca6c483-9205-4724-81e3-f4340b79efbc',
companyId: 1,
userId: 371,
type: 'GOOGLE_DRIVE',
name: 'Mahi Changes Verifications',
status: 'ACTIVE',
lastSyncAt: '2026-05-01T18:56:45.544+0000',
lastSyncStatus: 'SUCCESS',
sourceId: null,
credentialId: 7219087,
activeConfig: null,
latestRun: {
id: '036f1723-1b57-4e06-9295-17bb24fdbd58',
connectorId: 'bca6c483-9205-4724-81e3-f4340b79efbc',
runType: 'INCREMENTAL',
status: 'SUCCESS',
temporalWorkflowId: 'kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58',
startedAt: '2026-05-01T18:56:44.855+0000',
finishedAt: '2026-05-01T18:56:45.543+0000',
errorMessage: null,
statsJson: {},
checkpointJson: null
}
}
},
{
id: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
type: 'KNOWLEDGE_BASE',
sourceType: 'BACKEND',
data: {
id: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
companyId: 1,
userId: 588,
type: 'WEB',
name: 'DataGolTest',
status: 'ACTIVE',
lastSyncAt: '2026-05-07T10:00:00.116+0000',
lastSyncStatus: 'SUCCESS',
sourceId: null,
credentialId: null,
activeConfig: null,
latestRun: {
id: '1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
connectorId: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
runType: 'INCREMENTAL',
status: 'SUCCESS',
temporalWorkflowId: 'kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
startedAt: '2026-05-07T09:58:14.174+0000',
finishedAt: '2026-05-07T10:00:00.116+0000',
errorMessage: null,
statsJson: {total: 49, failed: 0, completed: 49},
checkpointJson: null
}
}
},
{id: '315', type: 'CONNECTOR', sourceType: 'AI'}
],
webSearchEnabled: true,
skillIds: [10, 11]
},
isPublished: false,
prompt: 'Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.',
description: 'This Agent Details you through the Complete financial related Data',
name: 'Financial Agent'
})
};
fetch('https://be.datagol.ai/customAgents/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/customAgents/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'uiMetadata' => [
'capabilities' => [
'models' => [
'enabled' => true,
'supportedModels' => [
'gpt-5.2',
'vertex_ai/claude-opus-4-7',
'claude-sonnet-4-6',
'claude-haiku-4-5-20251001',
'o4-mini'
],
'defaultValue' => 'gpt-5.2'
],
'allowDownload' => true,
'conversationFiles' => [
'enabled' => true
]
],
'style' => [
'logo' => [
'bgColor' => '',
'textColor' => ''
]
],
'input' => [
'placeholder' => 'What is EBITDA? And How Its Calculated'
],
'bestFor' => [
],
'conversationStarters' => [
],
'logo' => null
],
'configs' => [
'mcpConfigs' => [
[
'id' => 18,
'name' => 'Workspace MCP',
'description' => '',
'url' => 'https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>',
'transport' => 'streamable_http',
'serverType' => 'CUSTOM',
'companyId' => 1
],
[
'id' => 35,
'name' => 'New MCP Server',
'description' => '',
'url' => 'Financial Sub Agent',
'transport' => 'streamable_http',
'serverType' => 'CUSTOM',
'companyId' => 1
],
[
'serverType' => 'WORKBOOK',
'name' => 'dg_Order.csv',
'description' => '',
'url' => '',
'transport' => 'streamable_http',
'data' => [
'id' => 'ca45078d-ed26-4752-a7a7-4aed24af033c',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53'
]
],
[
'serverType' => 'WORKBOOK',
'name' => 'Install Metrics',
'description' => '',
'url' => '',
'transport' => 'streamable_http',
'data' => [
'id' => '3095f6c0-b399-4e0f-b367-7db38b0a8453',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53'
]
]
],
'connectors' => [
[
'id' => 'ec345675-06bf-4133-b8c3-f8fc1934b839',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_order_item.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '753bd2d1-3426-41f2-b78d-a24a5a4cb0dd',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_customer.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => 'ca45078d-ed26-4752-a7a7-4aed24af033c',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_Order.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => 'aff24e82-564b-468a-9727-392a08f017bc',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_products.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '3095f6c0-b399-4e0f-b367-7db38b0a8453',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'Install Metrics',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'type' => 'WORKSPACE_DOCUMENTS',
'sourceType' => 'BACKEND',
'data' => [
'name' => 'Link_v2'
]
],
[
'id' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'type' => 'KNOWLEDGE_BASE',
'sourceType' => 'BACKEND',
'data' => [
'id' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'companyId' => 1,
'userId' => 371,
'type' => 'GOOGLE_DRIVE',
'name' => 'Mahi Changes Verifications',
'status' => 'ACTIVE',
'lastSyncAt' => '2026-05-01T18:56:45.544+0000',
'lastSyncStatus' => 'SUCCESS',
'sourceId' => null,
'credentialId' => 7219087,
'activeConfig' => null,
'latestRun' => [
'id' => '036f1723-1b57-4e06-9295-17bb24fdbd58',
'connectorId' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'runType' => 'INCREMENTAL',
'status' => 'SUCCESS',
'temporalWorkflowId' => 'kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58',
'startedAt' => '2026-05-01T18:56:44.855+0000',
'finishedAt' => '2026-05-01T18:56:45.543+0000',
'errorMessage' => null,
'statsJson' => [
],
'checkpointJson' => null
]
]
],
[
'id' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'type' => 'KNOWLEDGE_BASE',
'sourceType' => 'BACKEND',
'data' => [
'id' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'companyId' => 1,
'userId' => 588,
'type' => 'WEB',
'name' => 'DataGolTest',
'status' => 'ACTIVE',
'lastSyncAt' => '2026-05-07T10:00:00.116+0000',
'lastSyncStatus' => 'SUCCESS',
'sourceId' => null,
'credentialId' => null,
'activeConfig' => null,
'latestRun' => [
'id' => '1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
'connectorId' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'runType' => 'INCREMENTAL',
'status' => 'SUCCESS',
'temporalWorkflowId' => 'kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
'startedAt' => '2026-05-07T09:58:14.174+0000',
'finishedAt' => '2026-05-07T10:00:00.116+0000',
'errorMessage' => null,
'statsJson' => [
'total' => 49,
'failed' => 0,
'completed' => 49
],
'checkpointJson' => null
]
]
],
[
'id' => '315',
'type' => 'CONNECTOR',
'sourceType' => 'AI'
]
],
'webSearchEnabled' => true,
'skillIds' => [
10,
11
]
],
'isPublished' => false,
'prompt' => 'Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.',
'description' => 'This Agent Details you through the Complete financial related Data',
'name' => 'Financial Agent'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/customAgents/api/v1"
payload := strings.NewReader("{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://be.datagol.ai/customAgents/api/v1")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/customAgents/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"instructions": "<string>",
"examples": "<string>",
"isPublished": true,
"skills": [
{
"id": 10,
"name": "chart-visualization",
"description": "Read this skill when asked for a dashboard or a chart.",
"s3Url": "InnCreTech/skills/10/3af838c6-01de-498d-8937-4f774b0983cd/SKILL.md",
"enabled": true
}
],
"uiMetadata": {
"capabilities": {
"allowDownload": true,
"models": {
"enabled": true,
"supportedModels": [
"gpt-5.2",
"claude-sonnet-4-6",
"o4-mini"
],
"defaultValue": "gpt-5.2"
},
"conversationFiles": {
"enabled": true
}
},
"style": {
"logo": {
"bgColor": "#1a1a2e",
"textColor": "#ffffff"
}
},
"input": {
"placeholder": "What is EBITDA? And How Its Calculated"
},
"bestFor": [
"Financial Analysis",
"P&L Reports"
],
"conversationStarters": [
"What is EBITDA?",
"Show me Q1 revenue"
],
"logo": "<unknown>"
},
"configs": {
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2",
"description": ""
}
}
],
"webSearchEnabled": true,
"mcpConfigs": [
{
"CUSTOM": {
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
"WORKBOOK": {
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
}
],
"skillIds": [
10,
11
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Custom Agents
Create a Custom Agent
Creates a Custom AI Agent with the specified data sources, MCP tool servers, skills, and UI configuration. Returns the new agent record including its UUID.
POST
/
customAgents
/
api
/
v1
Create a Custom Agent
curl --request POST \
--url https://be.datagol.ai/customAgents/api/v1 \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"uiMetadata": {
"capabilities": {
"models": {
"enabled": true,
"supportedModels": [
"gpt-5.2",
"vertex_ai/claude-opus-4-7",
"claude-sonnet-4-6",
"claude-haiku-4-5-20251001",
"o4-mini"
],
"defaultValue": "gpt-5.2"
},
"allowDownload": true,
"conversationFiles": {
"enabled": true
}
},
"style": {
"logo": {
"bgColor": "",
"textColor": ""
}
},
"input": {
"placeholder": "What is EBITDA? And How Its Calculated"
},
"bestFor": [],
"conversationStarters": [],
"logo": null
},
"configs": {
"mcpConfigs": [
{
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"id": 35,
"name": "New MCP Server",
"description": "",
"url": "Financial Sub Agent",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
},
{
"serverType": "WORKBOOK",
"name": "Install Metrics",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
],
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "753bd2d1-3426-41f2-b78d-a24a5a4cb0dd",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_customer.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_Order.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "aff24e82-564b-468a-9727-392a08f017bc",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_products.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "Install Metrics",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"type": "WORKSPACE_DOCUMENTS",
"sourceType": "BACKEND",
"data": {
"name": "Link_v2"
}
},
{
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"companyId": 1,
"userId": 371,
"type": "GOOGLE_DRIVE",
"name": "Mahi Changes Verifications",
"status": "ACTIVE",
"lastSyncAt": "2026-05-01T18:56:45.544+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": null,
"credentialId": 7219087,
"activeConfig": null,
"latestRun": {
"id": "036f1723-1b57-4e06-9295-17bb24fdbd58",
"connectorId": "bca6c483-9205-4724-81e3-f4340b79efbc",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58",
"startedAt": "2026-05-01T18:56:44.855+0000",
"finishedAt": "2026-05-01T18:56:45.543+0000",
"errorMessage": null,
"statsJson": {},
"checkpointJson": null
}
}
},
{
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"companyId": 1,
"userId": 588,
"type": "WEB",
"name": "DataGolTest",
"status": "ACTIVE",
"lastSyncAt": "2026-05-07T10:00:00.116+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": null,
"credentialId": null,
"activeConfig": null,
"latestRun": {
"id": "1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"connectorId": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"startedAt": "2026-05-07T09:58:14.174+0000",
"finishedAt": "2026-05-07T10:00:00.116+0000",
"errorMessage": null,
"statsJson": {
"total": 49,
"failed": 0,
"completed": 49
},
"checkpointJson": null
}
}
},
{
"id": "315",
"type": "CONNECTOR",
"sourceType": "AI"
}
],
"webSearchEnabled": true,
"skillIds": [
10,
11
]
},
"isPublished": false,
"prompt": "Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.",
"description": "This Agent Details you through the Complete financial related Data",
"name": "Financial Agent"
}
'import requests
url = "https://be.datagol.ai/customAgents/api/v1"
payload = {
"uiMetadata": {
"capabilities": {
"models": {
"enabled": True,
"supportedModels": ["gpt-5.2", "vertex_ai/claude-opus-4-7", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", "o4-mini"],
"defaultValue": "gpt-5.2"
},
"allowDownload": True,
"conversationFiles": { "enabled": True }
},
"style": { "logo": {
"bgColor": "",
"textColor": ""
} },
"input": { "placeholder": "What is EBITDA? And How Its Calculated" },
"bestFor": [],
"conversationStarters": [],
"logo": None
},
"configs": {
"mcpConfigs": [
{
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"id": 35,
"name": "New MCP Server",
"description": "",
"url": "Financial Sub Agent",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
{
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
},
{
"serverType": "WORKBOOK",
"name": "Install Metrics",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
],
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "753bd2d1-3426-41f2-b78d-a24a5a4cb0dd",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_customer.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_Order.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "aff24e82-564b-468a-9727-392a08f017bc",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_products.csv",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "3095f6c0-b399-4e0f-b367-7db38b0a8453",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "Install Metrics",
"description": "",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2"
}
},
{
"id": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"type": "WORKSPACE_DOCUMENTS",
"sourceType": "BACKEND",
"data": { "name": "Link_v2" }
},
{
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "bca6c483-9205-4724-81e3-f4340b79efbc",
"companyId": 1,
"userId": 371,
"type": "GOOGLE_DRIVE",
"name": "Mahi Changes Verifications",
"status": "ACTIVE",
"lastSyncAt": "2026-05-01T18:56:45.544+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": None,
"credentialId": 7219087,
"activeConfig": None,
"latestRun": {
"id": "036f1723-1b57-4e06-9295-17bb24fdbd58",
"connectorId": "bca6c483-9205-4724-81e3-f4340b79efbc",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58",
"startedAt": "2026-05-01T18:56:44.855+0000",
"finishedAt": "2026-05-01T18:56:45.543+0000",
"errorMessage": None,
"statsJson": {},
"checkpointJson": None
}
}
},
{
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"type": "KNOWLEDGE_BASE",
"sourceType": "BACKEND",
"data": {
"id": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"companyId": 1,
"userId": 588,
"type": "WEB",
"name": "DataGolTest",
"status": "ACTIVE",
"lastSyncAt": "2026-05-07T10:00:00.116+0000",
"lastSyncStatus": "SUCCESS",
"sourceId": None,
"credentialId": None,
"activeConfig": None,
"latestRun": {
"id": "1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"connectorId": "5ef264c5-4194-4c62-a2bc-fddc2a431530",
"runType": "INCREMENTAL",
"status": "SUCCESS",
"temporalWorkflowId": "kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb",
"startedAt": "2026-05-07T09:58:14.174+0000",
"finishedAt": "2026-05-07T10:00:00.116+0000",
"errorMessage": None,
"statsJson": {
"total": 49,
"failed": 0,
"completed": 49
},
"checkpointJson": None
}
}
},
{
"id": "315",
"type": "CONNECTOR",
"sourceType": "AI"
}
],
"webSearchEnabled": True,
"skillIds": [10, 11]
},
"isPublished": False,
"prompt": "Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.",
"description": "This Agent Details you through the Complete financial related Data",
"name": "Financial Agent"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
uiMetadata: {
capabilities: {
models: {
enabled: true,
supportedModels: [
'gpt-5.2',
'vertex_ai/claude-opus-4-7',
'claude-sonnet-4-6',
'claude-haiku-4-5-20251001',
'o4-mini'
],
defaultValue: 'gpt-5.2'
},
allowDownload: true,
conversationFiles: {enabled: true}
},
style: {logo: {bgColor: '', textColor: ''}},
input: {placeholder: 'What is EBITDA? And How Its Calculated'},
bestFor: [],
conversationStarters: [],
logo: null
},
configs: {
mcpConfigs: [
{
id: 18,
name: 'Workspace MCP',
description: '',
url: 'https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>',
transport: 'streamable_http',
serverType: 'CUSTOM',
companyId: 1
},
{
id: 35,
name: 'New MCP Server',
description: '',
url: 'Financial Sub Agent',
transport: 'streamable_http',
serverType: 'CUSTOM',
companyId: 1
},
{
serverType: 'WORKBOOK',
name: 'dg_Order.csv',
description: '',
url: '',
transport: 'streamable_http',
data: {
id: 'ca45078d-ed26-4752-a7a7-4aed24af033c',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53'
}
},
{
serverType: 'WORKBOOK',
name: 'Install Metrics',
description: '',
url: '',
transport: 'streamable_http',
data: {
id: '3095f6c0-b399-4e0f-b367-7db38b0a8453',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53'
}
}
],
connectors: [
{
id: 'ec345675-06bf-4133-b8c3-f8fc1934b839',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_order_item.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '753bd2d1-3426-41f2-b78d-a24a5a4cb0dd',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_customer.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: 'ca45078d-ed26-4752-a7a7-4aed24af033c',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_Order.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: 'aff24e82-564b-468a-9727-392a08f017bc',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'dg_products.csv',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '3095f6c0-b399-4e0f-b367-7db38b0a8453',
type: 'WORKBOOK_RAG',
sourceType: 'BACKEND',
data: {
title: 'Install Metrics',
description: '',
workspaceId: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
workspaceName: 'Link_v2'
}
},
{
id: '055b4db3-96e1-45e1-8ff5-3a911b779a53',
type: 'WORKSPACE_DOCUMENTS',
sourceType: 'BACKEND',
data: {name: 'Link_v2'}
},
{
id: 'bca6c483-9205-4724-81e3-f4340b79efbc',
type: 'KNOWLEDGE_BASE',
sourceType: 'BACKEND',
data: {
id: 'bca6c483-9205-4724-81e3-f4340b79efbc',
companyId: 1,
userId: 371,
type: 'GOOGLE_DRIVE',
name: 'Mahi Changes Verifications',
status: 'ACTIVE',
lastSyncAt: '2026-05-01T18:56:45.544+0000',
lastSyncStatus: 'SUCCESS',
sourceId: null,
credentialId: 7219087,
activeConfig: null,
latestRun: {
id: '036f1723-1b57-4e06-9295-17bb24fdbd58',
connectorId: 'bca6c483-9205-4724-81e3-f4340b79efbc',
runType: 'INCREMENTAL',
status: 'SUCCESS',
temporalWorkflowId: 'kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58',
startedAt: '2026-05-01T18:56:44.855+0000',
finishedAt: '2026-05-01T18:56:45.543+0000',
errorMessage: null,
statsJson: {},
checkpointJson: null
}
}
},
{
id: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
type: 'KNOWLEDGE_BASE',
sourceType: 'BACKEND',
data: {
id: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
companyId: 1,
userId: 588,
type: 'WEB',
name: 'DataGolTest',
status: 'ACTIVE',
lastSyncAt: '2026-05-07T10:00:00.116+0000',
lastSyncStatus: 'SUCCESS',
sourceId: null,
credentialId: null,
activeConfig: null,
latestRun: {
id: '1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
connectorId: '5ef264c5-4194-4c62-a2bc-fddc2a431530',
runType: 'INCREMENTAL',
status: 'SUCCESS',
temporalWorkflowId: 'kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
startedAt: '2026-05-07T09:58:14.174+0000',
finishedAt: '2026-05-07T10:00:00.116+0000',
errorMessage: null,
statsJson: {total: 49, failed: 0, completed: 49},
checkpointJson: null
}
}
},
{id: '315', type: 'CONNECTOR', sourceType: 'AI'}
],
webSearchEnabled: true,
skillIds: [10, 11]
},
isPublished: false,
prompt: 'Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.',
description: 'This Agent Details you through the Complete financial related Data',
name: 'Financial Agent'
})
};
fetch('https://be.datagol.ai/customAgents/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/customAgents/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'uiMetadata' => [
'capabilities' => [
'models' => [
'enabled' => true,
'supportedModels' => [
'gpt-5.2',
'vertex_ai/claude-opus-4-7',
'claude-sonnet-4-6',
'claude-haiku-4-5-20251001',
'o4-mini'
],
'defaultValue' => 'gpt-5.2'
],
'allowDownload' => true,
'conversationFiles' => [
'enabled' => true
]
],
'style' => [
'logo' => [
'bgColor' => '',
'textColor' => ''
]
],
'input' => [
'placeholder' => 'What is EBITDA? And How Its Calculated'
],
'bestFor' => [
],
'conversationStarters' => [
],
'logo' => null
],
'configs' => [
'mcpConfigs' => [
[
'id' => 18,
'name' => 'Workspace MCP',
'description' => '',
'url' => 'https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>',
'transport' => 'streamable_http',
'serverType' => 'CUSTOM',
'companyId' => 1
],
[
'id' => 35,
'name' => 'New MCP Server',
'description' => '',
'url' => 'Financial Sub Agent',
'transport' => 'streamable_http',
'serverType' => 'CUSTOM',
'companyId' => 1
],
[
'serverType' => 'WORKBOOK',
'name' => 'dg_Order.csv',
'description' => '',
'url' => '',
'transport' => 'streamable_http',
'data' => [
'id' => 'ca45078d-ed26-4752-a7a7-4aed24af033c',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53'
]
],
[
'serverType' => 'WORKBOOK',
'name' => 'Install Metrics',
'description' => '',
'url' => '',
'transport' => 'streamable_http',
'data' => [
'id' => '3095f6c0-b399-4e0f-b367-7db38b0a8453',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53'
]
]
],
'connectors' => [
[
'id' => 'ec345675-06bf-4133-b8c3-f8fc1934b839',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_order_item.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '753bd2d1-3426-41f2-b78d-a24a5a4cb0dd',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_customer.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => 'ca45078d-ed26-4752-a7a7-4aed24af033c',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_Order.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => 'aff24e82-564b-468a-9727-392a08f017bc',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'dg_products.csv',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '3095f6c0-b399-4e0f-b367-7db38b0a8453',
'type' => 'WORKBOOK_RAG',
'sourceType' => 'BACKEND',
'data' => [
'title' => 'Install Metrics',
'description' => '',
'workspaceId' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'workspaceName' => 'Link_v2'
]
],
[
'id' => '055b4db3-96e1-45e1-8ff5-3a911b779a53',
'type' => 'WORKSPACE_DOCUMENTS',
'sourceType' => 'BACKEND',
'data' => [
'name' => 'Link_v2'
]
],
[
'id' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'type' => 'KNOWLEDGE_BASE',
'sourceType' => 'BACKEND',
'data' => [
'id' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'companyId' => 1,
'userId' => 371,
'type' => 'GOOGLE_DRIVE',
'name' => 'Mahi Changes Verifications',
'status' => 'ACTIVE',
'lastSyncAt' => '2026-05-01T18:56:45.544+0000',
'lastSyncStatus' => 'SUCCESS',
'sourceId' => null,
'credentialId' => 7219087,
'activeConfig' => null,
'latestRun' => [
'id' => '036f1723-1b57-4e06-9295-17bb24fdbd58',
'connectorId' => 'bca6c483-9205-4724-81e3-f4340b79efbc',
'runType' => 'INCREMENTAL',
'status' => 'SUCCESS',
'temporalWorkflowId' => 'kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58',
'startedAt' => '2026-05-01T18:56:44.855+0000',
'finishedAt' => '2026-05-01T18:56:45.543+0000',
'errorMessage' => null,
'statsJson' => [
],
'checkpointJson' => null
]
]
],
[
'id' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'type' => 'KNOWLEDGE_BASE',
'sourceType' => 'BACKEND',
'data' => [
'id' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'companyId' => 1,
'userId' => 588,
'type' => 'WEB',
'name' => 'DataGolTest',
'status' => 'ACTIVE',
'lastSyncAt' => '2026-05-07T10:00:00.116+0000',
'lastSyncStatus' => 'SUCCESS',
'sourceId' => null,
'credentialId' => null,
'activeConfig' => null,
'latestRun' => [
'id' => '1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
'connectorId' => '5ef264c5-4194-4c62-a2bc-fddc2a431530',
'runType' => 'INCREMENTAL',
'status' => 'SUCCESS',
'temporalWorkflowId' => 'kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb',
'startedAt' => '2026-05-07T09:58:14.174+0000',
'finishedAt' => '2026-05-07T10:00:00.116+0000',
'errorMessage' => null,
'statsJson' => [
'total' => 49,
'failed' => 0,
'completed' => 49
],
'checkpointJson' => null
]
]
],
[
'id' => '315',
'type' => 'CONNECTOR',
'sourceType' => 'AI'
]
],
'webSearchEnabled' => true,
'skillIds' => [
10,
11
]
],
'isPublished' => false,
'prompt' => 'Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.',
'description' => 'This Agent Details you through the Complete financial related Data',
'name' => 'Financial Agent'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/customAgents/api/v1"
payload := strings.NewReader("{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://be.datagol.ai/customAgents/api/v1")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/customAgents/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uiMetadata\": {\n \"capabilities\": {\n \"models\": {\n \"enabled\": true,\n \"supportedModels\": [\n \"gpt-5.2\",\n \"vertex_ai/claude-opus-4-7\",\n \"claude-sonnet-4-6\",\n \"claude-haiku-4-5-20251001\",\n \"o4-mini\"\n ],\n \"defaultValue\": \"gpt-5.2\"\n },\n \"allowDownload\": true,\n \"conversationFiles\": {\n \"enabled\": true\n }\n },\n \"style\": {\n \"logo\": {\n \"bgColor\": \"\",\n \"textColor\": \"\"\n }\n },\n \"input\": {\n \"placeholder\": \"What is EBITDA? And How Its Calculated\"\n },\n \"bestFor\": [],\n \"conversationStarters\": [],\n \"logo\": null\n },\n \"configs\": {\n \"mcpConfigs\": [\n {\n \"id\": 18,\n \"name\": \"Workspace MCP\",\n \"description\": \"\",\n \"url\": \"https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"id\": 35,\n \"name\": \"New MCP Server\",\n \"description\": \"\",\n \"url\": \"Financial Sub Agent\",\n \"transport\": \"streamable_http\",\n \"serverType\": \"CUSTOM\",\n \"companyId\": 1\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"dg_Order.csv\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n },\n {\n \"serverType\": \"WORKBOOK\",\n \"name\": \"Install Metrics\",\n \"description\": \"\",\n \"url\": \"\",\n \"transport\": \"streamable_http\",\n \"data\": {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\"\n }\n }\n ],\n \"connectors\": [\n {\n \"id\": \"ec345675-06bf-4133-b8c3-f8fc1934b839\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_order_item.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"753bd2d1-3426-41f2-b78d-a24a5a4cb0dd\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_customer.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"ca45078d-ed26-4752-a7a7-4aed24af033c\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_Order.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"aff24e82-564b-468a-9727-392a08f017bc\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"dg_products.csv\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"3095f6c0-b399-4e0f-b367-7db38b0a8453\",\n \"type\": \"WORKBOOK_RAG\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"title\": \"Install Metrics\",\n \"description\": \"\",\n \"workspaceId\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"workspaceName\": \"Link_v2\"\n }\n },\n {\n \"id\": \"055b4db3-96e1-45e1-8ff5-3a911b779a53\",\n \"type\": \"WORKSPACE_DOCUMENTS\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"name\": \"Link_v2\"\n }\n },\n {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"companyId\": 1,\n \"userId\": 371,\n \"type\": \"GOOGLE_DRIVE\",\n \"name\": \"Mahi Changes Verifications\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-01T18:56:45.544+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": 7219087,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"connectorId\": \"bca6c483-9205-4724-81e3-f4340b79efbc\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-036f1723-1b57-4e06-9295-17bb24fdbd58\",\n \"startedAt\": \"2026-05-01T18:56:44.855+0000\",\n \"finishedAt\": \"2026-05-01T18:56:45.543+0000\",\n \"errorMessage\": null,\n \"statsJson\": {},\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"type\": \"KNOWLEDGE_BASE\",\n \"sourceType\": \"BACKEND\",\n \"data\": {\n \"id\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"companyId\": 1,\n \"userId\": 588,\n \"type\": \"WEB\",\n \"name\": \"DataGolTest\",\n \"status\": \"ACTIVE\",\n \"lastSyncAt\": \"2026-05-07T10:00:00.116+0000\",\n \"lastSyncStatus\": \"SUCCESS\",\n \"sourceId\": null,\n \"credentialId\": null,\n \"activeConfig\": null,\n \"latestRun\": {\n \"id\": \"1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"connectorId\": \"5ef264c5-4194-4c62-a2bc-fddc2a431530\",\n \"runType\": \"INCREMENTAL\",\n \"status\": \"SUCCESS\",\n \"temporalWorkflowId\": \"kb-sync-1529e2e9-89fd-4991-947f-8dcf8a55e8cb\",\n \"startedAt\": \"2026-05-07T09:58:14.174+0000\",\n \"finishedAt\": \"2026-05-07T10:00:00.116+0000\",\n \"errorMessage\": null,\n \"statsJson\": {\n \"total\": 49,\n \"failed\": 0,\n \"completed\": 49\n },\n \"checkpointJson\": null\n }\n }\n },\n {\n \"id\": \"315\",\n \"type\": \"CONNECTOR\",\n \"sourceType\": \"AI\"\n }\n ],\n \"webSearchEnabled\": true,\n \"skillIds\": [\n 10,\n 11\n ]\n },\n \"isPublished\": false,\n \"prompt\": \"Scan this document and extract all key metrics, numbers, and quantitative statements (such as revenue, costs, growth rates, counts, targets, and timelines). Organize them into a structured table with columns for metric name, value, unit, date or period, and a short description of what the metric represents. If there are assumptions or caveats around specific numbers, briefly note those as well.\",\n \"description\": \"This Agent Details you through the Complete financial related Data\",\n \"name\": \"Financial Agent\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"instructions": "<string>",
"examples": "<string>",
"isPublished": true,
"skills": [
{
"id": 10,
"name": "chart-visualization",
"description": "Read this skill when asked for a dashboard or a chart.",
"s3Url": "InnCreTech/skills/10/3af838c6-01de-498d-8937-4f774b0983cd/SKILL.md",
"enabled": true
}
],
"uiMetadata": {
"capabilities": {
"allowDownload": true,
"models": {
"enabled": true,
"supportedModels": [
"gpt-5.2",
"claude-sonnet-4-6",
"o4-mini"
],
"defaultValue": "gpt-5.2"
},
"conversationFiles": {
"enabled": true
}
},
"style": {
"logo": {
"bgColor": "#1a1a2e",
"textColor": "#ffffff"
}
},
"input": {
"placeholder": "What is EBITDA? And How Its Calculated"
},
"bestFor": [
"Financial Analysis",
"P&L Reports"
],
"conversationStarters": [
"What is EBITDA?",
"Show me Q1 revenue"
],
"logo": "<unknown>"
},
"configs": {
"connectors": [
{
"id": "ec345675-06bf-4133-b8c3-f8fc1934b839",
"type": "WORKBOOK_RAG",
"sourceType": "BACKEND",
"data": {
"title": "dg_order_item.csv",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53",
"workspaceName": "Link_v2",
"description": ""
}
}
],
"webSearchEnabled": true,
"mcpConfigs": [
{
"CUSTOM": {
"id": 18,
"name": "Workspace MCP",
"description": "",
"url": "https://testing-mcp.datagol.ai/workspace/link-v2?workspace_id=a336506d-540e-4a78-809b-daf501687bca&token=<token>",
"transport": "streamable_http",
"serverType": "CUSTOM",
"companyId": 1
},
"WORKBOOK": {
"serverType": "WORKBOOK",
"name": "dg_Order.csv",
"description": "",
"url": "",
"transport": "streamable_http",
"data": {
"id": "ca45078d-ed26-4752-a7a7-4aed24af033c",
"workspaceId": "055b4db3-96e1-45e1-8ff5-3a911b779a53"
}
}
}
],
"skillIds": [
10,
11
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
ServiceAccountAuthBearerAuth
Body
application/json