Internal Service β This is not an HTTP endpoint. Itβs called by the competitor research service.
Purpose
Step 2 of competitor research: Uses Exaβs Answer API to find 5 competitors based on the website content.Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
api_key | str | Exa API key |
url | str | Business URL (to exclude from results) |
website_content | str | Content from Step 1 |
Returns
Prompt Engineering
The prompt instructs Exa to:- Find exactly 5 competitors
- NOT include the original business
- Return 3 unique strengths per competitor (10-20 chars each)
- Return valid JSON format