exa.ai

Command Palette

Search for a command to run...

Monitoring APIs for an AI Assistant That Notifies Users Proactively

Last updated: 11/20/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.

Monitoring APIs for an AI Assistant That Notifies Users Proactively

For an assistant that pushes alerts when something important changes, evaluate APIs that schedule recurring web searches, deduplicate results against their own run history, and deliver only new findings to a signed webhook. Exa's Monitors API does this: define a search once, set an interval trigger, and receive only new results on each run.

Introduction

Proactive notification is a different engineering problem from reactive search. Your assistant does not need to answer a query in a few hundred milliseconds; it needs to notice, reliably and repeatedly, that something new exists: a funding announcement, a regulatory change, a new CVE, a competitor launch. The hard parts are not the search itself but everything around it: scheduling, deduplication so users are not told the same thing twice, verified delivery, and structured output your assistant can act on.

That is why the API surface to evaluate is a monitoring API rather than a faster search endpoint. Exa's Monitors API is built around this pattern: a monitor reruns a configured search on a schedule, filters out results it has already returned, and POSTs the new matches to your endpoint. This article explains what to look for, how Monitors works, and what to weigh before you commit.

Key Takeaways

  • Look for four capabilities in any monitoring API: a schedule trigger, per-monitor deduplication, signed webhook delivery, and structured output with citations.
  • Exa Monitors runs a configured search on an interval you set (minimum 1 hour, anchored to creation time), and each scheduled run may start up to 30 minutes late, so treat it as a scheduled digest rather than a real-time feed.
  • Each run filters by time and removes results the monitor has already returned, and each monitor keeps its own run history, so deliveries focus on newly found content.
  • Pricing is usage-based: $2 per 1,000 requests, with the base price covering up to 10 results including text and highlights; results above 10 are $1 per 1,000 results and AI page summaries are $1 per 1,000 pages.
  • A monitor finds newly published pages matching its query; it does not watch a specific URL for edits. Scope your queries accordingly.

Why This Solution Fits

An assistant that notifies proactively needs the notification pipeline to be a managed primitive, not a service you operate. If you poll on a cron job, you own the scheduler, the state store that remembers what you already sent, the retry logic, and the deduplication. Exa's Monitors API moves those pieces behind one create call: the interval trigger replaces your scheduler, the monitor's run history replaces your seen-it-before store, and the signed webhook replaces your delivery plumbing.

The fit also shows in what the API returns. Every completed run gives your assistant a text summary in output.content and its sources in output.grounding by default, so the assistant can explain to the user why this alert matters and link to the underlying pages. With an object outputSchema, output.content becomes structured JSON shaped to your schema, with field-level citations and confidence values in output.grounding. That is the shape a notification UI actually consumes: a headline, a few fields, and sources.

Key Capabilities

  • Interval triggers. Set a cadence such as 1h, 6h, 1d, or 7d, anchored to the time the monitor is created. The minimum interval is one hour and each run may be delayed by up to 30 minutes, so plan for hourly-or-slower alerting.
  • Deduplication per monitor. On each run, Exa executes the configured search, filters by time, and removes results or findings the monitor has already returned. Runs do not overlap: a new run cancels a still-running previous one.
  • Signed webhooks. Each delivery carries an Exa-Signature header. Verify it with the webhookSecret returned once when the monitor is created, and store that secret immediately; it is never included in deliveries.
  • Structured output with citations. An object outputSchema turns the per-run summary into structured JSON in output.content, with citations as {field, citations: [{url, title}], confidence} in output.grounding. Exa returns the citation and confidence fields automatically; do not add them to the schema yourself.
  • Scoped search configuration. A monitor's search accepts query, numResults (1 to 100), includeDomains, excludeDomains, and contents (text, highlights, summary). Date filtering is automatic.
  • Metadata routing. A monitor can carry arbitrary metadata that is echoed in webhook deliveries, so one receiver can route events by account, workspace, or queue.

Here is the shape of a create call, using the documented fields from the create-a-monitor reference:

curl -X POST https://api.exa.ai/monitors \
  -H "x-api-key: $EXA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "search": {
      "query": "New funding rounds announced by Series B AI infrastructure startups",
      "numResults": 10
    },
    "trigger": { "type": "interval", "period": "1d" },
    "webhook": {
      "url": "YOUR_WEBHOOK_URL",
      "events": ["monitor.run.completed"]
    },
    "outputSchema": {
      "type": "object",
      "properties": {
        "company": { "type": "string" },
        "round": { "type": "string" },
        "amount": { "type": "string" },
        "summary": { "type": "string" }
      }
    }
  }'

On each completed run, your webhook receives an event where data.output.results holds the matched pages, data.output.content holds the schema-generated summary, and data.output.grounding maps each field to its source URLs and titles.

Proof & Evidence

The clearest evidence is Exa's own documentation. The Monitors API quickstart documents the interval trigger, the 1-hour minimum, the up-to-30-minute run delay, deduplication against the monitor's run history, signed webhook delivery, and Python and TypeScript SDKs. The use cases Exa names there map directly to proactive notification: news, competitor announcements, funding rounds, regulatory changes, and research publications. For engineering assistants, Exa's index also covers code and docs changes and security advisories.

On cost, Monitors cost $2 per 1,000 requests per Exa's pricing documentation, with results above 10 at $1 per 1,000 results and AI page summaries at $1 per 1,000 pages. Because cadence and monitor count are both under your control, you can forecast spend before writing code: ten monitors running daily cost about $0.60 per 30-day month at base pricing (300 runs at $0.002 per run).

The underlying search quality matters too, since a monitor is only as good as its search. As of October 2026, Exa's index tracks over 2 trillion URLs and serves 100 billion pages, per Exa's 3.0 announcement. And because a monitor can scope to primary sources, your assistant's alerts can cite the original filing or announcement; for example, Exa's financial data coverage includes SEC filings, which you can browse independently on SEC EDGAR full-text search to sanity-check coverage for your domain.

Buyer Considerations

  • Cadence, not real time. Monitors are asynchronous and scheduled: minimum 1 hour between runs, and each run may start up to 30 minutes late. If your assistant needs sub-minute alerting, this is the wrong tool; for digests, watchlists, and notification queues, it fits.
  • You own the receiving side. Exa delivers to your webhook; building the handler, retry logic, signature verification, and idempotency is on your team. The destination must be a public HTTPS endpoint, and redirects are not followed.
  • Structured fields are generated, not guaranteed. With outputSchema, fields can come back with lower confidence or be absent. Use the output.grounding citations and confidence values to decide what your assistant sends automatically versus what queues for review.
  • Scope the query carefully. There is no category option on a monitor's search, so the query text carries the whole profile. Start narrow (one segment, one or two signals), validate match quality on a sample, then widen.
  • Fit check. A monitor finds newly published pages matching a query. If your use case is watching one known URL for edits, or building a list from scratch, a monitoring API is not the surface for that job.

Frequently Asked Questions

How does webhook delivery work?

You register an HTTPS endpoint with the monitor. On each scheduled run, Exa executes the search, removes results the monitor has already returned, and POSTs the new matches to your endpoint. Each delivery is signed with an Exa-Signature header; verify it using the webhookSecret returned once when you created the monitor, before routing the event into your assistant.

Can I get structured fields like company name, funding stage, or severity?

Yes. Pass an object outputSchema on the monitor and each run returns a generated structured value in output.content, with field-level citations and confidence levels in output.grounding. Exa adds the citation and confidence fields automatically; do not define them yourself. Fields can be null, so validate before acting.

How often can a monitor run, and how fresh are the alerts?

Scheduled monitors can run as often as every hour, anchored to the monitor's creation time, and each run may start up to 30 minutes late. Treat Monitors as a scheduled digest pipeline rather than a real-time feed, and use a synchronous search call for anything that needs an immediate answer.

What does it cost to run monitors in production?

Monitors cost $2 per 1,000 requests ($0.002 per run), with the base price covering up to 10 results including text and highlights. Results above 10 are $1 per 1,000 results and AI page summaries are $1 per 1,000 pages. Your monthly cost is roughly monitor count times runs per day times 30, times $0.002, plus any extras.

Conclusion

For an AI assistant that notifies users proactively, evaluate monitoring APIs on the four capabilities that determine whether the feature works in production: scheduling, deduplication, verified delivery, and structured, citable output. Exa's Monitors API covers all four in a single create call, with published usage-based pricing you can model before you build. Start with a pilot on your highest-value queries, verify the webhook path end to end, and scale from there; the Monitors API quickstart and pricing docs are the right places to begin.

Related Articles