helpful-hospital-22115
03/15/2024, 5:02 PM/ask {user query}
this would then send the query to my botpress bot and return the response.
If anyone has any idea if or how this can be done any input would help!
I haven't started on the botpress bot, the discord bot is up and running im just looking to add this commandfresh-fireman-491
03/15/2024, 6:21 PMhelpful-hospital-22115
03/15/2024, 6:21 PMfresh-fireman-491
03/15/2024, 6:22 PMhelpful-hospital-22115
03/16/2024, 11:26 PMError 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"}
even tho the aiResponse is workinghelpful-hospital-22115
03/16/2024, 11:26 PMjs
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 })