T
Typebot•10h ago
Red

How to get and store output from a script block?

Hi, I have this botpress listenConversation script entered into a script block. How do I store and view the output of it please? ============ const url = 'https://chat.botpress.cloud/xxxxx/conversations/{id}/listen'; const options = {method: 'GET', headers: {'x-user-key': '<x-user-key>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ============
1 Reply

Did you find this page helpful?