Skip to content

Wikipedia

Wikipedia searches Wikipedia and returns the text of the articles it finds. It is useful when you need general, well-established information about people, places, companies or concepts.

You can use it as a step in a flow, typing the search in Input, or as a tool for an agent: connect its Tool output to the agent’s Tools input and the agent decides when to look something up and what to search for. No credential is needed.

When to use it

  • An educational assistant has to explain concepts or historical facts.
  • You want to add a general description to a company or city profile.
  • An agent needs to check basic facts before writing a text.
  • You are preparing content and want to start from a reliable summary of a topic.

Configuration

FieldWhat it does
InputWhat you want to search for, for example Prado Museum. It is hidden when you connect the Tool output, because the agent writes the search.
LanguageThe Wikipedia language to search, as a two-letter code: en for English, es for Spanish. Default: en. It is hidden when you connect the Tool output.
Number of results (required)The maximum number of articles returned. Default: 4.

Advanced options

FieldWhat it does
Load all available metaWhen on, each article includes all the extra details Wikipedia offers, besides the title and summary. Off by default.
Document content characters maxThe maximum number of characters of text per article. Default: 4000.

Output

  • Data: a list with one item per article, with its text and details such as the title. You can connect it to components that format text or to an agent that summarises it.
  • Tool: the Wikipedia search ready for an agent. Connect it to the agent’s Tools input.

Example

A museum wants an assistant that answers visitors’ questions about artists.

  1. Add Wikipedia and keep en in Language.
  2. Set Number of results to 2 so answers stay focused.
  3. Connect the Tool output to the agent’s Tools input.
  4. When a visitor asks “Who was Sorolla?”, the agent looks it up on Wikipedia and answers with a summary.

Good practices

  • Choose the language you want the articles in: by default the English Wikipedia is searched.
  • If articles are long and you only need a summary, lower Document content characters max so the agent receives less text.
  • Agent: the agent you can give this tool to.
  • Serp Search API: Google searches for more recent information.