In this framework, in the "Examples" folder, you will find the following workflows:
In this example, videos are created in bulk and downloaded in parallel using the "Parallel For Each" activity. This simulates a scenario in which you need to create a lot of videos and you don't want to waste time downloading them one-by-one. Instead, the videos are downloaded right after completion.
- Retrieve Synthesia API credentials from Orchestrator
- For each Excel input file, create a video
- Create a list of video IDs
- Monitor each video in parallel
- When a video is completed, download the video
In this example, a simple video is generated based on an Excel file (InputOneVideo.xlsx). The Robot will wait for the video to be created and then it will be downloaded in the "Output" folder.
- Retrieve Synthesia API credentials from Orchestrator
- Read an Excel file containing video details
- Wait for the video to be generated
In this example, a simple video is created based on a JSON string (hardcoded). Creating a video using a JSON string may be useful when the content of the video is generated by a 3rd party in the JSON format.
- Retrieve Synthesia API credentials from Orchestrator
- Create video (source of slides is JSON)
In this example, a video will be created based on the "SomeVideo.xlsx" Excel file. The difference here is that the scale is set to 0.2 and the horizontal alignment is set to "right". This might be useful when trying to focus on the background and not on the presenter.
In this example, details for a certain video (you need to specify the Video ID in the "Get Video" activity) will be retrieved and displayed at the console. Additionally, an Excel file containing all the slide information will be written in the "Output" folder.
- Retrieve Synthesia API credentials from Orchestrator
- Print details at console
- Write an Excel file with the Slide(s) details
In this example, the "List Videos" activity is used to retrieve info for each video found in the Synthesia library. The videos are retrieved in a loop, 2 by 2, and the result will be appended to an Excel file ("List&Download" folder). Note that the videos are retrieved 2 by 2 only for the sake of example. The default limit is 20, while the maximum number of videos that can be retrieved using this activity is 100. If the number of videos exceeds 100, another query should be performed, based on the "offset" parameter (in the example, replace "2" with "100" to do that).
- Retrieve Synthesia API credentials from Orchestrator
- Use the "List Videos" activity to generate an Excel file containing a summary of the video library
- Optionally, you can extend this use-case by reading the Excel file and adding a "For-each" loop, downloading each video
In this example, the "Update Video" activity will be used to update the video, description and visibility of a video (you need to specify a Video ID).
- Retrieve Synthesia API credentials from Orchestrator
- Update Video (change title to "Updated title", description to "Updated description" and visibility to "public")
Please note that, for each example, the Synthesia Credentials are retrieved from the Orchestrator. Modify that as you need.