How to merge data into slides, is what I believe you are actually looking for.
The overall steps are:
Create your presentation exactly as you want it to appear using dummy content to help you with the design.
For each content element that you'll be inserting, replace the dummy content with a tag. Tags are just text boxes or shapes with a
unique string.
In your code, use the Google Drive API to make a fresh copy of the presentation.
In your code, use the Slides API's batchUpdate
method, with a set of replaceAllText
requests, to perform all the text
substitutions throughout the presentation. Use
replaceAllShapesWithImage
requests to perform image substitutions
throughout the presentation.
When setting tags, make sure to use strings that are unlikely to occur
normally. For example, {{account-holder-name}}
might be a good tag.
Once you've created a deck with tags in it, be sure to make a copy and
use the Slides API to manipulate the copy. Don't use the Slides API
to manipulate your master "template" copy!
The above process is part of post involving quite a bit of coding and you can read about it, step by step under Merging Data into Slides
There is also a video in YouTube (Replacing text & images with the Google Slides API - The G Suite Dev Show) accompanying the post.