Skip to main content
The user requests a topic; the agent uses Wikipedia tools to search, fetch, and summarise articles.
Prerequisites
  • Python 3.10 or higher
  • PraisonAI Agents package installed
  • PraisonAI Tools package installed
  • wikipedia package installed

Wikipedia Tools

Use Wikipedia Tools to retrieve and analyze Wikipedia content with AI agents.
1

Install Dependencies

First, install the required packages:
2

Import Components

Import the necessary components:
3

Create Agent

Create a Wikipedia research agent:
4

Define Task

Define the research task:
5

Run Agent

Initialize and run the agent:

Understanding Wikipedia Tools

What are Wikipedia Tools?

Wikipedia Tools provide research capabilities for AI agents:
  • Article search and retrieval
  • Content summary generation
  • Full page information access
  • Random article discovery
  • Multi-language support

Key Components

Wiki Agent

Create specialized research agents:

Wiki Task

Define research tasks:

Process Types

Sequential or parallel processing:

Wiki Options

Customize search parameters:

Available Functions

Examples

Basic Wikipedia Research Agent

Advanced Research with Multiple Agents

Best Practices

Configure agents with clear research focus:
Define specific research objectives:

Common Patterns

Research Pipeline

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation