### **What It Is** Connect your Botpress chatbot to the vast knowledge of Wikipedia. This integration allows you to search for Wikipedia pages, retrieve page content, and access daily featured articles and historical events. No API key is required. ### **Tutorial Video** [![image](https://i.imgur.com/1lUagex.png)](https://www.youtube.com/watch?v=1cqHuzopO_Y&t=1s) #### **Integration Features** Enhance your chatbot with these built-in actions: - **Search Title**: Look up Wikipedia page titles based on specified search terms. - **Search Content**: Dive into Wikipedia's page content using specific keywords. - **Get Page**: Fetch a specific Wikipedia page by its title. - **Get Page Content**: Pull the content of a specified Wikipedia page into a table named "WikiTableContent." Ensure your table has columns for Page, Header, and Content. - **Get Featured Article**: Get the featured Wikipedia article of the day. - **Get On This Day**: Discover events that occurred on any given day. #### **Response Format** The integration uses a standardized response format to facilitate easy data parsing and utilization: - `**success** (Boolean)`: True if the Wikipedia query was successful, otherwise false. Useful for conditional logic in your chatbot. - `**log** (String)`: Provides a detailed log of the transaction, including any errors or warnings. Ideal for debugging and tracking query performance. - `**data** (Object)`: Contains the actual content returned by Wikipedia. The structure varies by action (e.g., title search, page retrieval) and is designed to be easy to navigate and use within your chatbot. #### **Botpress Setup** 1. Click `Install` at the top right and select your bot. 2. Follow the popup instructions to configure your integration. 3. Go to your avatar at the top right, then select Personal Access Tokens. Create a new token. 4. Enter the new token in the `Botpress Token` field to enable pushing page content to your table. 5. Enable the integration and save your settings.