get_audience_lookalike
Find screens with similar audience profiles using pgvector similarity.
Uses 64-dimensional audience vectors with HNSW cosine similarity index to find screens whose audience demographics, attention, and behavioral patterns match a target screen.
WHEN TO USE:
Expanding campaign reach to screens with similar audiences
Finding new inventory that matches a high-performing screen
Building lookalike audience segments for targeting
RETURNS: Array of similar screens ranked by cosine similarity, each with:
screen_id, similarity (0-1), metadata (face_count, attention, income, lifestyle), last_seen
EXAMPLE: get_audience_lookalike({ screen_id: "scr_abc123", limit: 10, min_similarity: 0.8 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 20, max: 100) | |
| country | No | Filter by country (optional) | |
| screen_id | Yes | Source screen ID to find lookalikes for | |
| venue_type | No | Filter by venue type (optional) | |
| min_similarity | No | Minimum cosine similarity threshold 0-1 (default: 0.7) |