paulokoduwa
paulokoduwa11mo ago

Generating a Story with Beardship API

Hey @Gaurav Chadha and everyone, I need your help. I am still on the storybook thing. It's causing me trouble! I am having trouble looping through the images and feeding it to supabase after each loops. Here's a recording of what i am looking at doing. https://www.loom.com/share/36365470f47940ce99e67a26cc17d9b5?sid=85dcd263-ef6d-4284-91c8-bbc029c68b1f Need a response asap.
Loom
Generating a Story with Beardship API
In this video, I discuss my progress in generating a story with Beardship API. I explain my goal of creating a story with a title and four chapters using the API module. I share my plan to feed the API with specific inputs to generate the story, including the title, image, and description of each chapter. I also mention my intention to store the...
3 Replies
Gaurav Chadha
Gaurav Chadha11mo ago
Hi @paulokoduwa, thank you for sharing the loom to explain things, at the last you mentioned about looping through images and sending it to Supabase, for this your workflow is missing Loop Node and Supabase logic node which you'll require to send the content. As the response of the Story Book template will be "cover": {"title": "Title of the story", "image": "url of image"} To achieve this. You'll require to use a loop node and Supabase node: Add the loop node before the return and in the image via variable in the item and and pass the response of the loop to as the object of the Create Row Supabase node. The docs on how to use the loop and Supabase nodes are available here - https://docs.buildship.com/. If you require a 1:1 help on implementation you can send a support request at support@buildship.com.
Welcome to BuildShip – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
paulokoduwa
paulokoduwaOP11mo ago
thank you. I will try this now and revert also how do i over this error <Error> <Code>AccessDenied</Code> <Message>Access denied.</Message> <Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details> </Error>