Files
n8n-workspace/Travel-App (Trigger).json

270 lines
13 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"updatedAt": "2026-08-09T21:53:16.652Z",
"createdAt": "2026-08-09T20:47:10.127Z",
"id": "urQHWlEcr6zV4tGc",
"name": "Travel-App (Trigger)",
"active": false,
"isArchived": false,
"nodes": [
{
"parameters": {
"promptType": "define",
"text": "=Du bist ein professioneller Hotel-Tester. Analysiere die folgenden Kundenbewertungen für das Hotel \"{{ $json.body.hotelName }}\" und erstelle 3 klare, auf den Punkt gebrachte Zusammenfassungen auf Deutsch in Stichpunkten.\n\nFormatiere deine Antwort AUSSCHLIESSLICH als gültiges JSON-Objekt ohne Markdown-Code-Wrapper (kein ```json).\n\nErwarte folgende Struktur:\n{\n \"summary_positive\": \"- Punkt 1\\n- Punkt 2\",\n \"summary_passable\": \"- Punkt 1\\n- Punkt 2\",\n \"summary_negative\": \"- Punkt 1\\n- Punkt 2\"\n}\n\n1. POSITIV & BESTNOTEN: Die größten Stärken, Lob und Highlights.\n2. PASSABEL & NEUTRAL: Was ist okay oder durchschnittlich?\n3. SCHLECHTESTE & KRITIK: Mängel, Lärm, Schwachstellen oder Warnungen (falls keine vorhanden, schreibe \"Keine wesentlichen Kritikpunkte genannt.\").\n\nBewertungen:\n{{ JSON.stringify($json.body.reviews) }}",
"needsFallback": true,
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
944,
-16
],
"id": "1ed8c952-8998-47e2-a1d1-074dc7ebb538",
"name": "AI Agent1"
},
{
"parameters": {
"model": "deepseek-v4-flash",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
"typeVersion": 1,
"position": [
1008,
208
],
"id": "b7c8b87a-af4c-4380-b2d6-442afb56a6a0",
"name": "DeepSeek Chat Model2",
"credentials": {
"deepSeekApi": {
"id": "kZER3rR0sCHEUm9o",
"name": "DeepSeek account"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1.1,
"position": [
880,
208
],
"id": "78f24a79-f02f-463a-a84d-7764ef071159",
"name": "Google Gemini Chat Model1",
"credentials": {
"googlePalmApi": {
"id": "EWlC0h6CFPDYaxlJ",
"name": "Google Gemini(PaLM) Api account"
}
}
},
{
"parameters": {
"httpMethod": "POST",
"path": "scrape-reviews",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
-32,
0
],
"id": "1702fe2c-fbc8-48c7-a570-03fe8611b32b",
"name": "Webhook",
"webhookId": "3ddfdc90-2a1a-4d22-8017-d5ee79ba6099"
},
{
"parameters": {
"method": "POST",
"url": "=http://192.168.178.133:3002/api/hotels/{{ $('Webhook').item.json.body.hotelId }}/review-summary",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.parse($json.output) }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
1296,
-16
],
"id": "770a0511-5b88-4021-b2e0-4a21b119f744",
"name": "HTTP Request"
}
],
"connections": {
"DeepSeek Chat Model2": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 1
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"availableInMCP": false,
"binaryMode": "separate"
},
"staticData": null,
"meta": {
"templateCredsSetupCompleted": true
},
"pinData": {
"Webhook": [
{
"json": {
"headers": {
"x-forwarded-proto": "https, https",
"host": "n8n.prinz-pilaw.de",
"x-forwarded-scheme": "https",
"x-forwarded-for": "192.168.178.133",
"x-real-ip": "192.168.178.133",
"connection": "keep-alive",
"content-length": "3022",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"user-agent": "axios/1.19.0",
"accept-encoding": "gzip, compress, deflate, br"
},
"params": {},
"query": {
"hotelId": "10e23152-f499-45db-bb8e-18e5310e4fee"
},
"body": {
"jobId": "6",
"hotelId": "10e23152-f499-45db-bb8e-18e5310e4fee",
"hotelName": "Abad Fort",
"reviews": [
{
"title": "Sehr gut",
"positive": "Frühstück sowie Speißekarte sehr gut. Hilfsbereitschaft und freundlichkeit sehr gut-Lage sehr gut und alle Sehenwürdigkeit in und um Fort Kochi gut und bequem zu Fuß erreichbar",
"negative": "",
"date": "Bewertung abgegeben: 25. Dezember 2024"
},
{
"title": "Sehr gut",
"positive": "Gutes Hotel für den Preis. Grosses, sauberes Zimmer. Betten eher hart. Die Lage ist nicht ganz in der Nähe def Sehenswürdigkeiten.",
"negative": "",
"date": "Bewertung abgegeben: 15. Dezember 2025"
},
{
"title": "Passabel",
"positive": "Nahe am Jüdischen Viertel in Fort Kochi. Die Zimmer sind okay, das Frühstück auch",
"negative": "Direkt an der Straße- daher sehr laut.",
"date": "Bewertung abgegeben: 26. Dezember 2024"
},
{
"title": "Great place with a friendly team and excellent food!",
"positive": "Fort Kochi and other attractions are conveniently located near the hotel. The breakfast was excellent!",
"negative": "Their Google Maps pin is slightly inaccurate, although it’s not a major issue when locating the place. The bathroom shower area could also be partitioned a bit better, as some water spills near the WC area.",
"date": "Bewertung abgegeben: 18. Mai 2026"
},
{
"title": "Hervorragend",
"positive": "Good hospitality especially resturant staff\nGood cleanliness",
"negative": "",
"date": "Bewertung abgegeben: 13. Mai 2026"
},
{
"title": "Hervorragend",
"positive": "The hotel offers a great experience with friendly and helpful staff. The facilities are well-maintained, and the front desk provides prompt service. Room service is efficient and reliable. The restaurant serves tasty and authentic food, making the stay even more enjoyable.",
"negative": "",
"date": "Bewertung abgegeben: 19. April 2026"
},
{
"title": "Perfect for what I needed",
"positive": "Onsite facilities including housekeeping were good, great location for trip\nAll staff were great and could not do enough for me\nRestaurant and food was good",
"negative": "There was nothing to dislike during my stay",
"date": "Bewertung abgegeben: 2. April 2026"
},
{
"title": "My stay was great, felt very welcome and nothing was too much trouble for staff",
"positive": "Rooms were spacious and had everything I needed.\nRestaurant was open throughout the day with varied menu. Breakfast was great and restaurant staff looked after me like family.\nAll hotel staff were very polite and extremely helpful, from reception right through to housekeeping\nWalking distance to Jew Town or Cochin beach, or just jump in TukTuk",
"negative": "There was nothing to dislike during my stay",
"date": "Bewertung abgegeben: 2. April 2026"
},
{
"title": "Perfect for what we needed",
"positive": "Central location for getting around and exploring Cochin. Good size room with everything you need. Good breakfast and restaurant for lunch and dinner if required. Staff extremely helpful.",
"negative": "Nothing noteworthy.",
"date": "Bewertung abgegeben: 7. März 2026"
}
],
"timestamp": "2026-08-09T21:47:25.026Z"
},
"webhookUrl": "https://n8n.prinz-pilaw.de/webhook-test/scrape-reviews",
"executionMode": "test"
},
"pairedItem": {
"item": 0
}
}
],
"AI Agent1": [
{
"json": {
"output": "{\n \"summary_positive\": \"- Exzellentes Frühstück sowie eine vielseitige und authentische Speisekarte.\\n- Herausragende Gastfreundschaft und Hilfsbereitschaft des gesamten Personals.\\n- Große, saubere und gut ausgestattete Zimmer.\\n- Zentrale Lage in Fort Kochi mit guter fußläufiger Erreichbarkeit von Sehenswürdigkeiten.\",\n \"summary_passable\": \"- Die Matratzen der Betten werden als eher hart empfunden.\\n- Zimmer und Frühstücksbuffet werden von einigen Gästen lediglich als solide/zweckmäßig bewertet.\\n- Unterschiedliche Wahrnehmung der Lage (einige empfinden sie als nicht unmittelbar im Zentrum).\",\n \"summary_negative\": \"- Hoher Lärmpegel aufgrund der direkten Lage an einer Hauptstraße.\\n- Bauliche Mängel im Badezimmer (fehlende Abtrennung der Dusche führt zu Wasser im WC-Bereich).\\n- Ungenauer Standort-Pin bei Google Maps erschwert das Auffinden des Hotels.\"\n}"
},
"pairedItem": {
"item": 0
}
}
]
},
"versionId": "e51f58cd-0178-434f-877b-8be384d70d45",
"activeVersionId": null,
"triggerCount": 0,
"shared": [
{
"updatedAt": "2026-08-09T20:47:10.129Z",
"createdAt": "2026-08-09T20:47:10.129Z",
"role": "workflow:owner",
"workflowId": "urQHWlEcr6zV4tGc",
"projectId": "cSAaWNJydnksD5EB"
}
],
"activeVersion": null,
"tags": []
}