happy-waitress-55849
05/04/2024, 6:48 PMworkflow.slots
. While the results are visible in the console, they don't appear in the chat interface—instead, I just see "Available Slots[]", indicating the array is empty at the time of display. I've attempted to manage the asynchronous nature of the API call with await
, but I was not successful. Can you help me troubleshoot why the array might be empty in the chat, even though it populates correctly in the console?
Attached you can find my console log, my code and an overview of the chatbot flow.
https://cdn.discordapp.com/attachments/1236388949119864932/1236388949342289970/Bildschirmfoto_2024-05-04_um_20.44.19.png?ex=6637d470&is=663682f0&hm=cf4f6e5cbef30ec00addad3013cd2196230b0ea89898904c3efed1eedd19866d&
https://cdn.discordapp.com/attachments/1236388949119864932/1236388949836955769/image.png?ex=6637d470&is=663682f0&hm=6e424ab4af30120ba75b55f14e49257472559c55dd814cb3200af77bc6d948e0&
https://cdn.discordapp.com/attachments/1236388949119864932/1236388950088876144/Chatbotflow.png?ex=6637d470&is=663682f0&hm=9ed22952acc2d8751b1deb26158a9ffe2083caaec300f92873a23aa5b20bf197&fresh-fireman-491
05/04/2024, 9:13 PMexecuteDataFetch
, which you are doing at the bottom of your code. So await executeDataFetch();
fresh-fireman-491
05/04/2024, 9:14 PMexecuteDataFetch
and just have await fetchData();
at the bottom of my execute code card.fresh-fireman-491
05/04/2024, 9:15 PMhappy-waitress-55849
05/04/2024, 10:57 PMfresh-fireman-491
05/05/2024, 7:29 AMbumpy-butcher-41910
05/06/2024, 1:26 PMfresh-fireman-491
05/06/2024, 5:43 PM