# Docs Expert

Answers questions about libraries and APIs by searching the live web and citing sources.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<DocsBaseSwitcher base="flue" agent="docs-expert" />

<AgentPreview
  agent="docs-expert"
  framework="flue"
  inputFields="[
  {
    name: &#x22;query&#x22;,
    label: &#x22;Question&#x22;,
    placeholder: &#x22;How do I stream responses with the Vercel AI SDK?&#x22;,
    type: &#x22;textarea&#x22;,
  },
]"
/>

## Summary [#summary]

The **Docs Expert Agent** answers technical questions about libraries, APIs, and
tools by searching the live web — preferring official documentation and citing
every claim. Reach for it as a grounded "ask the docs" helper that returns
copy-pasteable answers instead of hallucinated APIs.

## Install [#install]

```bash
npx shadcn@latest add https://agentcn.vercel.app/r/flue/docs-expert.json
```

## Composition [#composition]

```text
agents/
└── docs-expert.ts      # Agent with the web_search tool
tools/
└── search.ts           # Web search via the Exa API
```

## Customization [#customization]

* **Swap the search provider.** Edit `search.ts` for Brave, Tavily, or a
  docs-specific index.
* **Constrain to your docs.** Restrict queries to a domain to build a
  product-specific expert.
* **Add page fetching.** Add a `scrape_url` tool so the agent reads full pages.
* **Swap the model.** Change the `model` field on the agent.
