able-animal-17125
07/16/2023, 5:56 PM${event.preview}
},
// Be sure to set your API key as an env variable
{ headers: { Authorization: Bearer ${env.apiKey}
, 'Content-Type': 'application/json' } }
)
workflow.stackAIResponse = response.data[outNode]
} catch (e) {
console.error(There was an error calling Stack-AI: ${e}
)
}