ProConfig Tutorial
  • Overview & Setup
  • Tutorial Structure
  • Tutorial
    • Hello World with Pro Config
    • Building Workflow
    • Transitions
    • Expressions and Variables
    • An Advanced Example
    • Function Calling Example
    • Random Routing Example
  • API Reference
    • Widgets
      • Bark TTS
      • Champ
      • CoinGecko
      • ControlNet with Civitai
      • Crawler
      • Crypto News
      • Data Visualizer
      • Email Sender
      • Google Flight Search
      • Google Hotel Search
      • Google Image Search
      • Google Map Search
      • Google News Search
      • Google Scholar Search
      • Google Search
      • GroundedSAM
      • Image Text Fuser
      • Information Extractor - OpenAI Schema Generator
      • Information Extractor
      • Instagram Search
      • JSON to Table
      • LinkedIn
      • MS Word to Markdown
      • Markdown to MS Word
      • Markdown to PDF
      • Mindmap Generator
      • Notion Database
      • OCR
      • Pdf to Markdown
      • RMBG
      • Stabel-Video-Diffusion
      • Stable Diffusion Inpaint
      • Stable Diffusion Recommend
      • Stable Diffusion Transform
      • Stable Diffusion Upscale
      • Stable Diffusion with 6 fixed category
      • Stable Diffusion with Civitai
      • Storydiffusion
      • Suno Lyrics Generator
      • Suno Music Generator
      • Table to Markdown
      • TripAdvisor
      • Twitter Search
      • UDOP: Document Question Answering
      • Weather forecasting
      • Whisper large-v3
      • Wikipedia
      • Wolfram Alpha Search
      • Yelp Search
      • YouTube Downloader
      • YouTube Transcriber
      • Youtube Search
  • Tools
    • AutoConfig Bot
    • Cache Mode
Powered by GitBook
On this page
  • Try it in the Widget Center
  • Usage
  • Get Full Wikipedia Article
  • Summary Wikipedia Article
  1. API Reference
  2. Widgets

Wikipedia

Search Wikipedia article and summary it

PreviousWhisper large-v3NextWolfram Alpha Search

Last updated 1 year ago

This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully.

You need to pass both the action and other input parameters of the chosen action to your module_config

Try it in the Widget Center

Click this to try this widget and copy the Pro Config template.

Usage

Get Full Wikipedia Article

action search_title

Input Parameters

Name
Type
Description
Default
Required

action

string

The action you want to perform

search_title

article

string

The title of the article you want to search

artificial intelligence

Output Parameters

Name
Type
Description
File Type

data

object

The search results of the wikipedia

Output Example

{
  "data": {
    "url": "https://object-storage-16oh.lepton.ai/ws-k8d7q1rw/wikipedia/output/2c99c27f01264bf8808d0f1fc8e770f7.json"
  }
}

Summary Wikipedia Article

action summary_title

Input Parameters

Name
Type
Description
Default
Required

action

string

The action you want to perform

summary_title

article

string

The title of the article you want to search

artificial intelligence

Output Parameters

Name
Type
Description
File Type

data

object

The search results of the wikipedia

Output Example

{
  "data": {
    "content_urls": {
      "desktop": {
        "edit": "https://en.wikipedia.org/wiki/Artificial_intelligence?action=edit",
        "page": "https://en.wikipedia.org/wiki/Artificial_intelligence",
        "revisions": "https://en.wikipedia.org/wiki/Artificial_intelligence?action=history",
        "talk": "https://en.wikipedia.org/wiki/Talk:Artificial_intelligence"
      },
      "mobile": {
        "edit": "https://en.m.wikipedia.org/wiki/Artificial_intelligence?action=edit",
        "page": "https://en.m.wikipedia.org/wiki/Artificial_intelligence",
        "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Artificial_intelligence",
        "talk": "https://en.m.wikipedia.org/wiki/Talk:Artificial_intelligence"
      }
    },
    "description": "Intelligence of machines",
    "description_source": "local",
    "dir": "ltr",
    "displaytitle": "\u003cspan class=\"mw-page-title-main\"\u003eArtificial intelligence\u003c/span\u003e",
    "extract": "Artificial intelligence (AI), in its broadest sense, is intelligence exhibited by machines, particularly computer systems. It is a field of research in computer science that develops and studies methods and software which enable machines to perceive their environment and uses learning and intelligence to take actions that maximize their chances of achieving defined goals. Such machines may be called AIs.",
    "extract_html": "\u003cp\u003e\u003cb\u003eArtificial intelligence\u003c/b\u003e (\u003cb\u003eAI\u003c/b\u003e), in its broadest sense, is intelligence exhibited by machines, particularly computer systems. It is a field of research in computer science that develops and studies methods and software which enable machines to perceive their environment and uses learning and intelligence to take actions that maximize their chances of achieving defined goals. Such machines may be called AIs.\u003c/p\u003e",
    "lang": "en",
    "namespace": {
      "id": 0,
      "text": ""
    },
    "pageid": 1164,
    "revision": "1220923766",
    "tid": "06f57629-0401-11ef-a344-e22c5cbd2b2b",
    "timestamp": "2024-04-26T19:13:13Z",
    "title": "Artificial intelligence",
    "titles": {
      "canonical": "Artificial_intelligence",
      "display": "\u003cspan class=\"mw-page-title-main\"\u003eArtificial intelligence\u003c/span\u003e",
      "normalized": "Artificial intelligence"
    },
    "type": "standard",
    "wikibase_item": "Q11660"
  }
}
url