Loading animation while fetching OpenAI data

Hi there!

I want to show the loading spinner whenever I am waiting for a response of OpenAI.
However, I can’t use the (when empty) visibility condition on the loading spinner because the AI response isn’t actually empty, it’s loading itself in the backend.

Any workarounds here?

Thank you!

1 Like

Try this:

1 Like

Yeah this has been a problem many times for me as well. I truly hope there’s a workaround, I haven’t been able to figure it out.

2 Likes

Yes, standard solutions, such as a waiting gif don’t work because you can’t have ‘is empty’ as visibility condition on the loading animation, given that the OpenAI response is loading (so it isn’t empty).

You can of course add a timestamp and display the loading animation only when the time betwheen the timestamp and now is for example <5 seconds, but that’s not really ideal given that the real information might load faster, or slower…

Any ideas?

My workaround is to have a binary value that reflects whether or not the AI action is processing (AI Final Report processing).


You can then have a custom action with 3 key steps.

Step 1: Set the Binary value to true
Step 2: AI Step
Step 3: set the Binary value to false.

I then control the visibility of my GIF based on the binary value.

I quite like this GIF:

8J6k5Zz0f2buFzDEHNqt

1 Like