So basically I want to build a story generating app that pulls from the OpenAi API and writes a story. However, I have a master excel sheet with a different story in each row. I want to be able to have my app pick a random row as a reference story and then make the api call. I can set up the OpenAI part just fine, I’m just struggling to figure out how pull from a excel or json file
UPDATED:
I need to be able to access that data item in a workflow. Let me show you:
Lastly, here’s some horror stories I uploaded in my database. Each item in the COMPLETION: column is a story. How can I randomly pick one of those to go into the workflow above?
Lastly, here’s some horror stories I uploaded in my database. Each item in the COMPLETION: column is a story. How can I randomly pick one of those to go into the workflow above?
Regarding the (body) refstory. You would do a “search for” an entity in your db, leave the constraints blank and pick a random item for the result.
This is a different call, just as an example: