Skip to content

Tavily Web Search

Queries the Tavily web search service via Salt Agents and returns relevant results. Optionally includes a concise AI-generated answer alongside a JSON string of retrieved documents. Supports search depth, topic scoping (general/news), domain inclusion/exclusion, and toggles for raw content.
Preview

Usage

Use this node to fetch up-to-date web information for research, summaries, or grounding downstream reasoning. Typical workflow: provide a clear query, choose depth (basic/advanced), set result limits, optionally scope to news with a recent-days window, and refine with include/exclude domain lists. Feed the 'documents' output into parsers, summarizers, or retrieval chains; use 'answer' for quick overviews.

Inputs

FieldRequiredTypeDescriptionExample
queryTrueSTRINGYour search query. Provide a clear, specific request describing the information you need.What are the latest developments in quantum error correction?
search_depthTrueSTRINGThe depth of the search. Allowed values: basic (1 credit), advanced (2 credits). Advanced may retrieve broader/deeper coverage.advanced
max_resultsTrueINTMaximum number of search results to return. Minimum is 1.5
topicTrueSTRINGCategory of the search. Allowed values: general, news. Choose 'news' for recent coverage focused on current events.news
daysTrueINTOnly applies when topic is 'news'. Number of days back from today to include in results.3
include_answerTrueBOOLEANIf true, includes a short synthesized answer to the original query.True
include_raw_contentTrueBOOLEANIf true, includes raw text content of search results. If false, only the most query-relevant extracted content is returned.False
include_domainsTrueSTRINGDomains to specifically include in results. Provide one domain per line.nature.com science.org arxiv.org
exclude_domainsTrueSTRINGDomains to exclude from results. Provide one domain per line.wikipedia.org reddit.com

Outputs

FieldTypeDescriptionExample
answerSTRINGA concise answer to the query, when available and include_answer is enabled.Quantum error correction has advanced with new bosonic codes reducing overhead and demonstrations of logical qubit lifetimes exceeding physical qubits in 2025 studies.
documentsSTRINGA JSON-formatted string containing an array of document objects returned by the search (titles, URLs, snippets, and optionally raw content).[ { "title": "Breakthrough in Quantum Error Correction", "url": "https://example.com/article", "snippet": "Researchers report improved logical qubit fidelity...", "content": "..." } ]

Important Notes

  • Query must be non-empty: An empty query will raise an error.
  • News-only window: The 'days' parameter only affects searches when topic is set to 'news'.
  • Answer availability: If include_answer is disabled or no answer is produced, the 'answer' output may be empty.
  • Domain filters: Enter one domain per line for include/exclude lists; leave empty to not constrain by domains.
  • Result format: 'documents' is a JSON string; parse it before downstream processing if you need structured access.
  • Search depth costs: 'advanced' depth uses more credits than 'basic'.

Troubleshooting

  • Empty or missing results: Increase max_results, switch to 'advanced' search_depth, broaden the query, or remove restrictive domain filters.
  • No answer returned: Ensure include_answer is true and try 'advanced' depth; some queries may not yield a synthesized answer.
  • Stale or irrelevant results: Use topic='news' with an appropriate 'days' value to focus on recent content, or specify include_domains.
  • Errors about empty query: Provide a non-empty 'query' string.
  • Network or service errors: Retry later; verify your Salt Agents service configuration and connectivity.
  • Downstream parsing errors: Remember 'documents' is a JSON string; parse it before attempting to access fields.

Example Pipelines

Example
Example