Is my config of errors handling correct?

Hi,
i would like to check with you if my error handling process is set up correctly for when chatGPT is down. Sorry if it’s wrong, i’m trying to learn as fast as i can :slight_smile:

Basically i want to retry the call to chatgpt after a short period of time and pass all the informations to the normal flow (the resume module has all the fields mapped).

If this fails too the flow sends an error message to the user.

Is it okay? how can i improve my flow?

That looks okay, there is no right way of doing it, as it all depends on how many times you want to retry, how long you want to sleep between retries, and if you want a fallback action (like send a response with default message).

It’s still better than using the break directive, which you have less control over.

3 Likes

Thanks a lot! Yes i thought about the break handling but i wasn’t sure it was the best way to do it

1 Like