Botpress chatbot integrated with stack ai
# 👀feature-requests


07/06/2023, 2:07 PM
Hey, I had some trouble connecting my botpress chat bot with Stack Ai. I used an execute code block and here is the code that I used, async function query(data) { const response = await fetch( "", { headers: { 'Authorization': 'Bearer My Api key', 'Content-Type': 'application/json' }, method: "POST", body: JSON.stringify(data), } ); const result = await response.json(); return result; } query({ "in-0":
what loan types do you guys have??
, "url-0":
}).then((response) => { console.log(JSON.stringify(response)); }); Is there anything wrong with it?