In this sample script, all pages in the Figma file are retrieved and the retrieved pages are put to new Google Slides as the image.
This post is useful for not only showing how to insert images into Google Slides, but also for featuring Figma which might be a useful tool for G Suite Add-on developers looking for an easy way to prototype/design application interfaces.
Source: Figma to Google Slides using Google Apps Script · tanaike
Member of Google Developers Experts Program for Google Workspace (Google Apps Script) and interested in supporting Google Workspace Devs.