Can somebody help me out?
# 🤝help
n
Can somebody help me out? I want to collect the input data of a single choice. all of the code is bug free just the first workflow. i sad to be a Boolean but it is a single choice. and any existing variant that i made gives the same error. workflow.keuze2 = false const data = { keuze2: workflow.keuze2 } try { const response = await axios.post( 'https://hooks.zapier.com/hooks/catch/', data) workflow.keuze2 = true console.log(response.data) } catch (error) { console.error(error) }
l
There's an axios error on calling api
n
Oke. I don't know how to code. Im using the Botpress AI and code from a 3e party. do i need to include a axios call in my request line of the botpress ai?
try { // Make an axios call const response = await axios.get('https://api.example.com/data') where do i make the call to? // Save the value of 'keuze2' to a Zapier webhook await axios.post('https://hooks.zapier.com/hooks/catch/15832569/3myfjrl/', { keuze2: workflow.keuze2 }) // Set a workflow variable workflow.keuze2 = response.data } catch (error) { console.error('An error occurred:', error) }
4 Views