Lookup organization
{
"id": "org",
"kind": "fetch_transform",
"title": "Lookup organization",
"request": {
"params": {
"limit": 5,
"query": "{{ $.input.companyName }}",
"domain": "{{ $.input.domain }}",
"organizationName": "{{ $.input.companyName }}"
},
"sourceId": "stableenrich_apollo_org_search",
"deliveryFormat": "json"
}
}
Search competitor context
{
"id": "search",
"kind": "fetch_transform",
"title": "Search competitor context",
"request": {
"params": {
"count": 5,
"query": "{{ $.input.companyName }} {{ $.input.domain }} competitors positioning"
},
"sourceId": "stableenrich_exa_search",
"deliveryFormat": "json"
}
}
Search grounded competitor context
{
"id": "grounded",
"kind": "fetch_transform",
"title": "Search grounded competitor context",
"request": {
"params": {
"count": 5,
"query": "{{ $.input.question }} {{ $.input.companyName }} {{ $.input.domain }} competitor positioning"
},
"sourceId": "stableenrich_exa_search",
"deliveryFormat": "json"
}
}
Scrape top public competitor page
{
"id": "scrape",
"kind": "fetch_transform",
"title": "Scrape top public competitor page",
"request": {
"params": {
"url": "{{ $.stepsById.search.output.results[0].url }}",
"formats": [
"markdown",
"text"
],
"onlyMainContent": true
},
"sourceId": "stableenrich_firecrawl_scrape",
"deliveryFormat": "json"
}
}
Generate competitor matrix
{
"id": "summarize",
"kind": "fetch_transform",
"title": "Generate competitor matrix",
"request": {
"params": {
"input": {
"search": "{{ $.stepsById.search.output }}",
"target": "{{ $.input.companyName }}{{ $.input.domain }}",
"orgLookup": "{{ $.stepsById.org.output }}",
"scrapedPage": "{{ $.stepsById.scrape.output }}",
"groundedContext": "{{ $.stepsById.grounded.output }}"
},
"prompt": "Build a concise competitor matrix from the supplied org lookup and public context. Focus on positioning, likely adjacent competitors, differentiators, next targets, and evidence links.",
"responseSchema": {
"type": "object",
"required": [
"target",
"summary",
"positioning",
"competitors",
"differentiators",
"nextTargets",
"evidenceLinks"
],
"properties": {
"target": {
"type": "string"
},
"summary": {
"type": "string"
},
"competitors": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"reason"
],
"properties": {
"name": {
"type": "string"
},
"domain": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"additionalProperties": false
}
},
"nextTargets": {
"type": "array",
"items": {
"type": "string"
},
"description": "Next targets."
},
"positioning": {
"type": "string"
},
"evidenceLinks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Evidence links."
},
"differentiators": {
"type": "array",
"items": {
"type": "string"
},
"description": "Differentiators."
}
},
"additionalProperties": false
},
"systemInstruction": "You are preparing a competitor-intelligence brief. Stay grounded in the supplied org lookup and public evidence only."
},
"sourceId": "google_gemini_flash_structured",
"deliveryFormat": "json"
}
}