Skip to main content

How Exa Web Search Works

Use Exa Web Search when your agent needs current external information that is not available in Flywheel event or profile data. The tool executes a real-time web query through the Exa search API and returns structured results the agent can reason over to personalize messages, verify claims, or gather competitive context. You control scope with domain allowlists/blocklists, date ranges, and content category filters so the agent only surfaces relevant, approved sources.

Configuration

Inputs

string
Instructions for when the agent should run web search and how it should use retrieved sources.
string
required
Search query text. Can be user-defined or AI-defined.
number
default:"10"
Number of results to return.
enum
default:"auto"
Search strategy. Options: auto, fast, deep, neural.
enum
Optional source category filter. Options: company, research paper, news, pdf, tweet, personal site, financial report, people.
object
Relative date window using value + unit (days, weeks, months, years).
string[]
Domain allowlist.
string[]
Domain blocklist.
string[]
Optional text constraints for filtering results.
string
ISO country code context (for localized result relevance).
boolean
Content moderation flag.
boolean
Allow Exa autoprompt behavior.

Outputs

object[]
required
Array of search result objects returned by the Exa API for the agent to reason over.
string
required
The URL of the matching web page.
string
required
The page title as indexed by the search provider.
string
A text excerpt from the page content relevant to the query.
number
required
Total number of results returned in this search execution.
string
required
The final query string sent to Exa, which may differ from the input if autoprompt rewrote it.

Use Cases

Competitive Intelligence
Account Enrichment
Content Research
Compliance Verification

Best Practices

Query Strategy
  • Keep queries specific and task-oriented to reduce noise in results.
  • Use dynamic template variables (e.g., {{user.company}}) so queries stay relevant per run.
  • Prefer the auto search type unless you have a clear reason to force deep or neural.
  • Limit result counts to what the agent actually needs — fewer results mean faster execution.
Domain Control
  • Constrain domains for compliance-sensitive messaging to approved sources only.
  • Use the exclude list to block social media or user-generated content when accuracy matters.
  • Combine domain filters with content category filters for the tightest result scope.
  • Regularly review your allowlists to ensure referenced domains are still authoritative and active.
Performance
  • Use lower result counts for speed; increase only when the agent needs breadth.
  • Set date ranges to avoid stale content and keep results timely.
  • Enable autoprompt only when the agent’s query may benefit from Exa’s reformulation logic.
  • Monitor search usage to stay within rate limits and avoid unnecessary API calls.