I have simplified my code down to the basics for testing
const message = "hello"
workflow.response = message
console.log (message)
i can see the hello in console but not the chat window.
it didn't print out my hello message. I tried it with JSON
const messages = { text: "hello" }
workflow.response = message.text
also didn't work out. Anything I'm doing wrong?
a
acceptable-kangaroo-64719
08/07/2023, 11:21 AM
@little-scientist-91622 you need to put your variable in a text card to make the bot say it / send it to the user. So if we define workflow.response in the execute code card, we can send it to the user like this