Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in May 2024
Publisher Packt
ISBN-13 9781835086360
Pages 356 pages
Edition 1st Edition
Languages
Author (1):
Aaron Guilmette Aaron Guilmette
Profile icon Aaron Guilmette
Toc

Table of Contents (16) Chapters close

Preface 1. Chapter 1: Introduction to AI Services 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 £13.99/month. Cancel anytime