Skip to main content
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

Returns

Prompt Engineering

The prompt instructs Exa to:
  1. Find exactly 5 competitors
  2. NOT include the original business
  3. Return 3 unique strengths per competitor (10-20 chars each)
  4. Return valid JSON format

Parsing Pipeline

Code Location