https://discord.gg/botpress logo
Hey, Im trying to send data with an api but im get...
# 🤝help
l
Copy code
workflow.makeSuccess = false

try {
  const currentDateTime = new Date()

  const messageData = {
    date: currentDateTime,
    email: workflow.epost,
    namn: workflow?.namn?.first || "",
    Varför_träna: workflow.goal,
    Utmaning: workflow.challenges,
    convsummary: conversation?.SummaryAgent?.summary || ""
  }

  const response = await axios.post(
    "https://hook.eu2.make.com/5maz84nwvja5xnxjy750tze7wza1a22j",
    messageData
  )

  console.log(response.data)
  workflow.makeSuccess = true

} catch (error) {
  console.error(error)
}
4 Views