Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Power Platform and the AI Revolution

You're reading from   Power Platform and the AI Revolution Explore modern AI services to develop apps, bots, and automation patterns to enhance customer experiences

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781835086360
Length 356 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Aaron Guilmette Aaron Guilmette
Author Profile Icon Aaron Guilmette
Aaron Guilmette
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Chapter 1: Introduction to AI Services FREE CHAPTER 2. Chapter 2: Configuring an Environment to Support AI Services 3. Chapter 3: Talking to ChatGPT 4. Chapter 4: Using ChatGPT and Copilot to Create Flows and Apps 5. Chapter 5: Bootstrapping a Power App with Copilot 6. Chapter 6: Processing Data with Sentiment Analysis 7. Chapter 7: Using Power Automate and AI to Build PowerPoint Presentations 8. Chapter 8: Building an Event Registration App with Identity Verification 9. Chapter 9: Implementing an AI-Enabled Resume Screener 10. Chapter 10: Crafting an Executive Summary with GPT 11. Chapter 11: Using AI to Tag Images in a SharePoint Library 12. Chapter 12: Creating a Generative AI-Based Bot 13. Chapter 13: Publishing a Generative AI-based Bot 14. Index 15. Other Books You May Enjoy

Interacting with Wikipedia articles

Since the source of our content for this example is going to be a Wikipedia article, it’s important to understand how to gather the data. Wikipedia has an API endpoint (https://en.wikipedia.org/w/api.php) that returns the page content as JSON, as shown in Figure 7.4:

Figure 7.4 – Viewing the JSON output of a Wikipedia article

Figure 7.4 – Viewing the JSON output of a Wikipedia article

The link is constructed using the following components:

  • API URL: https://en.wikipedia.org/w/api.php
  • Action parameter: Query
  • Format parameter: JSON
  • Titles parameter: The title of the Wikipedia article
  • Properties (Prop) parameter: Extracts (the full content of the article)

The data itself that we’ll be using is in the extract node, nested inside the query JSON object.

When reviewing Wikipedia articles, you might notice that the headings are a mix of heading level 2 (<H2>) tags, which are used as main topic headings, and heading level 3 ...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime