Files
Brancheneinstufung2/n8n_workflow_identifyCompetitors.json
Floke a37c688e07 feat: Plan and define n8n hybrid migration
- Add detailed plan for migrating market intelligence logic to n8n using a hybrid approach.

- Define the first n8n workflow 'identifyCompetitors' as a JSON file for import.
2025-12-20 22:00:29 +00:00

85 lines
2.1 KiB
JSON

{
"name": "Market Intelligence: Identify Competitors",
"nodes": [
{
"parameters": {
"path": "identify-competitors",
"options": {}
},
"name": "Start",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
800,
300
],
"webhookId": "identify-competitors"
},
{
"parameters": {
"model": "gemini-pro",
"prompt": "Goal: Identify 10 DIRECT COMPETITORS or LOOKALIKES for the company found at URL: \"{{$json.body.referenceUrl}}\" in \"{{$json.body.targetMarket}}\".\n\nOUTPUT LANGUAGE: {{$json.body.language === 'de' ? 'German' : 'English'}}.\n\nRules:\n1. Focus on the same business model (e.g. Retailer vs Retailer, Brand vs Brand).\n2. Exclude the reference company itself.\n\nReturn ONLY a valid JSON array of objects, where each object has the keys \"name\", \"url\", and \"description\". Example: [{ \"name\": \"...\", \"url\": \"...\", \"description\": \"...\" }]",
"options": {
"responseFormat": "json"
}
},
"name": "Identify Competitors",
"type": "n8n-nodes-base.googleGemini",
"typeVersion": 1,
"position": [
1020,
300
],
"credentials": {
"googleGeminiApi": {
"id": "YOUR_GEMINI_CREDENTIAL_ID",
"name": "Google Gemini API"
}
}
},
{
"parameters": {
"options": {}
},
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
1240,
300
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Identify Competitors",
"type": "main",
"index": 0
}
]
]
},
"Identify Competitors": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {},
"tags": [
{
"id": "1",
"name": "Market Intelligence"
}
]
}