Challenge 15

Use an AI (via a REST API) to Generate a Summary of Your Module's Content



There are all kinds of great AI tools out there that you can use in your work, and you can tap into many of them by using a REST API. In an eLearning module, it's often useful to provide a summary of your content, and this is something that many AIs are trained to do.


Using a Large Language Model on Hugging Face (or another service), use a REST API call to summarize your module content. Then, provide the summary in a box at the top of your page as a sort of abstract. The BART Large CNN model is a good one to start with. Note that you will need to create an account with Hugging Face and get an access token before it will accept your data.


This content is provided to you freely by EdTech Books.

Access it online or download it at