Web research and briefing
Research Briefing Stack
Reference workflow for cited briefs: Tavily handles discovery and extraction, LangGraph runs a stateful planning loop, Langfuse records traces for review. Drawn from the AgentsUse catalog as a composition pattern.
The job
- Convert a research question into a short brief with checkable sources
- Retain a run record covering queries, sources read, and token spend
Expected output: A short brief with a source link on every load-bearing claim, plus a trace of the searches and model calls that produced it.
Components, and why each one is here
A web access API built for AI agents: search, extract, map, crawl, and research endpoints behind one key.
Why this component: One vendor for discovery and reading. The agent loop stays decoupled from the retrieval implementation and can be swapped.
Low-level Python orchestration runtime for long-running, stateful agents that need durable execution, explicit state, and human review points.
Why this component: Research requires pause, retry, and re-planning. Graph state makes those decisions explicit and debuggable.
Open source LLM engineering platform for tracing, prompt management, evaluation, and debugging of AI applications.
Why this component: Traces show which queries returned usable sources and which consumed credits without contributing.
Sequence
Define the question, the decision it supports, the date range that counts as current, and the source types that are acceptable.
Draft 3-6 search queries and present them for review before any search executes.
Run Tavily search and extract top results as full text. Do not rely on snippets alone.
Draft the brief with a source link attached to each material claim.
Review the underlying sources for load-bearing claims. Approve, edit, or return the brief for another pass.
Record Langfuse traces for the run. Use query-level outcomes to tighten defaults for the next run.
Prerequisites
- Tavily API key
- Python or TypeScript runtime for LangGraph
- A model API key
- Langfuse project, cloud or self-hosted
Credentials
- TAVILY_API_KEY for Tavily calls
- A model API key for planning and drafting
- LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY for traces
Human checkpoints
- After the search plan, before execution. Poor queries waste credits and anchor the brief on the wrong sources.
- Before the brief is shared or acted on. A claim sourced from a regulator and a claim sourced from a content farm read with the same confidence in draft form.
When it breaks
Search results are thin or off-topic
Re-plan with narrower queries and named source types. Do not pad the brief from weak hits.
A key page blocks extraction
Use a browser tool or a second source for the same fact. Mark sections where sourcing is thin.
Costs creep up over days
Review Langfuse traces, reduce crawl depth, and cap results per query before increasing any budget.
Swapping components
Exa or Brave Search API can occupy the search seat with parsing changes. The graph and tracing layers remain unchanged.
Cost shape and freshness
Tavily credits per search and extraction, model tokens for planning and drafting, Langfuse usage on the hosted tier. A paid plan is not required to start.
Every component links to its published profile, checked 2026-10-07. A stack is a reference workflow, not a benchmark result. Run it on a small job first and keep the checkpoints in place. Send corrections through the contact page. Back to the stack index.