Textdoc
Zipdoc
Writeurl
Txtshare
Online Calc
Loading…
const endpoint = "STACK AI LINK" const headers = { Authorization: `Bearer XXXXXXXXXX`, "Content-Type": "application/json" } const data = { "in-0": workflow.ESTIMATE, } try { const response = await axios.post(endpoint, data, { headers }) workflow.STACKAIRESPONSE = response.data["out-0"] } catch (error) { throw new Error(`stack-error: ${error}`) } Important Notes: Anything that is in all caps needs to be replaced with your stuff Stack AI Notes: Make sure you have saved and published Leave the input in stack AI empty Exit out of the stackAI QnA for it to work properly on Botpress