AI Call Out in Workflow

Hi all,

So I have a Workflow that is at form submission level.

This form, ads a record to the database, redirects the user to a new page (the newly created record or to create a new record) and in some cases it also needs to do an OpenAI call.

The issue is that I do not want to have the user wait for the openai call and return.

I want the user to navigate to the pages, but the process to still work.

I’ve put the navigation before the openai call, but now the call does not work anymore.

One option would be to trigger the api call directly in xano on record creation. But I would like to leave that as a last option.

Any ideas?

You can use wwLib’s executeWorkflow function and some JS, this returns a promise, so unless you await it, it won’t block the thread.

and so

what does that mean?

wwLib’s executeWorkflow function - Is this in the same workflow or to create a separate workflow that will be triggered separately ?

Yes

just wanted to show even 1-2 year ago were totally possible to do it in one workflow pretty smoothly