> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Build a Research Agent with AIsa

> Give your agent live web, academic, and citation-backed search through AIsa, then synthesize a source-backed brief with evidence rules.

## The problem

Analysts, founders, and engineers need answers that depend on current information: what changed, who said it, and whether a claim holds up. Relying on model recall alone yields stale information and cannot cite sources. A good outcome is a concise brief in which every material claim links to a retrieved source with a publication date, contradictions are surfaced, and the research cutoff time is stated.

## Prompt

Give this to your agent (Claude Code, Cursor, Codex, and others) once AIsa is [connected via MCP](https://aisa.one/docs/agent-quickstart.md):

```txt wrap theme={null}
Use AIsa to research: <your question>. Time range: <e.g. last 90 days>. Preferred sources: official docs, filings, original announcements, peer-reviewed papers.
Find the right AIsa search tools with `search`, and quote each paid call with `batch_quote` first. Ask me before any paid call, and tell me the expected number of calls.
Retrieve before you synthesize: search for candidates, then fetch the full text of every source you cite. Do not cite anything you did not retrieve.
Return a brief with: (1) verified facts, each with URL and publication date; (2) interpretation; (3) contradictions between sources; (4) open questions; (5) the research cutoff time.
```

For academic questions, replace the source line with: `Use scholarly sources only; include authors, year, and venue for each paper.`

## APIs and Skills used

Through MCP, your agent reaches these via a few meta tools at `https://mcp.aisa.one/mcp`: `search`, `list_categories`, `get_details`, and `batch_quote` are free; `batch_use` (up to 20 calls) is billed per call.

| Step | What the agent calls | Reference |
| - | - | - |
| Discover sources | Web search with extracted page text | [Tavily Search](https://aisa.one/docs/api-reference/search/post_tavily-search.md) |
| Read full pages | Content extraction for URLs it already has | [Tavily Extract](https://aisa.one/docs/api-reference/search/post_tavily-extract.md) |
| Multi-pass answer with citations | Perplexity Sonar Pro | [Sonar Pro](https://aisa.one/docs/api-reference/perplexity/post_perplexity-sonar-pro.md) |
| Academic papers | Scholarly article search | [Search Scholarly Articles](https://aisa.one/docs/api-reference/scholar/post_scholar-search-scholar.md) |
| Recent cross-platform signal | 30-day brief across social and web sources | [Last 30 Days](https://aisa.one/docs/agent-skills/last30days.md) |
| Reusable workflow | Web, scholar, Tavily, and Sonar in one Skill | [Multi-source Search](https://aisa.one/docs/agent-skills/multi-source-search.md) |
| Synthesis | A supported model, after retrieval | [Models](https://aisa.one/docs/guides/models.md) |

Use a Skill when the research method is reusable. Call APIs directly when your application must control source selection, sequencing, caching, or ranking.

## Example output

> [!NOTE]
>
> Illustrative only. Names, URLs, and dates are placeholders, not real data.

```md theme={null}
## Brief: Has Example Corp shipped its v2 API? (cutoff: 2026-01-15 09:00 UTC)

Verified facts
- Example Corp announced v2 general availability on 2026-01-10. [example.com/blog/v2-ga, 2026-01-10]
- The v1 endpoints are deprecated, not yet removed. [docs.example.com/changelog, 2026-01-11]

Interpretation
- Migration pressure is moderate: no removal date is published.

Contradictions
- A third-party post says v1 shuts down in March; the official changelog gives no date. [example.org/news/123]

Open questions
- Pricing for v2 is not stated in any retrieved source.
```

## Guardrails

* **Retrieve, then synthesize.** Snippets and model recall are leads, not evidence. Fetch the full source for any material claim.
* **Prefer primary sources.** Prioritize primary sources (official docs, filings, original announcements, datasets) and record both the URL and publication date.
* **Surface contradictions.** Report conflicting information instead of merging it, and mark claims that rest on a single source.
* **No invented citations.** The model must not cite or claim access to sources that were not retrieved.
* **Verify before delivery.** Verify that each citation resolves, recheck time-sensitive numbers, remove unsupported claims, and state the research cutoff time.
* **Quote, then ask.** Get a free quote with `batch_quote` and run the same calls with `batch_use` only after approval. A quote checks the estimate, not the final charge. See [Billing & Credits](https://aisa.one/docs/guides/pricing.md).
* **Load only what you need.** Ingest only the selected Skill or API documentation pages, [Authentication](https://aisa.one/docs/guides/authentication.md), and [Models](https://aisa.one/docs/guides/models.md). Do not load the entire API reference.
* **When AIsa may not be necessary:** A single specialized search provider can be simpler if you use only one source type, need no reusable Skills, and already manage your own model and billing integrations. See [When to use AIsa](https://aisa.one/docs/how-it-works.md#when-to-use-aisa).

## Related

> [card] [Connect via MCP](https://aisa.one/docs/agent-quickstart.md)
>
> Set up AIsa in your agent.

> [card] [How It Works](https://aisa.one/docs/how-it-works.md)
>
> Endpoints, billing, and what you own.

> [card] [Market Intelligence Agent](https://aisa.one/docs/use-cases/market-intelligence-agent.md)
>
> Add market data and filings.

> [card] [Perplexity Deep Research](https://aisa.one/docs/agent-skills/perplexity-research.md)
>
> Long, cited research reports.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.