Execute something after return

I want to use Workers AI on Discord through my bot, AI content takes a long time to generate, so I need to respond Discord first and update the result later.
Is there a way to solve it?

By the way, how do I get my account ID?
Was this page helpful?