BuildShipBBuildShip
Powered by
k3rnlp4n1cK
BuildShip•3y ago
k3rnlp4n1c

I am trying to implement a loop as

I am trying to implement a loop as follows:

While retrieveRun != "completed"

retrieveRun = curl https://api.openai.com/v1/threads/$newThread/runs/$runId \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "OpenAI-Beta: assistants=v1"

If I tell the AI to create a node with this logic (and add a return node afterwards to return the value), the logic loops indefinitely.

Alternatively, I can create a loop node SEPERATELY (i.e. buildship's loop node) and within the loop node I can have the AI implement the retrieveRun curl logic BUT how do I set the CONDITION for the loop node to be
retrieveRun != "completed"
retrieveRun != "completed"
since we CANNOT reference future nodes in the variables menu.
Screenshot_2024-01-02_111009.png
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

bille - I am trying to implement a flow for del...
billeBbille / 💬・general
9mo ago
Aathy2008 - I have a problem. I am trying to bu...
Aathy2008AAathy2008 / 💬・general
2y ago
Bilal | moneywithbilz - I am trying to copy a t...
Bilal | moneywithbilzBBilal | moneywithbilz / 💬・general
15mo ago
adrfinance - Hello. I am trying to ship a workf...
adrfinanceAadrfinance / 💬・general
16mo ago