Exa
Search the web, find similar pages, and get page contents with Exa's neural search.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("exa", action, input) resolves with the provider's answer and rejects when Exa isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "exa"} says whether yours can call it.
// workflows/notify.ts: call Exa when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellExa = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Exa isn't connected.
const output = await step.run("Exa", () =>
step.ctx.integrations.invoke("exa", "find_similar_links", {
"url": "<url>"
}),
);
step.ctx.log("Exa answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "exa",
"piece_action": "find_similar_links",
"input": {
"url": "<url>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/exa/find_similar_links" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"url":"<url>"}}'Actions
find_similar_links
Find Similar Links. Find pages similar to a given URL.
| Input | Type | Description |
|---|---|---|
urlrequired | text | Reference URL to find semantically similar links. |
numResultsoptional | number | Number of results to return (max 100). |
includeDomainsoptional | array | List of domains to include in results. |
excludeDomainsoptional | array | List of domains to exclude from results. |
startCrawlDateoptional | date-time (ISO) | Include links crawled after this date (ISO format). |
endCrawlDateoptional | date-time (ISO) | Include links crawled before this date (ISO format). |
startPublishedDateoptional | date-time (ISO) | Only include links published after this date (ISO format). |
endPublishedDateoptional | date-time (ISO) | Only include links published before this date (ISO format). |
includeTextoptional | array | Strings that must be present in the webpage text (max 1 string of up to 5 words). |
excludeTextoptional | array | Strings that must not be present in the webpage text (max 1 string of up to 5 words). |
get_contents
Get Contents. Retrieve clean HTML content from specified URLs.
| Input | Type | Description |
|---|---|---|
urlsrequired | array | Array of URLs to crawl |
textoptional | boolean | If true, returns full page text. If false, disables text return. |
livecrawloptional | one of "never" | "fallback" | "always" | "auto" | Options for livecrawling pages. |
livecrawlTimeoutoptional | number | Timeout for livecrawling in milliseconds. |
subpagesoptional | number | Number of subpages to crawl. |
subpageTargetoptional | text | Keyword(s) to find specific subpages. |
perform_search
Perform Search. Search the web using semantic or keyword-based search.
Also accepted as search.
| Input | Type | Description |
|---|---|---|
queryrequired | text | Search query to find related articles and data. |
typeoptional | one of "auto" | "keyword" | "neural" | Type of search to perform. |
categoryoptional | one of "company" | "research paper" | "news" | "pdf" | "github" | "tweet" | "personal site" | "linkedin profile" | "financial report" | Category of data to focus the search on. |
numResultsoptional | number | Number of results to return (max 100). |
includeDomainsoptional | array | Limit results to only these domains. |
excludeDomainsoptional | array | Exclude results from these domains. |
startCrawlDateoptional | date-time (ISO) | Only include results crawled after this ISO date. |
endCrawlDateoptional | date-time (ISO) | Only include results crawled before this ISO date. |
startPublishedDateoptional | date-time (ISO) | Only include results published after this ISO date. |
endPublishedDateoptional | date-time (ISO) | Only include results published before this ISO date. |
includeTextoptional | array | Strings that must be present in the text of results. |
excludeTextoptional | array | Strings that must not be present in the text of results. |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
generate_answer
Ask AI. Provides direct answers to queries by summarizing results.
| Input | Type | Description |
|---|---|---|
queryrequired | text | Ask a question to get summarized answers from the web. |
textoptional | boolean | If true, includes full text content from the search results |
modelrequired | one of "exa" | "exa-pro" | Choose the Exa model to use for the answer. |
Details
- Id
exa- Category
- AI and ML
- Tags
- search, neural-search, web, ai, discovery
- Package
@activepieces/piece-exa@0.1.5- Runs
- Through the integration runner