Files
n8n-masttro/workflows/UkSwtprmVGJACSJS_Freshdesk_Ticket_Debug.json

228 lines
6.4 KiB
JSON

{
"id": "UkSwtprmVGJACSJS",
"name": "Freshdesk Ticket Debug",
"active": false,
"activeVersionId": null,
"createdAt": "2026-06-09T21:22:01.325Z",
"updatedAt": "2026-06-09T22:03:27.647Z",
"isArchived": false,
"versionId": "61fd78d1-d4d6-4f8f-a597-341b986d0a7a",
"triggerCount": 0,
"nodes": [
{
"parameters": {
"availableInChat": true,
"agentName": "Freshdesk Ticket Debug",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.4,
"position": [
0,
0
],
"id": "e58d4fe1-b40a-4c0a-b2ae-a2680bccf8b0",
"name": "When chat message received",
"webhookId": "5f019975-28ef-49bd-98a1-b1b1204e3207"
},
{
"parameters": {
"options": {
"systemMessage": "You are a Freshdesk ticket analysis assistant. When the user gives you a ticket ID, use your tools to fetch the ticket details and all its conversations. Then answer any questions about the ticket — including why a summary field may say \"Outcome TBD\", what the actual issue was, what steps were taken, and what the final outcome was. Always reference the actual conversation content in your answers. Be specific."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
208,
0
],
"id": "300ce3c1-3469-447e-b27c-c65582218714",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-sonnet-4-6",
"cachedResultName": "Claude Sonnet 4.6"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.5,
"position": [
80,
208
],
"id": "660d5be6-467c-4fe8-ab48-c0e57d846852",
"name": "Anthropic Chat Model",
"credentials": {
"anthropicApi": {
"id": "Cwni4HhMYJkgDNZk",
"name": "Anthropic account"
}
}
},
{
"parameters": {
"url": "=https://masttro-assist.freshdesk.com/api/v2/tickets/{{ $fromAI('ticket_id','The Freshdesk ticket ID to fetch') }}",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "freshdeskApi",
"options": {}
},
"type": "n8n-nodes-base.httpRequestTool",
"typeVersion": 4.4,
"position": [
384,
224
],
"id": "3af82826-1679-4233-aa34-00b807e802cc",
"name": "Get Ticket Details",
"credentials": {
"freshdeskApi": {
"id": "adjk5wA8Y6EWwPtw",
"name": "Freshdesk account"
}
}
},
{
"parameters": {
"toolDescription": "Gets ticket conversations for specific ticket ID",
"url": "=https://masttro-assist.freshdesk.com/api/v2/tickets/{{ $fromAI('ticket_id', 'The Freshdesk ticket ID to fetch conversations for') }}/conversations",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "freshdeskApi",
"options": {}
},
"type": "n8n-nodes-base.httpRequestTool",
"typeVersion": 4.4,
"position": [
528,
224
],
"id": "1fdb79e7-4021-48cf-82e2-6ef1a0ea9349",
"name": "Get Ticket Conversations",
"credentials": {
"freshdeskApi": {
"id": "adjk5wA8Y6EWwPtw",
"name": "Freshdesk account"
}
}
},
{
"parameters": {
"toolDescription": "Gets Hubspot ticket to compare with Freshdesk",
"method": "POST",
"url": "https://api.hubapi.com/crm/v3/objects/tickets/search",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "hubspotAppToken",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"filterGroups\": [\n {\n \"filters\": [\n {\n \"propertyName\": \"freshdesk_id\",\n \"operator\": \"EQ\",\n \"value\": \"{{ $fromAI('ticket_id', 'The Freshdesk ticket ID to find in HubSpot') }}\"\n }\n ]\n }\n ],\n \"properties\": [\n \"freshdesk_id\",\n \"freshdesk_ticket_problem_summary\",\n \"freshdesk_ticket_solution_summary\",\n \"freshdesk_ticket_steps_taken\",\n \"subject\",\n \"hs_ticket_id\"\n ]\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequestTool",
"typeVersion": 4.4,
"position": [
688,
224
],
"id": "ae861e73-6695-4bbf-a797-6bcc9d910854",
"name": "Get Hubspot Ticket",
"credentials": {
"httpHeaderAuth": {
"id": "0EB2on5yh30LJid7",
"name": "Header Auth account"
},
"hubspotApi": {
"id": "fAtUZqT0fV0o79Kq",
"name": "HubSpot account 2"
},
"hubspotAppToken": {
"id": "bBdJSHTWkHuTzlGY",
"name": "HubSpot App Token account"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Anthropic Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get Ticket Details": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Ticket Conversations": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Hubspot Ticket": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"nodeGroups": [],
"settings": {
"binaryMode": "separate",
"errorWorkflow": "tJSgL4iy63ys2NCA",
"executionOrder": "v1"
},
"staticData": null,
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true
},
"tags": [],
"shared": [
{
"role": "workflow:owner",
"workflowId": "UkSwtprmVGJACSJS",
"projectId": "cKNRuUy559tzF4qQ",
"createdAt": "2026-06-09T21:22:01.325Z",
"updatedAt": "2026-06-09T21:22:01.325Z"
}
],
"activeVersion": null
}