Can i get some help?
# šŸ¤help
h
I’m part way thru my project and i’ve encountered this error when i can’t send a webhook to discord because you can’t send an empty webhook
Copy code
js
var webhookURL = "webhookURL"

// Add the prefix '!response ' to the aiResponse
const modifiedAiResponse = '!response ' + workflow.aiResponse

// Send the modified aiResponse to the webhookURL
await axios.post(webhookURL, { aiResponse: modifiedAiResponse })
so with that code this is the error
Copy code
Error executing action "inline-card:Send modified AI response to Discord webhook URL..js" in flow:Main:node:Standard2

HTTP (post) URL
Received "Cannot send an empty message"
Request failed with status code 400
{"scope":"bot-action","cardId":"card:Send modified AI response to Discord webhook URL.","nodeId":"node:Standard2","workflowId":"flow:Main"}
I’m getting this error even tho the aiResponse does have a value to it Any help provided will help me along!
a
Do u think maybe u used workflow.Airesponse outside the workflow it was defined in?
h
ill go look but i checked many times
that’s what i used