| name | exa-core-workflow-b |
| description | Execute Exa findSimilar, getContents, answer, and streaming answer workflows.
Use when finding pages similar to a URL, retrieving content for known URLs,
or getting AI-generated answers with citations.
Trigger with phrases like "exa find similar", "exa get contents",
"exa answer", "exa similarity search", "findSimilarAndContents".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(node:*), Grep |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","exa","workflow","similarity-search","answer"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Exa Core Workflow B — Similarity, Contents & Answer
Overview
Secondary Exa workflow covering three endpoints beyond search: findSimilar (discover pages semantically related to a URL), getContents (retrieve text/highlights for known URLs), and answer (get AI-generated answers with web citations). These complement the primary search workflow in exa-core-workflow-a.
Prerequisites
exa-js installed and EXA_API_KEY configured
- Familiarity with
exa-core-workflow-a search patterns
Instructions
Step 1: Find Similar Pages
import Exa from "exa-js";
const exa = new Exa(process.env.EXA_API_KEY);
const similar = await exa.findSimilar(
"https://openai.com/research/gpt-4",
{
numResults: 10,
excludeSourceDomain: true,
startPublishedDate: "2024-01-01T00:00:00.000Z",
excludeDomains: ["reddit.com", "twitter.com"],
}
);
for (const r of similar.results) {
console.log(`${r.title} — ${r.url}`);
}
Step 2: Find Similar with Contents